/*
 * TikToker.love Header V2
 * Hard-edge digital editorial system.
 */

:root {
	--tkl-brand-black: #050505;
	--tkl-brand-white: #ffffff;
	--tkl-brand-blue: #4c5fd4;
	--tkl-brand-yellow: #fbd56a;
	--tkl-brand-line: #dedfe5;
}


/* =========================================================
   HEADER
   ========================================================= */

header.header.tkl-header-v2 {
	background: #fff !important;
	background-image: none !important;
	border: 0 !important;
	border-bottom: 1px solid var(--tkl-brand-line) !important;
	border-radius: 0 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .05) !important;
	position: sticky;
	top: 0;
	z-index: 900;
}

header.header.tkl-header-v2::before {
	background:
		linear-gradient(
			90deg,
			var(--tkl-brand-blue) 0%,
			var(--tkl-brand-blue) 58%,
			var(--tkl-brand-yellow) 58%,
			var(--tkl-brand-yellow) 76%,
			var(--tkl-brand-black) 76%,
			var(--tkl-brand-black) 100%
		) !important;
	content: "";
	display: block;
	height: 3px;
	width: 100%;
}


/* =========================================================
   ADMIN BAR
   ========================================================= */

.admin-bar header.header.tkl-header-v2 {
	top: 32px;
}

@media screen and (max-width: 782px) {

	.admin-bar header.header.tkl-header-v2 {
		top: 46px;
	}
}

/* =========================================================
   INNER
   ========================================================= */

.tkl-header-v2 #inner-header,
.tkl-header-v2 #inner-header.inner-header,
.tkl-header-v2 #inner-header.wrap {
	align-items: center;
	background: #fff !important;
	display: flex;
	gap: 18px;
	height: auto !important;
	margin: 0 auto;
	max-width: 1240px;
	min-height: 68px;
	padding: 0 20px;
	width: 100%;
}


/* =========================================================
   LOGO WRAPPER
   ========================================================= */

.tkl-header-v2 #logo {
	flex: 0 0 auto;
	height: auto !important;
	line-height: 1 !important;
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
}

.tkl-header-v2 #logo .header-logo__link {
	align-items: center;
	color: #050505 !important;
	display: flex;
	height: auto !important;
	line-height: 1 !important;
	min-height: 68px;
	text-decoration: none !important;
}


/* =========================================================
   DESKTOP BRAND
   ========================================================= */

.tkl-brand-desktop {
	align-items: center;
	display: inline-flex;
	gap: 10px;
}

.tkl-brand-mark {
	background-image: url("brand/ttllogo.png?v=20260830-2");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	border-radius: 0 !important;
	display: block;
	flex: 0 0 44px;
	height: 44px;
	width: 44px;
}

.tkl-brand-wordmark {
	align-items: baseline;
	color: #050505;
	display: inline-flex;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		"Hiragino Kaku Gothic ProN",
		"Yu Gothic",
		Meiryo,
		sans-serif;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1;
	white-space: nowrap;
}

.tkl-brand-dot {
	color: var(--tkl-brand-blue);
	padding: 0 .03em;
}

.tkl-brand-wordmark-love {
	font-weight: 900;
}


/* Never show mobile brand on desktop */
.tkl-brand-mobile {
	display: none;
}


/* =========================================================
   DESKTOP NAV
   ========================================================= */

.tkl-header-v2 .desktop-nav {
	flex: 1 1 auto;
	margin: 0 !important;
	min-width: 0;
	order: 2;
}

.tkl-header-v2 .desktop-nav ul,
.tkl-header-v2 .desktop-nav .menu {
	align-items: stretch;
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	justify-content: flex-end;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

.tkl-header-v2 .desktop-nav li {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tkl-header-v2 .desktop-nav li a {
	align-items: center;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: #171717 !important;
	display: flex;
	font-size: 12px;
	font-weight: 700;
	height: 68px !important;
	line-height: 1.2 !important;
	padding: 0 9px !important;
	position: relative;
	text-decoration: none !important;
	white-space: nowrap;
}

.tkl-header-v2 .desktop-nav li a::after {
	background: transparent;
	bottom: 0;
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	width: 100%;
}

.tkl-header-v2 .desktop-nav li a:hover,
.tkl-header-v2 .desktop-nav li.current-menu-item > a {
	color: var(--tkl-brand-blue) !important;
}

.tkl-header-v2 .desktop-nav li a:hover::after,
.tkl-header-v2 .desktop-nav li.current-menu-item > a::after {
	background: var(--tkl-brand-yellow);
}


/* =========================================================
   SEARCH
   ========================================================= */

.tkl-header-v2 .header-search {
	flex: 0 0 44px;
	margin: 0 !important;
	order: 3;
	position: relative;
	width: 44px;
}

.tkl-header-v2 .header-search__open {
	align-items: center !important;
	background: #fff !important;
	border: 1px solid #050505 !important;
	border-radius: 0 !important;
	color: #050505 !important;
	cursor: pointer;
	display: flex !important;
	height: 44px !important;
	justify-content: center;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 44px !important;
}

.tkl-header-v2 .header-search__open:hover {
	background: var(--tkl-brand-yellow) !important;
	color: #050505 !important;
}

.tkl-header-v2 .header-search__open svg,
.tkl-header-v2 .header-search__open i {
	display: block !important;
	font-size: 20px !important;
	height: 20px !important;
	line-height: 20px !important;
	max-height: 20px !important;
	max-width: 20px !important;
	width: 20px !important;
}

.tkl-header-v2 .header-search__modal {
	z-index: 1000;
}

/* Search is intentionally available in the homepage hero only. */
.tkl-header-v2 .header-search {
	display: none !important;
}

/* The mobile trigger is emitted by the child theme, not SANGO. */
.tkl-mobile-menu {
	display: none;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 768px) {

	header.header.tkl-header-v2 {
		min-height: 67px;
	}

	.tkl-header-v2 #inner-header,
	.tkl-header-v2 #inner-header.inner-header,
	.tkl-header-v2 #inner-header.wrap {
		align-items: center;
		display: flex;
		justify-content: center;
		min-height: 64px;
		padding: 0 64px;
		position: relative;
		width: 100%;
	}


	/* =========================================
	   CENTER BRAND
	   ========================================= */

	.tkl-header-v2 #logo {
		align-items: center;
		display: flex;
		flex: 0 1 auto;
		height: 64px !important;
		justify-content: center;
		margin: 0 auto !important;
		max-width: none !important;
		min-width: 0;
		padding: 0 !important;
	}

	.tkl-header-v2 #logo .header-logo__link {
		align-items: center;
		display: flex;
		height: 64px !important;
		justify-content: center;
		line-height: 1 !important;
		margin: 0;
		min-height: 64px;
		padding: 0;
	}


	/* Desktop brand must never appear on mobile */

	.tkl-brand-desktop {
		display: none !important;
	}


	/* New horizontal mobile logo */

	.tkl-brand-mobile {
		aspect-ratio: 4 / 1;
		background-image:
			url("brand/ttlmoblogo.png?v=20260830-2");
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
		display: block !important;
		flex: 0 1 auto;
		height: auto;
		max-width: 220px;
		width:
			min(
				220px,
				calc(100vw - 132px)
			);
	}


	/* =========================================
	   DESKTOP NAV OFF
	   ========================================= */

	.tkl-header-v2 .desktop-nav {
		display: none !important;
	}


	/* =========================================
	   SEARCH — RIGHT
	   ========================================= */

	.tkl-header-v2 .header-search {
		height: 44px;
		margin: 0 !important;
		position: absolute;
		right: 12px;
		top: 50%;
		transform: translateY(-50%);
		width: 44px;
		z-index: 20;
	}

	.tkl-header-v2 .header-search__open {
		align-items: center !important;
		background: #fff !important;
		border: 1px solid #050505 !important;
		border-radius: 0 !important;
		color: #050505 !important;
		display: flex !important;
		height: 44px !important;
		justify-content: center !important;
		margin: 0 !important;
		padding: 0 !important;
		width: 44px !important;
	}

	.tkl-header-v2 .header-search__open svg,
	.tkl-header-v2 .header-search__open i {
		display: block !important;
		font-size: 20px !important;
		height: 20px !important;
		line-height: 20px !important;
		max-height: 20px !important;
		max-width: 20px !important;
		width: 20px !important;
	}


	/* =========================================
	   MENU — LEFT
	   ========================================= */

	.tkl-header-v2 #drawer {
		left: 12px !important;
		margin: 0 !important;
		position: absolute !important;
		right: auto !important;
		top: 50% !important;
		transform: translateY(-50%);
		z-index: 20;
	}

	.tkl-header-v2 #drawer__open {
		align-items: center !important;
		background: #050505 !important;
		border: 1px solid #050505 !important;
		border-radius: 0 !important;
		color: #fff !important;
		display: flex !important;
		font-size: 0 !important;
		height: 44px !important;
		justify-content: center !important;
		line-height: 1 !important;
		margin: 0 !important;
		min-height: 44px !important;
		min-width: 44px !important;
		padding: 0 !important;
		position: static !important;
		width: 44px !important;
	}


	/* Kill original FontAwesome icon */

	.tkl-header-v2 #drawer__open > * {
		display: none !important;
	}


	/* Draw simple hard-edge hamburger */

	.tkl-header-v2 #drawer__open::before {
		background: #fff !important;
		box-shadow:
			0 -6px 0 #fff,
			0 6px 0 #fff;
		content: "" !important;
		display: block !important;
		height: 2px !important;
		margin: 0 !important;
		position: static !important;
		transform: none !important;
		width: 20px !important;
	}

	.tkl-header-v2 #drawer__open::after {
		display: none !important;
	}
}


/* =========================================================
   MOBILE MENU — right-side, closed by default
   ========================================================= */

@media screen and (max-width: 768px) {

	/* The child theme owns the only mobile trigger. */
	body #drawer,
	body #drawer__open {
		display: none !important;
	}

	.tkl-mobile-menu {
		display: block;
		position: absolute;
		right: 12px;
		top: 13px;
		z-index: 1002;
	}

	.tkl-mobile-menu > summary {
		align-items: center;
		background: #fff;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		cursor: pointer;
		display: flex;
		height: 44px;
		justify-content: center;
		list-style: none;
		margin: 0;
		padding: 0;
		width: 44px;
	}

	.tkl-mobile-menu > summary::-webkit-details-marker {
		display: none;
	}

	.tkl-mobile-menu__icon,
	.tkl-mobile-menu__icon::before,
	.tkl-mobile-menu__icon::after {
		background: #050505;
		display: block;
		height: 2px;
		width: 24px;
	}

	.tkl-mobile-menu__icon {
		position: relative;
	}

	.tkl-mobile-menu__icon::before,
	.tkl-mobile-menu__icon::after {
		content: "";
		left: 0;
		position: absolute;
	}

	.tkl-mobile-menu__icon::before {
		top: -7px;
	}

	.tkl-mobile-menu__icon::after {
		top: 7px;
	}

	.tkl-mobile-menu:not([open]) .tkl-mobile-menu__panel {
		display: none !important;
	}

	.tkl-mobile-menu[open] .tkl-mobile-menu__panel {
		background: #fff;
		border: 1px solid #dedfe5;
		box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
		display: block;
		max-height: calc(100vh - 84px);
		overflow-y: auto;
		position: fixed;
		right: 12px;
		top: 67px;
		width: min(320px, calc(100vw - 24px));
	}

	.tkl-mobile-menu__panel ul,
	.tkl-mobile-menu__panel .menu {
		list-style: none;
		margin: 0;
		padding: 7px 0;
	}

	.tkl-mobile-menu__panel li {
		margin: 0;
		padding: 0;
	}

	.tkl-mobile-menu__panel a {
		color: #171717 !important;
		display: block;
		font-size: 15px;
		font-weight: 800;
		padding: 14px 18px;
		text-decoration: none !important;
	}

	.tkl-mobile-menu__panel a:hover,
	.tkl-mobile-menu__panel a:focus-visible {
		background: #f6f7fb;
		color: #4c5fd4 !important;
	}
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 350px) {

	.tkl-brand-mobile {
		max-width: 190px;
		width: calc(100vw - 126px);
	}

	.tkl-header-v2 #drawer {
		right: 8px;
	}
}


/* =========================================================
   MOBILE — centered logo, right-side menu only
   ========================================================= */

@media screen and (max-width: 768px) {

	.tkl-header-v2 .header-search {
		display: none !important;
	}

	.tkl-header-v2 #inner-header,
	.tkl-header-v2 #inner-header.inner-header,
	.tkl-header-v2 #inner-header.wrap {
		min-height: 64px;
		padding: 0 66px;
		position: relative;
	}

	.tkl-header-v2 #logo {
		align-items: center;
		display: flex;
		height: 64px !important;
		justify-content: center;
		left: 50%;
		margin: 0 !important;
		padding: 0 !important;
		position: absolute;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.tkl-header-v2 #logo .header-logo__link {
		align-items: center;
		display: flex;
		height: 64px !important;
		justify-content: center;
		margin: 0;
		padding: 0;
	}

	.tkl-brand-mobile {
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
		display: block !important;
		max-width: 220px;
		width: min(220px, calc(100vw - 140px));
	}

	.tkl-header-v2 #drawer {
		left: auto !important;
		margin: 0 !important;
		position: absolute !important;
		right: 14px !important;
		top: 50% !important;
		transform: translateY(-50%);
		z-index: 20;
	}

	.tkl-header-v2 #drawer__open {
		align-items: center !important;
		background: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		color: #050505 !important;
		display: flex !important;
		font-size: 0 !important;
		height: 44px !important;
		justify-content: center !important;
		margin: 0 !important;
		min-height: 44px !important;
		min-width: 44px !important;
		padding: 0 !important;
		position: static !important;
		width: 44px !important;
	}

	.tkl-header-v2 #drawer__open > * {
		display: none !important;
	}

	.tkl-header-v2 #drawer__open::before {
		background: #050505 !important;
		box-shadow: 0 -7px 0 #050505, 0 7px 0 #050505;
		content: "" !important;
		display: block !important;
		height: 2px !important;
		margin: 0 !important;
		position: static !important;
		transform: none !important;
		width: 24px !important;
	}

	.tkl-header-v2 #drawer__open::after {
		display: none !important;
	}
}



/* =========================================================
   TABLET DESKTOP
   ========================================================= */

@media screen and (min-width: 769px) and (max-width: 1100px) {

	.tkl-header-v2 #inner-header,
	.tkl-header-v2 #inner-header.inner-header,
	.tkl-header-v2 #inner-header.wrap {
		gap: 10px;
		padding-left: 12px;
		padding-right: 12px;
	}

	.tkl-brand-wordmark {
		display: none;
	}

	.tkl-header-v2 .desktop-nav li a {
		font-size: 11px;
		padding-left: 7px !important;
		padding-right: 7px !important;
	}
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.tkl-header-v2 a:focus-visible,
.tkl-header-v2 label:focus-visible {
	outline: 3px solid var(--tkl-brand-yellow) !important;
	outline-offset: 2px !important;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.tkl-header-v2 *,
	.tkl-header-v2 *::before,
	.tkl-header-v2 *::after {
		transition-duration: .01ms !important;
	}
}
