/* PJH common header and top-level layout fit. Local fonts only, no external resources. */
:root {
	--pjh-forest: #142d2a;
	--pjh-teal: #184b48;
	--pjh-ivory: #f6f5ef;
	--pjh-paper: #fbfaf6;
	--pjh-cream: #e1e5bd;
}

html.pjh-branded,
html.pjh-branded body {
	height: 100%;
}

html.pjh-branded body {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

html.pjh-branded body > #layout {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	position: relative;
}

html.pjh-branded body.task-login > #layout {
	overflow: auto;
}

.pjh-header {
	flex: 0 0 auto;
	position: relative;
	z-index: 1040;
	background: var(--pjh-forest);
	color: var(--pjh-ivory);
	font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
	line-height: 1.3;
}

.pjh-header *,
.pjh-header *::before,
.pjh-header *::after {
	box-sizing: border-box;
}

.pjh-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	min-height: 64px;
	padding: 6px 20px;
}

.pjh-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	min-width: 0;
	color: var(--pjh-ivory);
	text-decoration: none;
}

.pjh-mark {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 8px;
	border-radius: 10px;
	background: var(--pjh-teal);
}

.pjh-mark svg {
	display: block;
	width: 100%;
	height: 100%;
}

.pjh-names {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pjh-ko {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.pjh-en {
	font-size: 10.5px;
	letter-spacing: 0.06em;
	opacity: 0.85;
	overflow-wrap: anywhere;
}

.pjh-menu-button {
	display: none;
	min-width: 44px;
	min-height: 44px;
	margin-left: auto;
	padding: 0 10px;
	border: 1px solid rgba(246, 245, 239, 0.45);
	border-radius: 8px;
	background: transparent;
	color: var(--pjh-ivory);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.pjh-menu-icon {
	display: block;
	width: 24px;
	height: 24px;
}

.pjh-menu-button[aria-expanded="true"] {
	background: var(--pjh-teal);
}

.pjh-nav {
	margin-left: auto;
}

.pjh-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pjh-nav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	color: var(--pjh-ivory);
	font-size: 14px;
	text-decoration: none;
}

.pjh-nav a:hover {
	background: var(--pjh-teal);
}

.pjh-nav a[aria-current="page"] {
	background: var(--pjh-cream);
	color: var(--pjh-forest);
	font-weight: 700;
}

.pjh-header a:focus-visible,
.pjh-header button:focus-visible {
	outline: 2px solid var(--pjh-cream);
	outline-offset: 2px;
}

@media (max-width: 1099px) {
	.pjh-js .pjh-menu-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.pjh-js .pjh-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - 64px);
		margin: 0;
		padding: 8px 12px 12px;
		overflow-y: auto;
		background: var(--pjh-forest);
		border-top: 1px solid var(--pjh-teal);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
	}

	.pjh-js .pjh-header.is-open .pjh-nav {
		display: block;
	}

	.pjh-js .pjh-nav ul {
		flex-direction: column;
		flex-wrap: nowrap;
	}
}

@media (max-width: 599px) {
	.pjh-bar {
		min-height: 56px;
		padding: 4px 8px;
		gap: 4px 8px;
	}

	.pjh-brand {
		gap: 8px;
		flex: 1 1 0;
	}

	.pjh-mark {
		width: 36px;
		height: 36px;
		padding: 7px;
	}

	.pjh-ko {
		font-size: 15px;
	}

	.pjh-en {
		font-size: 9px;
		letter-spacing: 0.04em;
	}

	.pjh-menu-button {
		padding: 0 10px;
	}
}
