/*
 * Consistent builder-free layouts for support, FAQ, registration and legal pages.
 */
.bbsw-content-page #content {
	background: #f7f7f5;
}

.bbsw-content-page #primary {
	width: 100%;
	margin: 0;
	padding: 50px 28px 76px;
}

.bbsw-content-page #main,
.bbsw-content-page article.ast-article-single {
	width: min(100%, 1200px);
	margin: 0 auto;
}

.bbsw-content-page article.ast-article-single {
	padding: 38px 42px 46px;
	border: 1px solid #e3e3de;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 8px 24px rgb(30 30 30 / 4%);
}

.bbsw-content-page .entry-header {
	margin-bottom: 25px;
}

.bbsw-content-page .entry-title {
	margin: 0;
	color: var(--bbsw-orange, #ff5c15);
	font-size: clamp(29px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.15;
}

.bbsw-content-page .entry-content {
	color: #343434;
	font-size: 16px;
	line-height: 1.65;
}

.bbsw-content-page .entry-content > :first-child {
	margin-top: 0;
}

.bbsw-content-page .entry-content > :last-child {
	margin-bottom: 0;
}

.bbsw-content-page .entry-content a {
	color: #e84f0c;
	font-weight: 600;
	text-underline-offset: 2px;
}

.bbsw-content-page .entry-content a:hover {
	color: #b93c06;
}

.bbsw-content-page .entry-content table {
	display: block;
	overflow-x: auto;
	width: 100%;
	border-collapse: collapse;
	white-space: normal;
}

.bbsw-content-page .entry-content th,
.bbsw-content-page .entry-content td {
	padding: 11px 13px;
	border: 1px solid #ddddda;
	vertical-align: top;
}

.bbsw-content-page .entry-content th,
.bbsw-content-page .entry-content tr:first-child td {
	background: #f2f2ef;
	font-weight: 700;
}

/* FAQ directory: six equal cards in two rows of three. */
.bbsw-faqs-index .entry-content {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.bbsw-faqs-index .entry-content > p:first-child {
	grid-column: 1 / -1;
	margin-bottom: 5px;
	color: #5c5c58;
	font-size: 17px;
}

.bbsw-faqs-index .entry-content > .wp-block-group {
	display: flex;
	min-width: 0;
	min-height: 205px;
	margin: 0 !important;
	padding: 25px !important;
	border: 1px solid #dfdfda !important;
	border-top: 5px solid #14cfa7 !important;
	border-radius: 5px !important;
	background: #fafaf8;
	box-shadow: 0 4px 14px rgb(30 30 30 / 3%);
	flex-direction: column;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bbsw-faqs-index .entry-content > .wp-block-group:hover {
	border-color: #cfcfc9 !important;
	box-shadow: 0 10px 24px rgb(30 30 30 / 8%);
	transform: translateY(-3px);
}

.bbsw-faqs-index .wp-block-group h3 {
	margin: 0 0 13px;
	font-size: 21px;
	line-height: 1.25;
}

.bbsw-faqs-index .wp-block-group h3 a {
	color: #292929;
	text-decoration: none;
}

.bbsw-faqs-index .wp-block-group h3 a::after {
	color: var(--bbsw-orange, #ff5c15);
	content: " \2192";
}

.bbsw-faqs-index .wp-block-group p {
	margin: 0;
	color: #656560;
	font-size: 15px;
	line-height: 1.55;
}

/* FAQ detail pages: left navigation and right answer, matching the legacy layout. */
.bbsw-faq-detail .entry-content > p:first-child a {
	display: inline-flex;
	margin-bottom: 4px;
	color: #62625e;
	font-size: 14px;
	text-decoration: none;
	align-items: center;
}

.bbsw-faq-detail .entry-content > p:nth-child(2) {
	margin-bottom: 25px;
	color: #555551;
	font-size: 17px;
}

.bbsw-faq-tabs {
	display: grid;
	overflow: hidden;
	margin-top: 25px;
	border: 1px solid #dfdfda;
	border-radius: 4px;
	background: #fff;
	grid-template-columns: minmax(215px, 260px) minmax(0, 1fr);
}

.bbsw-faq-tabs__nav {
	border-right: 1px solid #dfdfda;
	background: #f7f7f4;
}

.bbsw-faq-tabs__button {
	display: block;
	width: 100%;
	min-height: 67px;
	padding: 15px 18px;
	border: 0;
	border-bottom: 1px solid #dfdfda;
	border-radius: 0;
	background: #fff;
	color: #292929;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.bbsw-faq-tabs__button:last-child {
	border-bottom: 0;
}

.bbsw-faq-tabs__button:hover {
	background: #fff4ee;
	color: #c8440b;
}

.bbsw-faq-tabs__button[aria-selected="true"] {
	background: var(--bbsw-orange, #ff5c15);
	color: #fff;
}

.bbsw-faq-tabs__button:focus-visible {
	position: relative;
	z-index: 2;
	outline: 3px solid #242424;
	outline-offset: -4px;
}

.bbsw-faq-tabs__panels {
	min-width: 0;
}

.bbsw-faq-tabs__panel {
	padding: 29px 32px 34px;
	color: #373733;
}

.bbsw-faq-tabs__panel > :first-child {
	margin-top: 0;
}

.bbsw-faq-tabs__panel > :last-child {
	margin-bottom: 0;
}

/* No-JavaScript fallback remains a readable native accordion. */
.bbsw-faq-detail details.wp-block-details {
	margin: 0 0 12px;
	border: 1px solid #dfdfda;
	border-radius: 3px;
	background: #fff;
}

.bbsw-faq-detail details.wp-block-details summary {
	padding: 16px 18px;
	color: #292929;
	font-weight: 700;
	cursor: pointer;
}

.bbsw-faq-detail details.wp-block-details[open] summary {
	background: var(--bbsw-orange, #ff5c15);
	color: #fff;
}

.bbsw-faq-detail details.wp-block-details > :not(summary) {
	margin-right: 20px;
	margin-left: 20px;
}

@media (max-width: 900px) {
	.bbsw-faqs-index .entry-content {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bbsw-faq-tabs {
		grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
	}
}

@media (max-width: 700px) {
	.bbsw-content-page #primary {
		padding: 28px 15px 48px;
	}

	.bbsw-content-page article.ast-article-single {
		padding: 27px 20px 34px;
	}

	.bbsw-content-page .entry-header {
		margin-bottom: 19px;
	}

	.bbsw-faqs-index .entry-content {
		grid-template-columns: 1fr;
	}

	.bbsw-faqs-index .entry-content > .wp-block-group {
		min-height: 0;
	}

	.bbsw-faq-tabs {
		grid-template-columns: 1fr;
	}

	.bbsw-faq-tabs__nav {
		border-right: 0;
		border-bottom: 1px solid #dfdfda;
	}

	.bbsw-faq-tabs__button {
		min-height: 0;
	}

	.bbsw-faq-tabs__panel {
		padding: 24px 20px 29px;
	}
}
