/* KC5GFD Skywave: jump-to bar + back-to-top antenna. v1.0.5 */

/* ---------- Jump bar ---------- */
.kc-jump {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(18, 11, 51, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(159, 140, 255, 0.25);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transition: box-shadow .25s ease;
	margin: 0 !important;
}
.admin-bar .kc-jump { top: 32px; }
@media (max-width: 782px) { .admin-bar .kc-jump { top: 0; } }
.kc-jump.is-stuck { box-shadow: 0 10px 30px rgba(14, 8, 40, .35); }
.kc-jump__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 3rem);
	display: flex;
	align-items: center;
	gap: 1.25rem;
	font-family: var(--kc-mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.kc-jump__tag {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--kc-amber);
	padding: 0.95rem 0;
}
.kc-jump__tag::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--kc-amber);
	box-shadow: 0 0 8px var(--kc-amber);
	animation: kc-jump-blink 2.4s ease-in-out infinite;
}
@keyframes kc-jump-blink { 50% { opacity: .35; } }
.kc-jump__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.25rem;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.kc-jump__list::-webkit-scrollbar { display: none; }
.kc-jump__list li { flex: none; margin: 0; }
.kc-jump__list a {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: 0.45rem;
	padding: 0.95rem 0.8rem;
	color: rgba(247, 245, 255, .72);
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s ease;
}
.kc-jump__ch { color: var(--kc-lav); font-size: 0.68rem; opacity: .8; }
.kc-jump__list a::after {
	content: "";
	position: absolute;
	left: 0.8rem;
	right: 0.8rem;
	bottom: 0;
	height: 2px;
	background: var(--kc-cyan);
	box-shadow: 0 0 10px var(--kc-cyan);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
}
.kc-jump__list a:hover,
.kc-jump__list a:focus-visible { color: #fff; }
.kc-jump__list a.is-active { color: var(--kc-cyan); }
.kc-jump__list a.is-active .kc-jump__ch { color: var(--kc-cyan); opacity: 1; }
.kc-jump__list a.is-active::after { transform: scaleX(1); }
.kc-jump__list a:focus-visible { outline: 2px solid var(--kc-cyan); outline-offset: -4px; }

/* Land sections below the sticky bar. */
main h2[id], main .linklistcatname[id], main h3[id] { scroll-margin-top: 5rem; }
.admin-bar main h2[id], .admin-bar main .linklistcatname[id], .admin-bar main h3[id] { scroll-margin-top: 7rem; }

@media (max-width: 600px) {
	.kc-jump__inner { gap: 0.75rem; font-size: 0.72rem; }
	.kc-jump__tag { font-size: 0; gap: 0; }
	.kc-jump__ch { display: none; }
}

/* ---------- Back to top antenna ---------- */
.kc-top {
	position: fixed;
	right: 1.25rem;
	bottom: 4.75rem; /* clears the language picker */
	z-index: 60;
	width: 64px;
	height: 84px;
	padding: 0;
	border: 1px solid rgba(159, 140, 255, 0.35);
	border-radius: 14px;
	background: var(--kc-night);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s ease, transform .3s ease, visibility .3s;
	box-shadow: 0 8px 24px rgba(14, 8, 40, .35);
}
.kc-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.kc-top svg { width: 100%; height: 100%; overflow: visible; padding: 4px 6px 2px; box-sizing: border-box; }
.kc-top:hover { border-color: var(--kc-cyan); box-shadow: 0 8px 24px rgba(14, 8, 40, .35), 0 0 18px rgba(63, 240, 224, .25); }
.kc-top__word {
	font-family: var(--kc-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	fill: var(--kc-lav);
	transition: fill .2s ease;
}
.kc-top__mast, .kc-top__base { fill: none; stroke: var(--kc-lilac); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kc-top__tip { fill: var(--kc-cyan); stroke: none; stroke-width: 1.2; }
.kc-top__w { fill: none; stroke: var(--kc-cyan); stroke-width: 2.4; stroke-linecap: round; opacity: .25; transform-box: view-box; transform-origin: 32px 46px; }

/* Idle: a slow hint of signal. Hover: full radiate. */
.kc-top .kc-top__w { animation: kc-top-idle 3.2s ease-in-out infinite; }
.kc-top .kc-top__w2 { animation-delay: .25s; }
.kc-top .kc-top__w3 { animation-delay: .5s; }
@keyframes kc-top-idle { 0%, 100% { opacity: .18; } 40% { opacity: .5; } }

.kc-top:hover .kc-top__word,
.kc-top:focus-visible .kc-top__word { fill: var(--kc-cyan); }
.kc-top:hover .kc-top__w,
.kc-top:focus-visible .kc-top__w { animation: kc-top-radiate 1.1s ease-out infinite; }
.kc-top:hover .kc-top__w2, .kc-top:focus-visible .kc-top__w2 { animation-delay: .18s; }
.kc-top:hover .kc-top__w3, .kc-top:focus-visible .kc-top__w3 { animation-delay: .36s; }
@keyframes kc-top-radiate {
	0% { opacity: 0; transform: scale(.8); }
	35% { opacity: 1; }
	100% { opacity: 0; transform: scale(1.15); }
}
.kc-top:focus-visible { outline: 2px solid var(--kc-cyan); outline-offset: 4px; border-radius: 8px; }

/* Click: the signal launches upward. */
.kc-top.is-launching .kc-top__w { animation: kc-top-launch .9s cubic-bezier(.3, .6, .3, 1) forwards; }
.kc-top.is-launching .kc-top__w2 { animation-delay: .08s; }
.kc-top.is-launching .kc-top__w3 { animation-delay: .16s; }
.kc-top.is-launching .kc-top__word { animation: kc-top-word .9s ease forwards; }
@keyframes kc-top-launch {
	0% { opacity: 1; transform: translateY(0) scale(1); }
	100% { opacity: 0; transform: translateY(-70px) scale(1.4); }
}
@keyframes kc-top-word {
	0% { transform: translateY(0); opacity: 1; }
	60% { transform: translateY(-30px); opacity: 0; }
	61% { transform: translateY(10px); opacity: 0; }
	100% { transform: translateY(0); opacity: 1; }
}
.kc-top__word { transform-box: fill-box; }

@media (prefers-reduced-motion: reduce) {
	.kc-top .kc-top__w, .kc-top:hover .kc-top__w, .kc-top.is-launching .kc-top__w, .kc-top.is-launching .kc-top__word, .kc-jump__tag::before { animation: none; }
	.kc-top__w { opacity: .8; }
}
