/* ============================================================
   QOJO MEDIA — GLOBAL HEADER
   ============================================================ */

/* Overlays use the hidden attribute; make sure it always wins
   over display rules below so invisible layers never block clicks. */
.qojo-search[hidden],
.qojo-scrim[hidden],
.qojo-drawer[hidden] {
	display: none !important;
}

.qojo-site-header {
	background: #fff;
}

/* ---------- Top tier ---------- */

.qojo-header__top {
	padding: 26px 0;
}

.qojo-header__top-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.qojo-header__left {
	display: flex;
	justify-content: flex-start;
}

.qojo-header__actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
}

.qojo-brand {
	font-family: var(--qojo-font-heading);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--qojo-secondary);
	text-decoration: none;
	line-height: 1;
}

.qojo-brand__dot {
	color: var(--qojo-primary);
}

.qojo-brand--sm {
	font-size: 24px;
}

.qojo-icon-btn {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--qojo-secondary);
	cursor: pointer;
	padding: 0; /* GeneratePress puts padding:10px 20px on all buttons, which collapses the icon */
	transition: background 0.2s ease;
}

.qojo-icon-btn:hover {
	background: var(--qojo-grey-100);
}

/* Button SVG icons: keep them at natural size and never let flexbox shrink them. */
.qojo-site-header .qojo-icon-btn svg,
.qojo-drawer .qojo-icon-btn svg,
.qojo-search .qojo-icon-btn svg {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0; /* never let flexbox crush the icon */
	position: static;
	fill: none;
}

.qojo-header__subscribe {
	text-decoration: none;
}

/* ---------- Nav tier ---------- */

.qojo-header__nav {
	border-top: 1px solid var(--qojo-grey-100);
}

.qojo-header__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 38px;
}

.qojo-header__nav a {
	position: relative;
	display: inline-block;
	padding: 17px 0;
	font-family: var(--qojo-font-heading);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--qojo-secondary);
	text-decoration: none;
	white-space: nowrap;
}

.qojo-header__nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	height: 2px;
	background: var(--qojo-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.qojo-header__nav a:hover {
	color: var(--qojo-primary);
}

.qojo-header__nav a:hover::after {
	transform: scaleX(1);
}

/* ---------- Search overlay ---------- */

.qojo-search {
	position: fixed;
	inset: 0;
	z-index: 400;
	background: rgba(255, 255, 255, 0.98);
	display: flex;
	justify-content: center;
	padding: 16vh 24px 0;
	opacity: 0;
	transition: opacity 0.25s ease;
}

body.qojo-search-open .qojo-search {
	opacity: 1;
}

.qojo-search__panel {
	width: 100%;
	max-width: 720px;
	position: relative;
}

.qojo-search__close {
	position: absolute;
	top: -64px;
	right: 0;
}

.qojo-search__input {
	width: 100%;
	border: none;
	border-bottom: 2px solid var(--qojo-secondary);
	background: transparent;
	font-family: var(--qojo-font-heading);
	font-size: 38px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--qojo-secondary);
	padding: 12px 4px;
	outline: none;
}

.qojo-search__input::placeholder {
	color: var(--qojo-grey-400);
}

.qojo-search__hint {
	font-size: 13px;
	color: var(--qojo-grey-500);
	margin: 18px 0 0;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ---------- Drawer ---------- */

.qojo-scrim {
	position: fixed;
	inset: 0;
	z-index: 400;
	background: rgba(8, 9, 43, 0.5);
	opacity: 0;
	transition: opacity 0.3s ease;
}

body.qojo-menu-open .qojo-scrim {
	opacity: 1;
}

.qojo-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 410;
	width: min(400px, 92vw);
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(-102%);
	transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
	box-shadow: 24px 0 64px rgba(8, 9, 43, 0.12);
}

body.qojo-menu-open .qojo-drawer {
	transform: translateX(0);
}

.qojo-drawer__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 22px 28px;
	border-bottom: 1px solid var(--qojo-grey-100);
}

.qojo-drawer__nav {
	flex: 1;
	overflow-y: auto;
	padding: 8px 28px 28px;
}

.qojo-drawer__label {
	font-family: var(--qojo-font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--qojo-grey-500);
	margin: 26px 0 6px;
}

.qojo-drawer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.qojo-drawer__nav li a {
	display: block;
	padding: 10px 0;
	font-family: var(--qojo-font-heading);
	font-size: 17px;
	font-weight: 600;
	color: var(--qojo-secondary);
	text-decoration: none;
	border-bottom: 1px solid var(--qojo-grey-100);
}

.qojo-drawer__nav li a:hover {
	color: var(--qojo-primary);
}

.qojo-drawer__foot {
	padding: 24px 28px 32px;
	border-top: 1px solid var(--qojo-grey-100);
}

.qojo-drawer__foot .qojo-btn {
	text-decoration: none;
}

.qojo-btn--block {
	display: block;
	text-align: center;
}

.qojo-drawer__note {
	font-size: 13px;
	color: var(--qojo-grey-500);
	margin: 12px 0 0;
	text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
	.qojo-header__top {
		padding: 16px 0;
	}

	/* Subscribe pill lives in the slide-in menu on mobile. */
	.qojo-header__subscribe {
		display: none;
	}

	.qojo-brand {
		font-size: 25px;
	}

	.qojo-header__actions {
		gap: 10px;
	}

	.qojo-icon-btn {
		width: 38px;
		height: 38px;
	}

	.qojo-header__nav ul {
		justify-content: flex-start;
		gap: 26px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.qojo-header__nav ul::-webkit-scrollbar {
		display: none;
	}

	.qojo-search__input {
		font-size: 26px;
	}
}
