/*
Theme Name: Temple Har Shalom
Theme URI: https://templeharshalom.com
Description: 평화의 산에서 전하는 유대 문화 에디토리얼. GeneratePress 차일드 테마.
Author: Har Shalom Editorial
Template: generatepress
Version: 1.0
Text Domain: templeharshalom
*/

:root {
	--ths-bg: #0d1b2a;
	--ths-bg-2: #132238;
	--ths-card: #1a2d42;
	--ths-card-2: #213a52;
	--ths-ink: #e8dcc8;
	--ths-ink-2: #b8a992;
	--ths-ink-3: #7d7060;
	--ths-gold: #c5a55a;
	--ths-gold-2: #dfc07a;
	--ths-sand: #d4b896;
	--ths-sand-2: #e6d0b0;
	--ths-line: #1e3350;
	--ths-line-2: #2a4060;
	--ths-display: 'Lora', 'Noto Sans KR', Georgia, serif;
	--ths-body: 'Noto Sans KR', system-ui, sans-serif;
	--ths-wrap: 1240px;
	--ths-shadow: 0 14px 36px -18px rgba(0,0,0,0.65);
	--ths-shadow-soft: 0 8px 24px -16px rgba(0,0,0,0.5);
}

html {
	scroll-behavior: smooth;
}

body.generate-page,
body {
	background-color: var(--ths-bg);
	background-image:
		radial-gradient(ellipse at 8% -8%, rgba(197,165,90,0.08), transparent 42%),
		radial-gradient(ellipse at 94% 105%, rgba(212,184,150,0.06), transparent 38%);
	background-attachment: fixed;
	color: var(--ths-ink);
	font-family: var(--ths-body);
	font-size: 16.5px;
	line-height: 1.78;
	letter-spacing: -0.005em;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.03;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
}

.site-content,
.site-header,
.site-footer,
.ths-topbar {
	position: relative;
	z-index: 1;
}

a {
	color: var(--ths-gold);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--ths-gold-2);
}

::selection {
	background: var(--ths-gold);
	color: #0d1b2a;
}

h1, h2, h3, h4 {
	font-family: var(--ths-display);
	color: var(--ths-ink);
	line-height: 1.22;
	letter-spacing: -0.018em;
	font-weight: 600;
}

.ths-topbar {
	background: #091525;
	border-bottom: 1px solid var(--ths-line);
}

.ths-topbar-inner {
	max-width: var(--ths-wrap);
	margin: 0 auto;
	padding: 6px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12.5px;
	color: var(--ths-ink-3);
}

.ths-topbar-left {
	display: flex;
	gap: 18px;
	align-items: center;
}

.ths-topbar-left span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ths-topbar-left svg {
	width: 13px;
	height: 13px;
	fill: var(--ths-gold);
	flex-shrink: 0;
}

.ths-topbar-right {
	font-style: italic;
	color: var(--ths-ink-3);
	font-size: 11.5px;
	letter-spacing: 0.02em;
}

.site-header {
	background: var(--ths-bg-2) !important;
	border-bottom: 2px solid var(--ths-gold);
	box-shadow: 0 2px 18px -8px rgba(0,0,0,0.4);
}

.site-header .inside-header {
	max-width: var(--ths-wrap);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	min-height: 68px;
}

.ths-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	flex-shrink: 0;
}

.ths-brand-icon {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
}

.ths-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.ths-brand-title {
	font-family: var(--ths-display);
	font-size: 21px;
	font-weight: 700;
	color: var(--ths-ink);
	letter-spacing: -0.02em;
}

.ths-brand-sub {
	font-size: 11px;
	color: var(--ths-ink-3);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.main-navigation {
	margin-left: auto;
}

.main-navigation .main-nav > ul {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation .main-nav > ul > li > a {
	display: block;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ths-ink-2);
	text-decoration: none;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
	letter-spacing: 0.01em;
}

.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a {
	color: var(--ths-gold);
	background: rgba(197,165,90,0.08);
}

.ths-mobile-toggle {
	display: none;
	background: none;
	border: 1px solid var(--ths-line-2);
	border-radius: 6px;
	padding: 7px 10px;
	cursor: pointer;
	margin-left: auto;
}

.ths-mobile-toggle svg {
	width: 22px;
	height: 22px;
	fill: var(--ths-ink);
	display: block;
}

.site-content {
	max-width: var(--ths-wrap);
	margin: 0 auto;
	padding: 36px 24px;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 40px;
	align-items: start;
}

.content-area {
	min-width: 0;
}

#ths-sidebar {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ths-sidebar-empty {
	color: var(--ths-ink-3);
	font-size: 13px;
	border: none;
	padding: 0;
}

.ths-sidebar-block {
	background: var(--ths-card);
	border: 1px solid var(--ths-line);
	border-radius: 10px;
	padding: 22px 20px;
	box-shadow: var(--ths-shadow-soft);
}

.ths-sidebar-block-title {
	font-family: var(--ths-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--ths-gold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 14px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ths-line);
}

.ths-sidebar-pages {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ths-sidebar-pages li {
	margin-bottom: 2px;
}

.ths-sidebar-pages li a {
	display: block;
	padding: 7px 12px;
	font-size: 14px;
	color: var(--ths-ink-2);
	border-radius: 5px;
	transition: color 0.15s, background 0.15s, padding-left 0.15s;
}

.ths-sidebar-pages li a:hover {
	color: var(--ths-gold);
	background: rgba(197,165,90,0.06);
	padding-left: 16px;
}

.ths-sidebar-recent {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ths-sidebar-recent li {
	padding: 10px 0;
	border-bottom: 1px solid var(--ths-line);
}

.ths-sidebar-recent li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ths-sidebar-recent li a {
	font-size: 13.5px;
	color: var(--ths-ink);
	line-height: 1.45;
	display: block;
	transition: color 0.15s;
}

.ths-sidebar-recent li a:hover {
	color: var(--ths-gold);
}

.ths-sidebar-recent li time {
	font-size: 11.5px;
	color: var(--ths-ink-3);
	margin-top: 3px;
	display: block;
}

.ths-sidebar-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ths-sidebar-cats li a {
	display: inline-block;
	padding: 5px 14px;
	font-size: 12.5px;
	color: var(--ths-sand);
	border: 1px solid var(--ths-line-2);
	border-radius: 20px;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.ths-sidebar-cats li a:hover {
	border-color: var(--ths-gold);
	color: var(--ths-gold);
	background: rgba(197,165,90,0.06);
}

.ths-sidebar-about {
	font-size: 13.5px;
	color: var(--ths-ink-2);
	line-height: 1.65;
}

.ths-sidebar-about strong {
	color: var(--ths-ink);
	font-weight: 600;
}

.ths-post-card {
	background: var(--ths-card);
	border: 1px solid var(--ths-line);
	border-radius: 12px;
	padding: 28px 30px;
	margin-bottom: 24px;
	box-shadow: var(--ths-shadow);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ths-post-card:hover {
	border-color: var(--ths-line-2);
	box-shadow: var(--ths-shadow), 0 0 0 1px var(--ths-line-2);
}

.ths-post-card .entry-title {
	font-family: var(--ths-display);
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.ths-post-card .entry-title a {
	color: var(--ths-ink);
	transition: color 0.15s;
}

.ths-post-card .entry-title a:hover {
	color: var(--ths-gold);
}

.ths-post-card .entry-meta {
	font-size: 12.5px;
	color: var(--ths-ink-3);
	margin-bottom: 14px;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.ths-post-card .entry-meta a {
	color: var(--ths-sand);
}

.ths-post-card .entry-content {
	font-size: 15px;
	color: var(--ths-ink-2);
	line-height: 1.72;
}

.ths-post-card .entry-content p {
	margin: 0 0 12px 0;
}

.ths-post-card .entry-content .more-link {
	display: inline-block;
	margin-top: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ths-gold);
	letter-spacing: 0.02em;
	transition: color 0.15s;
}

.ths-post-card .entry-content .more-link:hover {
	color: var(--ths-gold-2);
}

.ths-post-card .cat-links {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 8px;
}

.ths-post-card .cat-links a {
	font-size: 11px;
	padding: 3px 10px;
	background: rgba(197,165,90,0.1);
	color: var(--ths-gold);
	border-radius: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

article.type-post .inside-article,
article.type-page .inside-article {
	background: var(--ths-card);
	border: 1px solid var(--ths-line);
	border-radius: 12px;
	padding: 36px 40px;
	box-shadow: var(--ths-shadow);
}

article .entry-header .entry-title {
	font-family: var(--ths-display);
	font-size: 30px;
	font-weight: 700;
	color: var(--ths-ink);
	margin-bottom: 12px;
}

article .entry-meta {
	font-size: 13px;
	color: var(--ths-ink-3);
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ths-line);
}

article .entry-meta a {
	color: var(--ths-sand);
}

article .entry-content h2 {
	font-size: 22px;
	margin: 36px 0 16px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ths-line);
	color: var(--ths-ink);
}

article .entry-content h3 {
	font-size: 18px;
	margin: 28px 0 12px 0;
	color: var(--ths-sand);
}

article .entry-content p {
	margin: 0 0 18px 0;
}

article .entry-content blockquote {
	margin: 24px 0;
	padding: 20px 24px;
	background: rgba(197,165,90,0.05);
	border-left: 3px solid var(--ths-gold);
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: var(--ths-sand);
}

article .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

article .entry-content ul,
article .entry-content ol {
	margin: 0 0 18px 0;
	padding-left: 24px;
}

article .entry-content li {
	margin-bottom: 6px;
}

article .entry-content a {
	color: var(--ths-gold);
	text-decoration: underline;
	text-decoration-color: rgba(197,165,90,0.3);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s;
}

article .entry-content a:hover {
	text-decoration-color: var(--ths-gold);
}

.ths-article-box {
	background: var(--ths-card-2);
	border: 1px solid var(--ths-line);
	border-radius: 10px;
	padding: 22px 24px;
	margin: 24px 0;
}

.ths-article-box-title {
	font-family: var(--ths-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--ths-gold);
	margin: 0 0 10px 0;
}

.ths-article-highlight {
	background: rgba(197,165,90,0.07);
	border-left: 3px solid var(--ths-gold);
	border-radius: 0 8px 8px 0;
	padding: 18px 22px;
	margin: 24px 0;
	color: var(--ths-sand);
}

.ths-article-note {
	background: rgba(212,184,150,0.06);
	border: 1px solid var(--ths-line);
	border-radius: 8px;
	padding: 16px 20px;
	margin: 24px 0;
	font-size: 14.5px;
	color: var(--ths-ink-2);
}

.ths-article-note strong {
	color: var(--ths-sand);
}

.ths-article-warning {
	background: rgba(180,80,50,0.08);
	border-left: 3px solid #b45032;
	border-radius: 0 8px 8px 0;
	padding: 18px 22px;
	margin: 24px 0;
	color: var(--ths-sand-2);
}

.ths-article-stat {
	display: flex;
	gap: 20px;
	margin: 24px 0;
	flex-wrap: wrap;
}

.ths-article-stat-item {
	background: var(--ths-card-2);
	border: 1px solid var(--ths-line);
	border-radius: 10px;
	padding: 18px 22px;
	flex: 1;
	min-width: 140px;
	text-align: center;
}

.ths-article-stat-num {
	font-family: var(--ths-display);
	font-size: 28px;
	font-weight: 700;
	color: var(--ths-gold);
	line-height: 1.1;
}

.ths-article-stat-label {
	font-size: 12.5px;
	color: var(--ths-ink-3);
	margin-top: 4px;
}

.ths-article-def {
	margin: 24px 0;
}

.ths-article-def dt {
	font-family: var(--ths-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--ths-sand);
	margin-bottom: 4px;
}

.ths-article-def dd {
	margin: 0 0 16px 0;
	padding-left: 18px;
	border-left: 2px solid var(--ths-line);
	color: var(--ths-ink-2);
	font-size: 15px;
}

.ths-article-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14.5px;
}

.ths-article-table th {
	background: var(--ths-card-2);
	color: var(--ths-gold);
	font-weight: 600;
	text-align: left;
	padding: 12px 16px;
	border-bottom: 2px solid var(--ths-line-2);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ths-article-table td {
	padding: 11px 16px;
	border-bottom: 1px solid var(--ths-line);
	color: var(--ths-ink-2);
}

.ths-article-table tr:last-child td {
	border-bottom: none;
}

.ths-article-table tr:hover td {
	background: rgba(197,165,90,0.03);
}

.ths-article-step {
	margin: 24px 0;
	counter-reset: ths-step;
}

.ths-article-step-item {
	display: flex;
	gap: 16px;
	margin-bottom: 18px;
	align-items: flex-start;
}

.ths-article-step-item::before {
	counter-increment: ths-step;
	content: counter(ths-step);
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	background: var(--ths-card-2);
	border: 1px solid var(--ths-gold);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ths-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--ths-gold);
	margin-top: 2px;
}

.ths-article-step-body {
	flex: 1;
	min-width: 0;
}

.ths-article-step-title {
	font-weight: 600;
	color: var(--ths-ink);
	margin-bottom: 4px;
}

.ths-article-step-desc {
	font-size: 14.5px;
	color: var(--ths-ink-2);
}

.ths-article-ref {
	margin: 32px 0 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--ths-line);
}

.ths-article-ref-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--ths-ink-3);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}

.ths-article-ref ol {
	margin: 0;
	padding-left: 20px;
	font-size: 13px;
	color: var(--ths-ink-3);
}

.ths-article-ref li {
	margin-bottom: 4px;
}

.ths-article-ref a {
	color: var(--ths-sand);
	font-size: 13px;
}

.ths-article-callout {
	background: var(--ths-bg-2);
	border: 1px solid var(--ths-line-2);
	border-radius: 10px;
	padding: 22px 24px;
	margin: 28px 0;
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.ths-article-callout-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background: rgba(197,165,90,0.1);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ths-article-callout-icon svg {
	width: 20px;
	height: 20px;
	fill: var(--ths-gold);
}

.ths-article-callout-body {
	flex: 1;
	min-width: 0;
	font-size: 14.5px;
	color: var(--ths-ink-2);
	line-height: 1.65;
}

.ths-article-callout-body strong {
	color: var(--ths-ink);
}

.ths-article-principle {
	list-style: none;
	margin: 24px 0;
	padding: 0;
}

.ths-article-principle li {
	padding: 14px 18px;
	margin-bottom: 8px;
	background: var(--ths-card);
	border-left: 3px solid var(--ths-gold);
	border-radius: 0 8px 8px 0;
	font-size: 15px;
	color: var(--ths-ink);
	transition: background 0.15s;
}

.ths-article-principle li:hover {
	background: var(--ths-card-2);
}

.ths-article-principle li strong {
	color: var(--ths-gold);
}

.ths-footer {
	background: #091525;
	border-top: 2px solid var(--ths-gold);
	margin-top: 48px;
}

.ths-footer-inner {
	max-width: var(--ths-wrap);
	margin: 0 auto;
	padding: 40px 24px 28px;
}

.ths-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 32px;
}

.ths-footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.ths-footer-brand svg {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.ths-footer-brand-name {
	font-family: var(--ths-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--ths-ink);
}

.ths-footer-desc {
	font-size: 14px;
	color: var(--ths-ink-3);
	line-height: 1.65;
	max-width: 360px;
}

.ths-footer-heading {
	font-family: var(--ths-display);
	font-size: 14px;
	font-weight: 600;
	color: var(--ths-gold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 14px;
}

.ths-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ths-footer-links li {
	margin-bottom: 8px;
}

.ths-footer-links li a {
	font-size: 14px;
	color: var(--ths-ink-2);
	transition: color 0.15s, padding-left 0.15s;
}

.ths-footer-links li a:hover {
	color: var(--ths-gold);
	padding-left: 4px;
}

.ths-footer-bottom {
	border-top: 1px solid var(--ths-line);
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--ths-ink-3);
}

.ths-footer-copy {
	letter-spacing: 0.01em;
}

.ths-footer-disclaimer {
	font-style: italic;
	max-width: 420px;
	text-align: right;
	line-height: 1.5;
}

.ths-page-hero {
	text-align: center;
	padding: 48px 0 36px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--ths-line);
}

.ths-page-hero h2 {
	font-size: 28px;
	margin: 0 0 10px 0;
}

.ths-page-hero p {
	color: var(--ths-ink-2);
	font-size: 15px;
	max-width: 560px;
	margin: 0 auto;
}

.ths-divider {
	border: none;
	height: 1px;
	background: var(--ths-line);
	margin: 32px 0;
}

.ths-tag {
	display: inline-block;
	padding: 3px 12px;
	font-size: 11px;
	font-weight: 600;
	color: var(--ths-gold);
	border: 1px solid rgba(197,165,90,0.25);
	border-radius: 14px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.page .entry-header,
.page .entry-title {
	display: none;
}

.site-footer {
	display: none;
}

@media (max-width: 960px) {
	.site-content {
		grid-template-columns: 1fr;
		padding: 24px 18px;
		gap: 28px;
	}

	#ths-sidebar {
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}

	.ths-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ths-footer-bottom {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}

	.ths-footer-disclaimer {
		text-align: center;
		max-width: none;
	}
}

@media (max-width: 768px) {
	.main-navigation .main-nav {
		display: none;
	}

	.ths-mobile-toggle {
		display: block;
	}

	.main-navigation.ths-nav-open .main-nav {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ths-bg-2);
		border-bottom: 2px solid var(--ths-gold);
		box-shadow: 0 12px 28px -8px rgba(0,0,0,0.5);
		z-index: 999;
		padding: 12px 0;
	}

	.main-navigation.ths-nav-open .main-nav > ul {
		flex-direction: column;
		gap: 0;
		padding: 0 18px;
	}

	.main-navigation.ths-nav-open .main-nav > ul > li > a {
		padding: 12px 14px;
		border-bottom: 1px solid var(--ths-line);
		border-radius: 0;
	}

	article.type-post .inside-article,
	article.type-page .inside-article {
		padding: 24px 20px;
	}

	article .entry-header .entry-title {
		font-size: 24px;
	}

	.ths-post-card {
		padding: 22px 20px;
	}

	.ths-article-stat {
		flex-direction: column;
	}

	.ths-article-callout {
		flex-direction: column;
		gap: 12px;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15.5px;
	}

	.ths-topbar-inner {
		flex-direction: column;
		gap: 4px;
		text-align: center;
	}

	#ths-sidebar {
		grid-template-columns: 1fr;
	}

	.site-header .inside-header {
		min-height: 58px;
	}

	.ths-brand-title {
		font-size: 18px;
	}

	.ths-page-hero h2 {
		font-size: 22px;
	}

	.ths-footer-grid {
		gap: 22px;
	}

	.ths-article-step-item {
		flex-direction: column;
		gap: 10px;
	}
}
