/* ==========================================================================
   The Panel — header
   ========================================================================== */

.panel-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--ink);
}

.panel-header__bar {
	height: 64px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--sp-6);
	display: flex;
	align-items: center;
	gap: var(--sp-6);
}

.panel-header__brand {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	text-decoration: none;
	flex-shrink: 0;
}

.panel-header__mark {
	width: 24px;
	height: 24px;
	background: var(--accent);
	border-radius: var(--radius-btn);
	display: inline-block;
}

.panel-header__wordmark {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: -0.02em;
	color: #eef1f2;
}

.panel-header__nav {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
	flex: 1;
}

.panel-header__nav-item {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 13.5px;
	color: #b7bfc2;
	text-decoration: none;
	white-space: nowrap;
	padding: var(--sp-2) 0;
}

.panel-header__nav-item:hover,
.panel-header__nav-item.is-active {
	color: #eef1f2;
}

.panel-header__search {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius-chip);
	padding: var(--sp-2) var(--sp-4);
	color: #b7bfc2;
	flex-shrink: 0;
}

.panel-header__search .panel-icon {
	width: 15px;
	height: 15px;
	color: #b7bfc2;
}

.panel-header__search input {
	background: none;
	border: none;
	outline: none;
	color: #eef1f2;
	font-family: var(--font-body);
	font-size: 13.5px;
	width: 110px;
}

.panel-header__search input::placeholder {
	color: #b7bfc2;
}

.panel-header__mobile-search,
.panel-header__mobile-menu {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: none;
	border: none;
	color: #eef1f2;
	cursor: pointer;
}

.panel-header__mobile-search .panel-icon,
.panel-header__mobile-menu .panel-icon {
	width: 20px;
	height: 20px;
}

/* Full-screen dark drawer, hidden by default */
.panel-drawer {
	position: fixed;
	inset: 0;
	background: var(--ink);
	z-index: 100;
	padding: var(--sp-5) var(--sp-5) var(--sp-6);
	display: none;
	flex-direction: column;
	overflow-y: auto;
}

.panel-drawer.is-open {
	display: flex;
}

.panel-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.panel-drawer__close {
	width: 44px;
	height: 44px;
	background: none;
	border: none;
	color: #eef1f2;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.panel-drawer__close .panel-icon {
	width: 20px;
	height: 20px;
}

.panel-drawer__search {
	margin: var(--sp-5) 0;
}

.panel-drawer__search input {
	width: 100%;
}

.panel-drawer__nav {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
}

.panel-nav-mobile {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 16px;
	color: #b7bfc2;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.panel-nav-mobile:hover,
.panel-nav-mobile.is-active {
	color: #eef1f2;
}

@media (max-width: 900px) {
	.panel-header__nav,
	.panel-header__search {
		display: none;
	}
	.panel-header__mobile-search,
	.panel-header__mobile-menu {
		display: flex;
	}
	.panel-header__bar {
		padding: 0 var(--sp-4);
		gap: var(--sp-2);
	}
	.panel-header__brand {
		flex: 1;
	}
}
