/**
 * Epilog Knowledge Base
 *
 * Plugin-owned front-end styles.
 */


/* =====================================================
   Article Quick Navigation
===================================================== */

#stickyQuickNav {
    z-index: 989;
}

#articleDetails {
    z-index: 970;
}

.scrollMenuDropdown li a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =====================================================
   Knowledge Base Article Headings
===================================================== */

.kb-article-content > h2, .kb-article-introduction {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
}

/* =====================================================
   Normalize Embedded YOOtheme Containers in Articles
===================================================== */

.kb-article-content > .uk-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}


/* =====================================================
   Article Images / Lightbox
===================================================== */

.kb-article-content .kb-lightbox-image {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 20px 0;
    overflow: hidden;
    vertical-align: top;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4);
}

.kb-article-content .kb-lightbox-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

.kb-article-content .uk-card .kb-lightbox-image {
    box-shadow: none;
}


/* Search / zoom overlay */

.kb-article-content .kb-lightbox-image .imgIcon {
    font-size: 20px;
}

/* =====================================================
   YOOtheme Builder Content Normalization

   New KB articles may use native YOOtheme Builder
   sections/containers. Neutralize only the outermost
   Builder framing so Builder posts align visually with
   legacy raw-HTML Knowledge Base articles.
===================================================== */

.kb-article-content > .uk-section {
    padding-top: 0;
    padding-bottom: 0;
}

.kb-article-content > .uk-section > .uk-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* =====================================================
   Consecutive Image Grid
===================================================== */

/*
 * JavaScript adds .gridImagesWrapper when two or more
 * standalone article images are consecutive.
 *
 * CSS Grid replaces the older nth-child width/margin rules.
 */
.kb-article-content .gridImagesWrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;

    margin: 20px 0;
}


/*
 * Remove the normal individual-image margin because the
 * grid wrapper now owns spacing between grouped images.
 */
.kb-article-content .gridImagesWrapper .kb-lightbox-image {
    min-width: 0;
    margin: 0;
}


/*
 * Keep grouped images visually consistent.
 */
.kb-article-content .gridImagesWrapper .kb-lightbox-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

#stickyQuickNav {
    transition: transform 200ms ease;
}

#stickyQuickNav.kb-quicknav-sticky {
    animation: kbQuickNavSlideDown 200ms ease;
}

@keyframes kbQuickNavSlideDown {
    from {
        transform: translateY(-60px);
    }

    to {
        transform: translateY(0);
    }
}

/* =====================================================
   Technical Specifications
===================================================== */

#epTechSpecTable {
	width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

.ep-tech-spec-table {
	table-layout: fixed;
	width: max-content !important;
	min-width: 100%;
	box-sizing: border-box;
}

.ep-tech-spec-table .ep-tech-spec-label-col {
	width: 210px;
}

.ep-tech-spec-table .ep-tech-spec-model-col {
	width: 300px;
	min-width: 300px;
}

.ep-tech-spec-table .topInfo {
	background:#fff;
	border-left:1px solid #e5e5e5;
	box-sizing:border-box;
}


/* Sticky model header clone */

.ep-tech-spec-sticky {
	position: fixed;
	top: 110px;
	display: none;
	overflow: hidden;
	z-index: 980;
	pointer-events: none;
	box-shadow:0 4px 8px rgba(0,0,0,.12);
}

.ep-tech-spec-sticky .topInfo {
	background:#fff;
	border-left:1px solid #e5e5e5;
	border-bottom:1px solid #e5e5e5;
	box-sizing:border-box;
}

.ep-tech-spec-sticky .top-row > th:first-child {
	border-bottom:1px solid #e5e5e5;
}

.ep-tech-spec-sticky.is-active {
	display: block;
}

.ep-tech-spec-sticky-inner {
	will-change: transform;
}

.ep-tech-spec-sticky .ep-tech-spec-table {
	margin: 0;
}


.ep-tech-spec-table th:first-child,	.ep-tech-spec-table td:first-child{vertical-align: top;}

.ep-tech-spec-stripe-offset {
	display: none;
}

.ep-tech-spec-table tbody tr:not(.uk-table-no-hover):not(.ep-tech-spec-stripe-offset):hover > td {
	background-color:rgba(228,234,247,.75);
}

.ep-tech-spec-table .uk-table-no-hover > td {
	border-top:0;
	border-bottom:0;
	border-left:1px solid #e5e5e5;
}

.ep-tech-spec-table .uk-table-no-hover > th {
	border-top:0;
	border-bottom:0;
}

/* =====================================================
   Technical Specifications Navigation
===================================================== */

.ep-table-navigation {
	position: fixed;
	z-index: 20;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
	visibility: hidden;
}

.ep-table-navigation.is-active {
	visibility: visible;
}

.ep-table-navigation li {
	position: absolute;
	top: 0;
}

.ep-table-navigation li:first-child {
	left: 20px;
}

.ep-table-navigation li:last-child {
	right: 90px;
}

.ep-table-navigation button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(8, 20, 37, 0.85);
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	pointer-events: auto;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.ep-table-navigation button:hover {
	transform: scale(1.08);
}

.ep-table-navigation button.inactive {
	opacity: 0;
	pointer-events: none;
}

/* =====================================================
   Knowledge Base Desktop Filters
===================================================== */

button.kb-show-filters {
    display: none;
}

@media (min-width: 960px) {

    #desktop-filters {
        overflow: hidden;
        transition:
            width 0.3s ease,
            opacity 0.2s ease;
    }

    #desktop-filters.kb-filters-collapsed {
		width: 0;
		min-width: 0;
		height: 0;
		min-height: 0;
		opacity: 0;
		padding: 0;
		overflow: hidden;
		pointer-events: none;
	}

    .kb-main-content {
        transition: width 0.3s ease;
    }

    .kb-main-content.kb-filters-collapsed {
        width: 100%;
    }

    body:has(#desktop-filters.kb-filters-collapsed) button.kb-show-filters {
		display: flex !important;
		align-items: center;
		animation: uk-fade 0.3s ease both;
	}
}
/* =====================================================
   Technical Specifications - Tablet / Mobile
===================================================== */

@media (max-width: 959px) {

	/* Specification column */
	.ep-tech-spec-table .ep-tech-spec-label-col,
	.ep-tech-spec-table th:first-child,
	.ep-tech-spec-table td:first-child {
		width: 190px !important;
		min-width: 190px !important;
		max-width: 190px !important;
		box-sizing: border-box;		
	}

	/* Machine columns */
	.ep-tech-spec-table .ep-tech-spec-model-col,
	.ep-tech-spec-table .topInfo,
	.ep-tech-spec-table tbody td {
		width: 300px !important;
		min-width: 300px !important;
		max-width: 300px !important;
		box-sizing: border-box;
	}

}
/* =====================================================
   Mobile Images
===================================================== */

@media (max-width: 639px) {

    .kb-article-content .gridImagesWrapper {
        grid-template-columns: 1fr;
    }

}