/**
 * AUTOOL skin for wpForo 3.1.5.
 *
 * Vendor theme files remain untouched. These rules only bridge the forum's
 * Q&A semantics into the site's existing shell, tokens and right-rail grid.
 */

body.autool-qa-active #main {
	background: var(--dcd-page-bg, #f5f6f7);
}

.autool-qa-page {
	--autool-qa-orange-accessible: #c2410c;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--shell-max-w, 1920px);
	min-height: 70vh;
	padding: 16px var(--dcd-page-inset, 16px) 72px;
	color: var(--dcd-text, #1f2329);
}

.autool-qa-page *,
.autool-qa-page *::before,
.autool-qa-page *::after {
	box-sizing: border-box;
}

.autool-qa-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 124px;
	margin-bottom: 12px;
	padding: 22px 24px;
	border: 1px solid var(--dcd-border, #e8e9eb);
	border-radius: 4px;
	background: #fff;
}

.autool-qa-hero > div:first-child {
	min-width: 0;
	max-width: 820px;
}

.autool-qa-eyebrow {
	margin: 0 0 6px;
	color: var(--autool-qa-orange-accessible);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.autool-qa-hero h1 {
	margin: 0;
	color: var(--dcd-title, #17191c);
	font-size: clamp(24px, 2.15vw, 34px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.18;
}

.autool-qa-hero h1 + p {
	margin: 9px 0 0;
	color: var(--dcd-muted, #6b7078);
	font-size: 14px;
	line-height: 1.65;
}

.autool-qa-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
}

.autool-qa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 17px;
	border: 1px solid var(--dcd-border-strong, #d9dce1);
	border-radius: 3px;
	background: #fff;
	color: var(--dcd-text, #1f2329);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.autool-qa-button:hover,
.autool-qa-button:focus-visible {
	border-color: var(--dcd-orange, #ff5a1f);
	color: var(--dcd-orange, #ff5a1f);
}

.autool-qa-button--primary,
.autool-qa-button--primary:hover,
.autool-qa-button--primary:focus-visible {
	border-color: var(--autool-qa-orange-accessible);
	background: var(--autool-qa-orange-accessible);
	color: #fff;
}

.autool-qa-layout {
	display: grid;
	grid-template-columns: minmax(0, 9fr) minmax(250px, 3fr);
	align-items: start;
	gap: 12px;
}

.autool-qa-layout.has-no-rail {
	grid-template-columns: minmax(0, 1fr);
}

.autool-qa-main {
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--dcd-border, #e8e9eb);
	border-radius: 4px;
	background: #fff;
}

.autool-qa-layout > .dcd-rail {
	min-width: 0;
}

.autool-qa-checklist {
	margin: 0;
	padding: 0 0 0 20px;
	color: var(--dcd-text-soft, #454a52);
	font-size: 13px;
	line-height: 1.65;
}

.autool-qa-checklist li + li {
	margin-top: 5px;
}

.autool-qa-standards {
	margin: 0;
	color: var(--dcd-text-soft, #454a52);
	font-size: 13px;
	line-height: 1.65;
}

.autool-qa-standards-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 12px 0 0;
	font-size: 13px;
}

.autool-qa-standards-links a {
	color: var(--autool-qa-orange-accessible);
	text-decoration: none;
}

/* The outer canvas supplies the single route-aware H1. */
#wpforo #wpforo-wrap #wpforo-title {
	display: none !important;
}

#wpforo,
#wpforo #wpforo-wrap {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: inherit !important;
	font-size: 14px !important;
}

#wpforo #wpforo-wrap a {
	text-underline-offset: 2px;
}

#wpforo #wpforo-wrap a:focus-visible,
#wpforo #wpforo-wrap button:focus-visible,
#wpforo #wpforo-wrap input:focus-visible,
#wpforo #wpforo-wrap textarea:focus-visible,
#wpforo #wpforo-wrap select:focus-visible {
	outline: 2px solid var(--dcd-orange, #ff5a1f) !important;
	outline-offset: 2px;
}

#wpforo #wpforo-wrap #wpforo-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 50px;
	margin: 0 0 12px !important;
	padding: 7px 10px !important;
	border: 1px solid var(--dcd-border, #e8e9eb) !important;
	border-radius: 3px;
	background: var(--dcd-surface-subtle, #fafafa) !important;
}

#wpforo #wpforo-wrap #wpforo-menu .wpf-left:empty {
	display: none !important;
}

#wpforo #wpforo-wrap .wpf-search-form,
#wpforo #wpforo-wrap .wpf-search-form form {
	width: min(100%, 360px);
}

/* wpForo positions the magnifier absolutely. Give it a local containing
 * block so it stays inside the input instead of resolving against
 * .wpf-bar-right and landing on top of the notification bell. */
#wpforo #wpforo-wrap .wpf-search-form {
	position: relative !important;
}

#wpforo #wpforo-wrap .wpf-search-form form {
	display: block;
	position: relative !important;
}

#wpforo #wpforo-wrap .wpf-search-field {
	width: 100% !important;
	height: 36px !important;
	margin: 0 !important;
	padding: 0 12px 0 34px !important;
	border: 1px solid var(--dcd-border-strong, #d9dce1) !important;
	border-radius: 3px !important;
	background: #fff !important;
	color: var(--dcd-text, #1f2329) !important;
	font-size: 14px !important;
}

#wpforo #wpforo-wrap .wpf-search-form .fa-search {
	z-index: 31;
	top: 50% !important;
	left: 12px !important;
	position: absolute !important;
	color: var(--dcd-muted, #747982) !important;
	pointer-events: none;
	transform: translateY(-50%);
}

#wpforo #wpforo-wrap .wpforo-subtop {
	margin: 0 0 12px !important;
	padding: 0 2px !important;
}

#wpforo #wpforo-wrap .wpforo-category,
#wpforo #wpforo-wrap .wpforo-forum,
#wpforo #wpforo-wrap .wpforo-topic,
#wpforo #wpforo-wrap .post-wrap,
#wpforo #wpforo-wrap .wpf-threads {
	border-color: var(--dcd-border, #e8e9eb) !important;
	box-shadow: none !important;
}

#wpforo #wpforo-wrap .wpforo-category,
#wpforo #wpforo-wrap .wpforo-cat-panel,
#wpforo #wpforo-wrap .wpf-head-bar,
#wpforo #wpforo-wrap .wpf-threads-head {
	background: var(--dcd-surface-subtle, #fafafa) !important;
	color: var(--dcd-text, #1f2329) !important;
}

#wpforo #wpforo-wrap .wpforo-cat-panel {
	border-top: 3px solid var(--dcd-orange, #ff5a1f) !important;
}

#wpforo #wpforo-wrap .cat-title,
#wpforo #wpforo-wrap .cat-name,
#wpforo #wpforo-wrap .wpf-forum-title,
#wpforo #wpforo-wrap .wpforo-topic-title a {
	color: var(--dcd-title, #17191c) !important;
}

#wpforo #wpforo-wrap .wpfcl-5,
#wpforo #wpforo-wrap .wpfcl-8,
#wpforo #wpforo-wrap .wpfcl-11,
#wpforo #wpforo-wrap .wpfcl-12,
#wpforo #wpforo-wrap a:hover {
	color: var(--autool-qa-orange-accessible) !important;
}

#wpforo #wpforo-wrap .wpf-button,
#wpforo #wpforo-wrap input[type="submit"],
#wpforo #wpforo-wrap button[type="submit"] {
	border-color: var(--autool-qa-orange-accessible) !important;
	border-radius: 3px !important;
	background: var(--autool-qa-orange-accessible) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: inherit !important;
}

#wpforo #wpforo-wrap .wpf-button *,
#wpforo #wpforo-wrap button[type="submit"] * {
	color: #fff !important;
}

/* wpForo's secondary controls intentionally use a white surface. The former
 * blanket white-child rule made their Font Awesome glyphs white-on-white,
 * leaving what looked like unexplained leading whitespace. Keep the native
 * icon/SVG nodes and make their color follow the visible button label. */
.autool-qa-page #wpforo #wpforo-wrap .wpf-button-secondary {
	border-color: var(--dcd-border-strong, #d9dce1) !important;
	background: #fff !important;
	color: var(--dcd-text-soft, #454a52) !important;
}

.autool-qa-page #wpforo #wpforo-wrap .wpf-button-secondary:hover,
.autool-qa-page #wpforo #wpforo-wrap .wpf-button-secondary:focus-visible {
	border-color: var(--autool-qa-orange-accessible) !important;
	color: var(--autool-qa-orange-accessible) !important;
}

.autool-qa-page #wpforo #wpforo-wrap .wpf-button-secondary i[class*="fa-"],
.autool-qa-page #wpforo #wpforo-wrap .wpf-button-secondary svg,
.autool-qa-page #wpforo #wpforo-wrap .wpf-acp-title i[class*="fa-"] {
	color: inherit !important;
}

#wpforo #wpforo-wrap input::placeholder,
#wpforo #wpforo-wrap textarea::placeholder {
	color: #626871 !important;
	opacity: 1 !important;
}

#wpforo #wpforo-wrap input.wpf-login-text {
	color: #555b63 !important;
}

#wpforo #wpforo-wrap .wpf-forgot-pass,
#wpforo #wpforo-wrap .wpf-field-reg a {
	color: #245b78 !important;
}

#wpforo #wpforo-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
#wpforo #wpforo-wrap textarea,
#wpforo #wpforo-wrap select {
	border-color: var(--dcd-border-strong, #d9dce1) !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	font-family: inherit !important;
}

#wpforo #wpforo-wrap .wpforo-footer,
#wpforo #wpforo-wrap #wpforo-footer {
	margin-top: 16px !important;
	border-color: var(--dcd-border, #e8e9eb) !important;
	background: transparent !important;
}

@media (max-width: 1180px) {
	.autool-qa-layout {
		grid-template-columns: minmax(0, 1fr) 260px;
	}
}

@media (max-width: 1023px) {
	.autool-qa-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.autool-qa-layout > .dcd-rail {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.autool-qa-layout > .dcd-rail .dcd-rail-stack {
		display: contents;
	}

	.autool-qa-layout > .dcd-rail .dcd-rail-panel {
		margin: 0;
	}
}

@media (max-width: 767px) {
	.autool-qa-page {
		padding: 12px var(--dcd-page-inset, 12px) 48px;
	}

	.autool-qa-hero {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
		padding: 18px 16px;
	}

	.autool-qa-actions {
		width: 100%;
	}

	.autool-qa-button {
		flex: 1 1 0;
		padding-inline: 10px;
	}

	.autool-qa-main {
		padding: 12px;
	}

	.autool-qa-layout > .dcd-rail {
		display: block;
	}

	.autool-qa-layout > .dcd-rail .dcd-rail-stack {
		display: block;
	}

	.autool-qa-layout > .dcd-rail .dcd-rail-panel + .dcd-rail-panel {
		margin-top: 12px;
	}
}

@media (max-width: 380px) {
	.autool-qa-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.autool-qa-button {
		width: 100%;
	}

	#wpforo #wpforo-wrap #wpforo-menu {
		padding-inline: 6px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.autool-qa-page *,
	.autool-qa-page *::before,
	.autool-qa-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
