/* ==========================================================================
   betterdocs.css
   Hjälpartiklar (BetterDocs) – layout och responsiva fixar
   ========================================================================== */


/* ============================= BAKGRUND OCH TYPOGRAFI ============================= */

div.betterdocs-wrapper {
	background-color: white !important;
}


.betterdocs-wrapper h1,
.betterdocs-wrapper h2,
.betterdocs-wrapper h3,
.betterdocs-wrapper h4,
.betterdocs-wrapper h5,
.betterdocs-wrapper h6 {
	hyphens: none;
	font-family: inherit !important;
}

.betterdocs-search-details {
	top:250px !important;
}


/* ============================= SIDEBAR OCH KATEGORIRUTNÄT ============================= */

aside#betterdocs-sidebar h2 {
	width: max-content;
}

.betterdocs-wrapper > .betterdocs-content-wrapper > .betterdocs-category-grid-wrapper >
.betterdocs-category-grid-inner-wrapper > article {
	min-width: max-content;
}


/* ============================= SÖK-IKON POSITION ============================= */

.betterdocs-search-layout-1 .search-bar .search-input-wrapper .search-icon {
	margin-left: 15px;
}


/* ============================= Z-INDEX FÖR HEADER ============================= */

header.top_panel {
	z-index: 10000;
}


/* ============================= CONTENT PADDING ============================= */

.betterdocs-wrapper.betterdocs-single-wrapper div.betterdocs-content-wrapper,
.betterdocs-wrapper.betterdocs-taxonomy-wrapper div.betterdocs-content-wrapper {
	padding: 0;
}


/* ============================= NAVIGATION MELLAN ARTIKLAR ============================= */

.docs-navigation {
	gap: 1rem;
}

.betterdocs-sidebar-content {
	position: initial !important;
}

.docs-navigation a:first-child {
	margin: 0 !important;
}

.docs-navigation a {
	word-break: break-all;
}


/* ============================= MOBIL: SÖK, SIDEBAR, TOC ============================= */

@media (max-width: 767px) {
	.betterdocs-search-popup .betterdocs-searchform span.command-key {
		display: none;
	}

	.betterdocs-mobile-sidebar-wrapper {
		z-index: 10001;
	}

	.betterdocs-mobile-toc-wrapper {
		z-index: 10001;
	}
}

@media (max-width: 720px) {
	.betterdocs-search-modal-layout-1 .betterdocs-search-layout-1 .search-header h2.search-heading {
		font-size: 24px;
	}
}

@media (max-width: 600px) {
	.betterdocs-wrapper > .betterdocs-content-wrapper > .betterdocs-category-grid-wrapper > .betterdocs-category-grid-inner-wrapper > article {
		min-width: initial;
	}

	.betterdocs-wrapper.betterdocs-taxonomy-wrapper .betterdocs-content-wrapper {
		width: auto !important;
	}

	.betterdocs-wrapper:not(.betterdocs-fluid-wrapper) .betterdocs-content-wrapper {
		width: auto !important;
	}

	.betterdocs-toc {
		width: calc(100% - 45px);
	}
}
