/* LoadUp Guides Front Styles */

.guide-inner {
  max-width: 800px;
}

.card.alert.alert-warning {
    border: 1.5px solid #fcd34d;
    background: #fffbeb;
}

:root {
	--toc-scroll-offset-desktop: 120px;
	--toc-scroll-offset-mobile: 170px;
	--toc-scroll-offset: var(--toc-scroll-offset-desktop);
	--toc-mobile-slot-offset: 109px;
}

@media (max-width: 991.98px) {
	:root {
		--toc-scroll-offset: var(--toc-scroll-offset-mobile);
	}
}

[id] {
	scroll-margin-top: var(--toc-scroll-offset);
}

/* Hide source TOC until placed */
#toc-nav {
	display: none;
}

#toc-desktop-slot #toc-nav {
	display: block;
}

/* Mobile sticky slot */
#toc-mobile-slot {
	padding-top: var(--toc-mobile-slot-offset);
	margin-top: calc(var(--toc-mobile-slot-offset) * -1);
	z-index: 222;
}

/* Desktop */
#toc-desktop-slot .toc {
	max-height: calc(100vh - 180px);
	overflow-y: auto;
	padding-right: 4px;
}

#toc-desktop-slot .toc .toc-list {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

#toc-desktop-slot .toc .toc-item {
	display: flex;
	color: inherit;
	text-decoration: none;
	line-height: 1.2rem;
	font-size: 0.80rem;
	border-left: 2px solid #9297ac24;
	padding: 10px !important;
}

#toc-desktop-slot .toc .toc-item:hover {
	background: #f0f5fd;
	border-color: #2b7be6;
	color: #2b7be6;
	text-decoration: none;
}

#toc-desktop-slot .toc .toc-item.active {
	color: #1e6fdb;
	font-weight: 600;
	background: #1f70db12;
	text-decoration: none;
	border-radius: 0 5px 5px 0;
	border-color: inherit;
}

#toc-desktop-slot .toc .toc-label {
	display: block;
}

#toc-desktop-slot .toc::-webkit-scrollbar {
	width: 6px;
}

#toc-desktop-slot .toc::-webkit-scrollbar-thumb {
	background: rgba(146, 151, 172, 0.35);
	border-radius: 999px;
}

/* Mobile TOC bar */
#toc-mobile-bar {
	position: relative;
	left: 0;
	right: 0;
	top: 0;
	z-index: 222;
	background: linear-gradient(180deg, #08111f 0%, #050b16 100%);
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.16);
}

#toc-mobile-bar.is-open {
	border-bottom: 4px solid rgba(45, 125, 232, 0.95);
	border-radius: 0 0 12px 12px;
	overflow: hidden;
}

#toc-mobile-bar .container {
	padding-left: 0;
	padding-right: 0;
}

#toc-mobile-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	background: transparent;
	color: #fff;
	border: 0;
	padding: .75rem 1rem;
	font-size: .95rem;
	font-weight: 600;
	text-align: left;
}

#toc-mobile-toggle .toc-mobile-toggle-text {
	display: flex;
	align-items: center;
	gap: .5rem;
	min-width: 0;
}

#toc-mobile-toggle .toc-mobile-current {
	display: block;
	font-weight: 500;
	font-size: .8rem;
	color: rgba(255,255,255,.7);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 210px;
}

#toc-mobile-toggle .toc-mobile-chevron {
	transition: transform .2s ease;
	flex: 0 0 auto;
	background: #3f3f3f;
	width: 30px;
	height: 30px;
	margin: -5px 0;
}

#toc-mobile-bar.is-open #toc-mobile-toggle .toc-mobile-chevron {
	transform: rotate(180deg);
}

#toc-mobile-panel {
	display: none;
	padding: 0 0 .75rem;
	border-top: 1px solid rgba(255, 255, 255, .08);
	max-height: 55vh;
	overflow-y: auto;
	background: rgba(3, 8, 18, 0.96);
	backdrop-filter: blur(6px);
}

#toc-mobile-bar.is-open #toc-mobile-panel {
	display: block;
}

#toc-mobile-panel .toc-mobile-list {
	display: flex;
	flex-direction: column;
	padding: .5rem 0 0;
}

#toc-mobile-panel .toc-item {
	display: block;
	position: relative;
	color: rgba(255,255,255,.84);
	text-decoration: none;
	padding: .8rem 1rem .8rem 1.75rem;
	line-height: 1.3;
	font-size: .92rem;
	border-left: 3px solid transparent;
}

#toc-mobile-panel .toc-item:hover,
#toc-mobile-panel .toc-item:focus {
	color: #fff;
	background: rgba(255,255,255,.04);
	text-decoration: none;
}

#toc-mobile-panel .toc-item.active {
	color: #fff;
	background: rgb(139 167 205 / 25%);
	border-left-color: #2d7de8;
}
