/* BTI Blog Styler — structural styles for the boxes.
   Colors, fonts, spacing come from Settings → Blog Styler (generated CSS).
   Specificity is kept at (0,2,x) so these beat Showit's canvas text rules
   (.se-wpt h3 / .shwt-wp-content p — (0,1,1)) without needing !important;
   the generated settings CSS uses !important and wins over both. */

.bti-box,
.bti-box * {
	box-sizing: border-box;
}

.bti-box {
	display: block;
	border: 0 solid transparent;
	text-align: left;
	clear: both;
	max-width: 100%;
}

.bti-box .bti-box__title {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
}

.bti-box .bti-box__body {
	text-align: left;
}

.bti-box .bti-box__body > :last-child,
.bti-box .bti-box__body p:last-child {
	margin-bottom: 0;
}

.bti-box .bti-box__body ul,
.bti-box .bti-box__body ol {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

/* ---------- FAQ ---------- */

.bti-faq .bti-faq__item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	margin: 0;
	padding: 0;
}

.bti-faq .bti-faq__item:last-child {
	border-bottom: 0;
}

.bti-faq .bti-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	list-style: none;
	margin: 0;
	padding: 12px 0;
	line-height: 1.4;
	text-align: left;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.bti-faq .bti-faq__q::-webkit-details-marker {
	display: none;
}

.bti-faq .bti-faq__q:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.bti-faq .bti-faq__icon {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	position: relative;
	transition: transform 0.25s ease;
}

.bti-faq--icon-none .bti-faq__icon {
	display: none;
}

.bti-faq--icon-chevron .bti-faq__icon::before {
	content: '';
	position: absolute;
	left: 1px;
	top: 0;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.bti-faq--icon-chevron .bti-faq__item[open] .bti-faq__icon {
	transform: rotate(180deg);
}

.bti-faq--icon-plus .bti-faq__icon::before,
.bti-faq--icon-plus .bti-faq__icon::after {
	content: '';
	position: absolute;
	background: currentColor;
	left: 0;
	top: 5px;
	width: 12px;
	height: 1.5px;
}

.bti-faq--icon-plus .bti-faq__icon::after {
	transform: rotate(90deg);
	transition: transform 0.25s ease;
}

.bti-faq--icon-plus .bti-faq__item[open] .bti-faq__icon::after {
	transform: rotate(0deg);
}

.bti-faq .bti-faq__a {
	padding: 0 0 16px;
}

.bti-faq .bti-faq__a p:last-child {
	margin-bottom: 0;
}

/* ---------- Author ---------- */

.bti-author .bti-author__inner {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.bti-author .bti-author__avatar {
	flex: 0 0 auto;
	width: 96px;
}

.bti-author .bti-author__avatar img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
}

.bti-author .bti-author__text {
	flex: 1 1 auto;
	min-width: 0;
}

.bti-author .bti-author__name {
	margin: 0 0 2px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
}

.bti-author .bti-author__role {
	margin: 0 0 10px;
	opacity: 0.85;
	line-height: 1.4;
	text-align: left;
}

.bti-author .bti-author__bio p {
	margin: 0 0 0.75em;
}

.bti-author .bti-author__bio p:last-child {
	margin-bottom: 0;
}

.bti-author .bti-author__link {
	display: inline-block;
	margin-top: 12px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 520px) {
	.bti-author .bti-author__inner {
		flex-direction: column;
		gap: 16px;
	}
}
