/* Outer container */
.be-ajt {
	border-radius: 8px;
	margin: 1.5rem 0 2rem;
	border: 1px solid #e0e0e0;
	background: #ffffff;
	padding: 0;
	overflow: hidden;
}

/* Remove native marker */
.be-ajt > summary::-webkit-details-marker {
	display: none;
}

/* Header band */
.be-ajt-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	cursor: pointer;
	font-weight: 600;
	border-radius: 8px 8px 0 0;
}

/* Header text */
.be-ajt-summary-text {
	font-weight: 600;
}

/* Arrow on the right */
.be-ajt-arrow::before {
	content: "▴"; /* up arrow when collapsed */
	font-size: 0.9rem;
}

/* When open, show down arrow */
.be-ajt[open] .be-ajt-arrow::before {
	content: "▾";
}

/* Inner scroll area */
.be-ajt-inner {
	padding: 12px 18px 14px;
}

/* The list of links */
#be-jump-to-list {
	margin: 0;
	padding: 0;
}

#be-jump-to-list li {
	list-style: none;
	margin: 4px 0;
}

/* H2 and H3 styles: H3 indented */
#be-jump-to-list li.be-ajt-level-h2 a {
	font-weight: 500;
}

#be-jump-to-list li.be-ajt-level-h3 {
	margin-left: 1.5rem;
	font-size: 0.95em;
}

/* Comments link can be slightly separated if needed */
#be-jump-to-list li.be-ajt-comments-link {
	margin-top: 6px;
}

/* Link styling */
#be-jump-to-list li a {
	text-decoration: none;
	color: inherit;
}

#be-jump-to-list li a:hover {
	text-decoration: underline;
}

/* Editor preview */
.be-ajt-preview-wrapper {
	max-width: 100%;
}

.be-ajt-preview {
	margin: 0;
}

/* Make sure preview scroll behaves the same */
.be-ajt-preview .be-ajt-inner {
	overflow-y: auto;
}
