/* In-house CMS: help knowledge-base styles (LMM help + admin help).
   Design language ported from the Gig Heaven help pages, adapted to the LMM
   brand pink (#c83d82 = @brand-tertiary in lmm_variables.less). Loaded on
   top of the site bootstrap bundle via /bs/<rev>/help.css. */

/* ---- hero search ---------------------------------------------------------- */

.help-search-box {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 40px;
	display: flex;
	align-items: center;
	padding: 10px 10px 10px 26px;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.04), 0 1px 5px 0 rgba(0, 0, 0, 0.06);
}

.help-search-box:focus-within {
	border-color: #c83d82;
	outline: 1px solid #c83d82;
	box-shadow: none;
}

.help-search-icon {
	color: #999;
	font-size: 18px;
	margin-right: 10px;
}

.help-search-field {
	flex: 1 1 auto;
}

.help-search-field .form-control {
	border: none;
	box-shadow: none;
	font-size: 17px;
	height: 50px;
	padding-left: 0;
	background: #fff;
}

.help-search-field .form-control:focus {
	border: none;
	box-shadow: none;
	outline: none;
}

.help-search-button {
	border-radius: 30px !important;
	flex: 0 0 auto;
}

/* ---- popular articles row (help home, on the dark band) ------------------- */

.popular-article-link-container a {
	color: #fff;
	display: block;
	width: 100%;
	height: 100%;
	padding: 10px 15px 10px 0 !important;
	font-size: 1.3em !important;
	text-decoration: none;
}

.popular-article-link-container {
	color: #fff;
	position: relative;
}

.popular-article-link-container:hover {
	background-color: rgba(255, 255, 255, 0.15) !important;
	border-radius: 12px;
}

@media only screen and (min-width: 992px) {
	.popular-article-link-container:after {
		content: "\e080";
		position: absolute;
		opacity: 0;
		top: 10px;
		right: -15px;
		font-family: 'Glyphicons Halflings';
		font-size: 1.3em !important;
	}
}

.popular-article-link-container:hover:after {
	opacity: 1;
	right: 10px;
}

/* The admin_help section renders in the admin.dwt chrome on a white page,
   so its popular row brings its own dark band (public help lays the row on
   the page's dark section). Wrapper emitted by showHelpHome (Cms.pm). */
.admin-help-popular-band {
	background: #0e68b0;
	border-radius: 12px;
	padding: 8px 25px 20px;
	margin-bottom: 10px;
}

/* the admin chrome styles bare h2 small; keep the band title level with the
   category titles (.help-home-cat-title) below it */
.admin-help-popular-band h2 {
	font-size: 24px;
}

/* ---- home page article index (every article, grouped by category) ---------- */

.help-home-cat-title {
	font-size: 24px;
	margin: 10px 0 14px;
	color: #000;
}

.help-home-cat-title i {
	color: #c83d82;
	margin-right: 10px;
}

.help-article-index {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 20px;
}

.help-article-index a {
	color: #333;
	padding: 5px 0;
	text-decoration: none;
}

.help-article-index a:hover {
	color: #c83d82;
	text-decoration: underline;
}

/* ---- category page / search results: article list ------------------------- */

.help-page-title {
	margin-top: 0;
}

.help-category-description {
	color: #555;
	font-size: 16px;
}

.help-article-list-item {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	margin-bottom: 12px;
	background: #fff;
}

.help-article-list-item:hover {
	border-color: #c83d82;
	outline: 1px solid #c83d82;
}

.help-article-list-item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
	color: #000;
	text-decoration: none;
}

.help-article-list-text {
	flex: 1 1 auto;
}

/* the click-me affordance; flex centring + top:0 keeps the glyph level */
.help-article-list-arrow {
	flex: 0 0 auto;
	color: #bbb;
	font-size: 14px;
	top: 0;
}

.help-article-list-item:hover .help-article-list-arrow {
	color: #c83d82;
}

.help-article-list-title {
	display: block;
	font-size: 17px;
	font-weight: 700;
}

.help-article-list-summary {
	display: block;
	color: #666;
	font-size: 14px;
	margin-top: 4px;
	font-weight: 400;
}

.help-article-list-empty {
	color: #777;
	padding: 12px 0;
}

/* ---- article page ---------------------------------------------------------- */

.help-breadcrumb {
	margin-bottom: 8px;
}

.help-breadcrumb a {
	color: #777;
}

/* The site-wide .lmm-secondary / .lmm-main-light bands have min-heights for
   pages that fill them; the help pages leave them empty, so let them size to
   their content (kills the big white gap above the contact band). */
.page-section.lmm-secondary,
.page-section.lmm-main-light {
	min-height: auto;
}

/* contact band above the footer */
.help-contact-title {
	font-size: 30px;
}

.help-article-content {
	font-size: 16px;
	line-height: 1.65;
}

.help-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.help-article-content video {
	max-width: 100%;
	height: auto;
}

/* migrated WordPress video blocks (screencasts): fill the content column and
   drop the browser default figure side-margins, restoring the wp-block-video
   styling that was lost in the CMS migration */
.help-article-content figure.wp-block-video {
	margin-left: 0;
	margin-right: 0;
}

.help-article-content figure.wp-block-video video {
	width: 100%;
}

.help-article-content h2 {
	margin-top: 28px;
}

.help-article-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 16px 0;
}

.help-article-content th,
.help-article-content td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	text-align: left;
}

/* screenshots convention shared with GH help articles */
.help-article-content figure.help-screenshot {
	margin: 20px 0;
	text-align: center;
}

.help-article-content figure.help-screenshot img {
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	/* .img-responsive is display:block, which ignores the figure's text-align:center -
	   auto margins actually deliver the centring for narrower-than-column screenshots */
	margin-left: auto;
	margin-right: auto;
}

.help-article-content figure.help-screenshot figcaption {
	color: #777;
	font-size: 13px;
	margin-top: 6px;
}

/* ---- sidebar ---------------------------------------------------------------- */

.help-sidebar {
	margin-top: 6px;
}

.help-sidebar-block {
	margin-bottom: 26px;
}

.help-sidebar-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 10px;
}

.help-sidebar-title .glyphicon {
	color: #000;
	font-size: 18px;
	top: 1px;
}

.help-article-title {
	font-size: 30px;
	margin: 0 0 8px;
}

.help-crumbtrail {
	font-size: 13px;
	color: #777;
	margin: 0;
}

.help-crumbtrail a {
	color: #777;
	text-decoration: none;
}

.help-crumbtrail a:hover {
	color: #c83d82;
}

.help-crumb-hr {
	margin: 12px 0 20px;
}

.help-related-list {
	padding-left: 18px;
	margin: 0;
}

.help-related-list li {
	margin-bottom: 8px;
}

.help-contact-well b {
	font-size: 15px;
}

@media (max-width: 991px) {
	.help-sidebar {
		margin-top: 30px;
		border-top: 1px solid #e5e5e5;
		padding-top: 20px;
	}
}

/* ---- bottom contact / chat / links band ---------------------------------- */

.help-foot-col {
	margin-bottom: 20px;
}

.help-foot-title {
	font-size: 22px;
	font-weight: 700;
	margin: 8px 0 12px;
}

.help-foot-title .glyphicon {
	color: #000;
	font-size: 18px;
	top: 1px;
}

.help-foot-text {
	margin-bottom: 14px;
}

.help-foot-smallprint {
	color: #777;
	max-width: 420px;
}

.help-foot-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.help-foot-links li {
	padding: 5px 0;
	border-bottom: 1px solid #e5e5e5;
}

.help-foot-links li:last-child {
	border-bottom: none;
}

.help-foot-links a {
	font-weight: 700;
}

/* ---- search suggestions dropdown (help-search-suggest.js) ------------------ */
/* Floating panel anchored under the rounded search box; .help-suggest-flip-up
   opens it above instead when the box sits near the bottom of the viewport.
   The mobile full-screen overlay reuses the same row styles inline. */

.help-search-form {
	position: relative;
}

.help-suggest-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	z-index: 1050;
}

.help-suggest-flip-up {
	top: auto;
	bottom: 100%;
	margin-top: 0;
	margin-bottom: 6px;
	box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
}

.help-suggest-header {
	padding: 10px 18px 6px;
	color: #777;
	font-size: 13px;
}

.help-suggest-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 18px;
	color: #000;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border-top: 1px solid #f0f0f0;
}

.help-suggest-item-title {
	flex: 1 1 auto;
}

/* the click-me affordance; flex centring + top:0 keeps the glyph level with
   the title text */
.help-suggest-item-arrow {
	flex: 0 0 auto;
	color: #bbb;
	font-size: 13px;
	top: 0;
}

.help-suggest-item:hover .help-suggest-item-arrow,
.help-suggest-item:focus .help-suggest-item-arrow,
.help-suggest-item-active .help-suggest-item-arrow {
	color: #c83d82;
}

.help-suggest-header + .help-suggest-item {
	border-top: none;
}

.help-suggest-item:first-child {
	border-top: none;
}

.help-suggest-item:hover,
.help-suggest-item:focus,
.help-suggest-item-active {
	background: #f6eef3;
	color: #c83d82;
	text-decoration: none;
}

/* full-screen mobile overlay: header row (back button + search box), results
   fill the rest inline */
.help-suggest-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #fff;
	z-index: 2100;
	display: flex;
	flex-direction: column;
}

.help-suggest-overlay-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid #e5e5e5;
	flex: 0 0 auto;
}

.help-suggest-overlay-back {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: none;
	background: none;
	color: #333;
	font-size: 18px;
}

.help-suggest-overlay-box {
	flex: 1 1 auto;
	padding: 4px 10px 4px 16px;
}

.help-suggest-overlay-box .form-control {
	height: 40px;
	font-size: 16px;	/* under 16px iOS zooms the page on focus */
}

.help-suggest-overlay .help-suggest-dropdown {
	position: static;
	flex: 1 1 auto;
	margin: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	max-height: none;
}

html.help-suggest-overlay-open,
html.help-suggest-overlay-open body {
	overflow: hidden;
}
