/*
 * miniOrange FAQ — readable headers on KB category (/kb/…) and single
 * article pages. Loaded only on those pages of the FAQ site; every rule is
 * scoped to body.mo-faq-kb.
 *
 * The Manual theme prints white text over a photo with a transparent,
 * absolutely positioned nav bar and several conflicting !important paddings
 * (Redux + custom CSS). These rules replace that with the same light
 * miniorange.com style as the new homepage. "html body" raises specificity
 * above the theme's inline !important rules.
 */

/* ------------------------------------------------------------------
 * Nav bar: solid white, dark links, dark logo
 * ------------------------------------------------------------------ */
html body.mo-faq-kb .navbar {
	position: relative !important;
	background: #ffffff !important;
	border-bottom: 1px solid #e3e3e3 !important;
}

html body.mo-faq-kb .navbar-inverse .navbar-nav > li > a {
	color: #181818 !important;
}

html body.mo-faq-kb .navbar-inverse .navbar-nav > li > a:hover,
html body.mo-faq-kb .navbar-inverse .navbar-nav > li > a:focus-visible {
	color: #c84316 !important;
}

html body.mo-faq-kb .navbar .navbar-toggle {
	color: #181818 !important;
}

html body.mo-faq-kb .hamburger-menu span {
	background: #181818 !important;
}

html body.mo-faq-kb img.home-logo-show {
	display: block !important;
}

html body.mo-faq-kb img.inner-page-white-logo {
	display: none !important;
}

/* ------------------------------------------------------------------
 * Header block: light background, no photo, sensible padding
 * ------------------------------------------------------------------ */
html body.mo-faq-kb .jumbotron_new.inner-jumbotron {
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	background: linear-gradient(280deg, #fefefe 50%, #f9f9f9 50%) !important;
	border-bottom: 1px solid #e3e3e3;
}

html body.mo-faq-kb .jumbotron_new .page_opacity.header_custom_height_new {
	height: auto !important;
	padding: 44px 0 36px !important;
	background: none !important;
}

html body.mo-faq-kb .jumbotron_new .inner-margin-top {
	padding-top: 0 !important;
}

html body.mo-faq-kb .jumbotron_new h1.custom_h1_head {
	margin: 0 0 10px !important;
	padding: 0 !important;
	font-family: Poppins, "Helvetica Neue", Arial, sans-serif !important;
	font-size: 34px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	color: #151b26 !important;
	text-transform: none !important;
	text-shadow: none !important;
}

@media (max-width: 767px) {
	html body.mo-faq-kb .jumbotron_new .page_opacity.header_custom_height_new {
		padding: 28px 0 24px !important;
	}

	html body.mo-faq-kb .jumbotron_new h1.custom_h1_head {
		font-size: 26px !important;
	}
}

/* Breadcrumb */
html body.mo-faq-kb .jumbotron_new #breadcrumbs {
	margin: 0 0 8px;
	font-size: 14px;
	color: #5f6062 !important;
	text-transform: none;
}

html body.mo-faq-kb .jumbotron_new #breadcrumbs a {
	color: #5f6062 !important;
	text-transform: capitalize;
}

html body.mo-faq-kb .jumbotron_new #breadcrumbs a:hover,
html body.mo-faq-kb .jumbotron_new #breadcrumbs a:focus-visible {
	color: #c84316 !important;
	text-decoration: underline;
}

html body.mo-faq-kb .jumbotron_new #breadcrumbs .sep {
	margin: 0 6px;
	color: #9a9ca1;
}

/* Category description (printed by the theme when one is set) */
html body.mo-faq-kb .jumbotron_new .inner-header-color {
	max-width: 760px;
	margin: 0 auto 8px;
	color: #5f6062 !important;
	font-size: 16px !important;
}

html body.mo-faq-kb .jumbotron_new .inner-header-color:empty {
	display: none;
}

/* ------------------------------------------------------------------
 * Search (theme's own form, so live search keeps working)
 * ------------------------------------------------------------------ */
html body.mo-faq-kb .jumbotron_new .search-margin-top {
	float: none;
	max-width: 760px;
	margin: 16px auto 0 !important;
	padding: 0;
}

html body.mo-faq-kb .jumbotron_new .global-search {
	padding: 0;
	text-align: left;
}

html body.mo-faq-kb .jumbotron_new form.searchform,
html body.mo-faq-kb .jumbotron_new .global-search .form-group {
	position: relative;
	margin: 0;
}

html body.mo-faq-kb .jumbotron_new .form-control.header-search {
	float: none;
	display: block;
	width: 100% !important;
	height: 54px;
	min-height: 54px;
	margin: 0;
	padding: 0 128px 0 48px;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background-color: #ffffff;
	box-shadow: 0 5px 18px 3px rgba(0, 0, 0, 0.06);
	font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	font-weight: 500 !important;
	letter-spacing: 0;
	color: #151b26;
}

html body.mo-faq-kb .jumbotron_new .form-control.header-search::placeholder {
	color: #76787f;
	opacity: 1;
}

html body.mo-faq-kb .jumbotron_new .form-control.header-search:focus {
	border-color: #eb5424;
	outline: none;
	box-shadow: 0 0 0 3px rgba(235, 84, 36, 0.35), 0 5px 18px 3px rgba(0, 0, 0, 0.06);
}

html body.mo-faq-kb .jumbotron_new .form-control.header-search.search_loading {
	background-position: right 128px center !important;
	background-size: 22px !important;
}

html body.mo-faq-kb .jumbotron_new form.searchform i.livesearch {
	position: absolute;
	top: 50%;
	left: 18px;
	z-index: 2;
	transform: translateY(-50%);
	padding: 0;
	font-size: 17px;
	color: #76787f !important;
	animation: none;
	pointer-events: none;
}

/* Search the whole site, as the theme's "All Site" option does. */
html body.mo-faq-kb .jumbotron_new select.search-expand-types {
	display: none !important;
}

html body.mo-faq-kb .jumbotron_new .button-custom {
	position: absolute !important;
	top: 7px;
	right: 7px;
	bottom: 7px;
	height: auto;
	margin: 0;
	padding: 0 22px !important;
	border-radius: 6px !important;
	background-color: #c84316 !important;
	color: #ffffff;
	font-family: Poppins, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

html body.mo-faq-kb .jumbotron_new .button-custom:hover,
html body.mo-faq-kb .jumbotron_new .button-custom:focus-visible {
	background-color: #a9380f !important;
}

@media (max-width: 479px) {
	html body.mo-faq-kb .jumbotron_new .form-control.header-search {
		padding-right: 96px;
	}

	html body.mo-faq-kb .jumbotron_new .form-control.header-search.search_loading {
		background-position: right 96px center !important;
	}

	html body.mo-faq-kb .jumbotron_new .button-custom {
		padding: 0 14px !important;
	}
}

/* Trending searches: hide the label when no keywords are configured. */
html body.mo-faq-kb .jumbotron_new .trending-search {
	float: none;
	margin: 12px 0 0;
	text-align: center;
	font-size: 14px;
}

html body.mo-faq-kb .jumbotron_new .trending-search:has(> .popular-keyword-title:only-child) {
	display: none;
}

html body.mo-faq-kb .jumbotron_new .trending-search span.popular-keyword-title {
	color: #5f6062 !important;
}

html body.mo-faq-kb .jumbotron_new .trending-search a {
	color: #c84316 !important;
}

/* ------------------------------------------------------------------
 * Sub-category boxes on parent category pages (e.g. /kb/atlassian/):
 * aligned rows. The theme lays these out with jQuery Masonry, which
 * absolutely positions every box at its own height, so rows drift. A grid
 * replaces it: each row is as tall as its tallest box and the next row
 * starts level. The !important rules override the inline left/top/height
 * Masonry sets (including when it re-runs on resize). "View All" sits
 * directly under each box's list, so short boxes leave no gap inside.
 * ------------------------------------------------------------------ */
html body.mo-faq-kb.tax-manualknowledgebasecat .masonry-grid-inner {
	display: grid !important;
	grid-template-columns: 1fr;
	align-items: start;
	height: auto !important;
}

html body.mo-faq-kb.tax-manualknowledgebasecat .masonry-grid-inner::before,
html body.mo-faq-kb.tax-manualknowledgebasecat .masonry-grid-inner::after {
	display: none;
}

@media (min-width: 992px) {
	html body.mo-faq-kb.tax-manualknowledgebasecat .masonry-grid-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* A single sub-category spans the full width, as in the theme. */
	html body.mo-faq-kb.tax-manualknowledgebasecat .masonry-grid-inner > .col-md-12 {
		grid-column: 1 / -1;
	}
}

html body.mo-faq-kb.tax-manualknowledgebasecat .masonry-grid-inner > .masonry-item {
	position: relative !important; /* keeps the theme's h5:before icon in place */
	top: auto !important;
	left: auto !important;
	width: auto !important;
	float: none !important;
}

html body.mo-faq-kb.tax-manualknowledgebasecat .masonry-grid-inner > .masonry-item > .knowledgebase-body {
	margin-bottom: 20px;
}

/* ------------------------------------------------------------------
 * Hover colours: the theme turns sub-category titles, their briefcase
 * icon, article links and the document icon green (#46b289 !important).
 * Use the miniOrange orange instead, as on the homepage.
 * ------------------------------------------------------------------ */
html body.mo-faq-kb .body-content .knowledgebase-body h5 a:hover,
html body.mo-faq-kb .body-content .knowledgebase-body h5 a:focus-visible,
html body.mo-faq-kb .body-content .knowledgebase-body h5:hover:before,
html body.mo-faq-kb .body-content li.cat a:hover,
html body.mo-faq-kb .body-content li.cat a:focus-visible,
html body.mo-faq-kb .body-content li.cat.inner:hover:before {
	color: #c84316 !important;
}

/* Search results: result titles use the miniOrange orange on hover
 * (the theme sets .search h4 a:hover to green !important). */
html body.mo-faq-kb .search .caption h4 a:hover,
html body.mo-faq-kb .search .caption h4 a:focus-visible {
	color: #c84316 !important;
}

/* "your search of …" line under the title. */
html body.mo-faq-kb .jumbotron_new p.inner-header-color b {
	color: #151b26;
}
