:root {
	--sub-side: clamp(230px, 17.4vw, 330px);
}

.ktt-subpage #wrapper {
	padding-top: 0;
	padding-left: var(--sub-side);
}

.ktt-subpage #header {
	display: none;
}

.sub-side-panel {
	position: fixed;
	z-index: 10001;
	inset: 0 auto 0 0;
	width: var(--sub-side);
	overflow: hidden;
	background: #0878d1;
	color: #fff;
}

.sub-side-panel::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0 0 auto;
	height: 72%;
	background: #24282d;
	clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
}

.sub-side-panel::after {
	content: "";
	position: absolute;
	z-index: 2;
	inset: 0;
	pointer-events: none;
	opacity: .22;
	background-image:
		linear-gradient(122deg, transparent 49.6%, rgba(43,170,255,.2) 49.8%, transparent 50.1%),
		radial-gradient(circle at 15% 12%, rgba(43,170,255,.22), transparent 26%);
	background-size: 370px 370px, 100% 100%;
}

.sub-side-logo {
	position: relative;
	z-index: 3;
	width: max-content;
	margin: 2.8vh auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
}

.sub-side-logo img {
	display: block;
	width: clamp(108px, 7vw, 140px);
	height: auto;
	max-height: none;
	object-fit: contain;
	filter: drop-shadow(0 9px 16px rgba(0,0,0,.3));
}

.sub-side-nav {
	position: relative;
	z-index: 4;
	margin-top: clamp(2.5rem, 7vh, 6.5rem);
}

.sub-side-nav a {
	position: relative;
	padding: .95rem 9%;
	display: flex;
	align-items: center;
	gap: 1.1rem;
	color: rgba(255,255,255,.9);
	border: 0;
	font-size: clamp(.78rem, .9vw, .95rem);
	font-weight: 600;
}

.sub-side-nav a::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0 100% 0 0;
	background: #0878d1;
	transition: right .3s ease;
}

.sub-side-nav a:hover,
.sub-side-nav a[aria-current="page"] {
	color: #fff !important;
}

.sub-side-nav a:hover::after,
.sub-side-nav a[aria-current="page"]::after {
	right: 0;
}

.sub-side-nav span {
	width: 1.4rem;
	flex: 0 0 1.4rem;
	color: rgba(255,255,255,.36);
	font-size: .58rem;
	letter-spacing: .1em;
}

.sub-side-contact {
	position: absolute;
	z-index: 4;
	left: 0;
	right: 0;
	bottom: 0;
	height: 31%;
	padding: clamp(3.6rem, 8vh, 6.5rem) 9% 1.5rem;
}

.sub-side-contact::before {
	content: "";
	position: absolute;
	left: -18%;
	top: 10%;
	width: 150%;
	height: 1px;
	background: rgba(255,255,255,.18);
	transform: rotate(-29deg);
	transform-origin: center;
}

.sub-side-contact div {
	margin-top: 1.05rem;
}

.sub-side-contact h2 {
	margin: 0 0 .2rem;
	color: #fff;
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.sub-side-contact p {
	margin: 0;
	color: rgba(255,255,255,.86);
	font-size: .67rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.sub-side-contact a {
	color: inherit;
	border: 0;
}

@media screen and (max-height: 760px) and (min-width: 801px) {
	.sub-side-logo img { width: 90px; }
	.sub-side-nav { margin-top: 1.5rem; }
	.sub-side-nav a { padding-block: .65rem; }
	.sub-side-contact { padding-top: 2.5rem; }
	.sub-side-contact div { margin-top: .55rem; }
}

@media screen and (max-width: 800px) {
	.ktt-subpage #wrapper {
		padding-top: 2.75em;
		padding-left: 0;
	}

	.ktt-subpage #header {
		display: flex;
	}

	.sub-side-panel {
		display: none;
	}
}
