/* JoeKe chrome — header, footer, buttons, base layout */

.jk-header {
	background: var(--jk-teal);
	color: var(--jk-on-dark);
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid rgba(193, 255, 114, 0.12);
}

.jk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	min-height: 4.5rem;
	padding-block: 0.55rem;
}

.jk-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
	color: inherit;
	line-height: 0;
}

.jk-brand__wordmark {
	display: block;
	height: 44px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
}

.jk-header__end {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.85rem 1.1rem;
	flex: 1 1 auto;
	min-width: 0;
}

.jk-nav {
	display: none;
	align-items: center;
	gap: 1.35rem;
}

.jk-nav a {
	color: #fff;
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
	transition: color var(--jk-duration) var(--jk-ease);
}

.jk-nav a:hover,
.jk-nav a.is-active {
	color: var(--jk-lime);
}

.jk-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	line-height: 0;
	opacity: 0.9;
}

.jk-search-toggle svg {
	display: block;
	width: 18px;
	height: 18px;
}

.jk-search-toggle:hover,
.jk-search-toggle[aria-expanded="true"] {
	color: var(--jk-lime);
	opacity: 1;
}

.jk-search {
	display: none;
	background: var(--jk-teal-mid);
	border-top: 1px solid rgba(193, 255, 114, 0.12);
	padding: 0.85rem 0 1rem;
}

.jk-search.is-open {
	display: block;
}

.jk-search__form {
	display: flex;
	gap: 0.65rem;
	align-items: center;
}

.jk-search__form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	font: inherit;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.jk-search__form input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.jk-btn--talk {
	background: var(--jk-lime);
	border-color: var(--jk-lime);
	color: var(--jk-teal-deep);
	border-radius: 4px;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	padding: 0.62rem 1.05rem;
}

.jk-btn--talk:hover {
	background: var(--jk-lime-hot);
	border-color: var(--jk-lime-hot);
	color: var(--jk-teal-deep);
	transform: none;
}

.jk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border-radius: var(--jk-radius);
	font-family: var(--jk-font-body);
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform var(--jk-duration) var(--jk-ease), background var(--jk-duration) var(--jk-ease), color var(--jk-duration) var(--jk-ease), border-color var(--jk-duration) var(--jk-ease);
}

.jk-btn:hover {
	transform: translateY(-1px);
}

.jk-btn--sm {
	padding: 0.55rem 0.9rem;
}

.jk-btn--md {
	padding: 0.85rem 1.25rem;
}

.jk-btn--primary {
	background: var(--jk-lime);
	color: var(--jk-teal-deep);
}

.jk-btn--primary:hover {
	background: var(--jk-lime-hot);
	color: var(--jk-teal-deep);
}

.jk-btn--ghost {
	background: transparent;
	border-color: rgba(193, 255, 114, 0.45);
	color: var(--jk-lime);
}

.jk-btn--ghost:hover {
	border-color: var(--jk-lime);
	color: #fff;
}

.jk-btn--dark {
	background: var(--jk-teal);
	color: var(--jk-on-dark);
}

.jk-btn--dark:hover {
	background: var(--jk-teal-mid);
	color: var(--jk-lime);
}

.jk-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.jk-nav-toggle span,
.jk-nav-toggle span::before,
.jk-nav-toggle span::after {
	display: block;
	width: 1rem;
	height: 2px;
	background: currentColor;
	position: relative;
}

.jk-nav-toggle span::before,
.jk-nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.jk-nav-toggle span::before { top: -5px; }
.jk-nav-toggle span::after { top: 5px; }

.jk-drawer {
	display: none;
	background: var(--jk-teal-mid);
	border-top: 1px solid rgba(193, 255, 114, 0.12);
	padding: 0.85rem 0 1.1rem;
}

.jk-drawer.is-open {
	display: block;
}

.jk-drawer a {
	display: block;
	padding: 0.65rem 0;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jk-drawer a:hover {
	color: var(--jk-lime);
}

.jk-foot {
	background: var(--jk-teal-deep);
	color: var(--jk-on-dark-muted);
	padding: 2.5rem 0 1.5rem;
	margin-top: 0;
}

.jk-foot__grid {
	display: grid;
	gap: 1.5rem 2rem;
	grid-template-columns: 1.4fr 1fr 1fr;
	align-items: start;
	padding-bottom: 1.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jk-foot__brand-block {
	min-width: 0;
}

.jk-foot__logo {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	gap: 0;
	line-height: 0;
	margin-bottom: 0.75rem;
	text-decoration: none;
	color: #fff;
	border: 2px solid var(--jk-teal);
	isolation: isolate;
}

.jk-foot__logo::before {
	content: "";
	position: absolute;
	inset: -2px;
	pointer-events: none;
	z-index: 2;
	background:
		linear-gradient(var(--jk-lime), var(--jk-lime)) 0 0 / 0 2px no-repeat,
		linear-gradient(var(--jk-lime), var(--jk-lime)) 100% 0 / 2px 0 no-repeat,
		linear-gradient(var(--jk-lime), var(--jk-lime)) 100% 100% / 0 2px no-repeat,
		linear-gradient(var(--jk-lime), var(--jk-lime)) 0 100% / 2px 0 no-repeat;
	transition:
		background-size 0.55s var(--jk-ease),
		opacity 0.2s ease;
	opacity: 0;
}

.jk-foot__logo:hover {
	border-color: transparent;
}

.jk-foot__logo:hover::before {
	opacity: 1;
	background-size:
		100% 2px,
		2px 100%,
		100% 2px,
		2px 100%;
	transition:
		background-size 0.55s var(--jk-ease),
		opacity 0.15s ease;
	transition-delay: 0s, 0s;
}

.jk-foot__logo img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 130px;
	object-fit: contain;
	margin: 0;
	flex-shrink: 0;
}

.jk-foot__logo-text {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0 0.8rem;
	font-family: var(--jk-font-display);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--jk-lime);
	white-space: nowrap;
	background: transparent;
	transition: color 0.35s var(--jk-ease);
}

.jk-foot__logo:hover .jk-foot__logo-text {
	color: #fff;
}

.jk-foot__blurb {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	max-width: 22rem;
}

.jk-foot__social {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.85rem;
}

.jk-foot__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.15rem;
	height: 2.15rem;
	color: var(--jk-on-dark-muted);
	text-decoration: none;
	transition: color var(--jk-duration) var(--jk-ease);
}

.jk-foot__icon:hover {
	color: var(--jk-lime);
}

.jk-foot__col h3 {
	margin: 0 0 0.65rem;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--jk-lime);
}

.jk-foot__col a {
	display: block;
	color: var(--jk-on-dark-muted);
	text-decoration: none;
	font-size: 0.92rem;
	padding: 0.2rem 0;
}

.jk-foot__col a:hover {
	color: var(--jk-lime);
}

.jk-foot__copy {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	padding-top: 1.15rem;
	font-size: 0.78rem;
}

.jk-foot__copy strong {
	color: var(--jk-lime);
	font-weight: 600;
}

@media (min-width: 860px) {
	.jk-nav {
		display: flex;
	}
	.jk-nav-toggle {
		display: none;
	}
	.jk-drawer {
		display: none !important;
	}
}

@media (max-width: 859px) {
	.jk-brand__wordmark {
		height: 38px;
	}
	.jk-search-toggle {
		display: none;
	}
	.jk-foot__grid {
		grid-template-columns: 1fr;
	}
}

/*
 * GeneratePress opens .site-content as a flex row (sidebar layout).
 * Our templates put header/main/footer inside that container — force a column stack.
 */
body.joeke-theme .site,
body.joeke-theme #page {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: 100% !important;
	background: transparent;
}

body.joeke-theme .site-content,
body.joeke-theme #content {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: transparent;
	box-shadow: none;
	border: 0;
}

body.joeke-theme #primary,
body.joeke-theme .content-area,
body.joeke-theme .inside-article,
body.joeke-theme .site-main {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent;
	box-shadow: none;
	border: 0;
}

body.joeke-theme .jk-header,
body.joeke-theme .jk-main,
body.joeke-theme .jk-foot {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	float: none !important;
}

/* Hide leftover GP site header/footer/widgets when our chrome is present */
body.joeke-theme .site-header,
body.joeke-theme .site-footer,
body.joeke-theme .gen-sidebar-nav,
body.joeke-theme .footer-widgets,
body.joeke-theme .footer-bar,
body.joeke-theme aside.widget-area,
body.joeke-theme .sidebar,
body.joeke-theme .gp-search,
body.joeke-theme .inside-navigation,
body.joeke-theme .main-navigation {
	display: none !important;
}
