/**
 * [mybot_help] — the help-centre block.
 *
 * Deliberately small and inheriting: type comes from the theme, colour comes from the plugin's primary colour
 * only where a colour is needed. A support page is usually a theme template, so this file must not fight it;
 * every rule is scoped to `.mybot-help` and nothing is `!important`.
 */

.mybot-help {
	box-sizing: border-box;
	width: 100%;
	padding: 2.5rem 1rem;
	text-align: center;
}

.mybot-help *,
.mybot-help *::before,
.mybot-help *::after {
	box-sizing: inherit;
}

.mybot-help__inner {
	max-width: 44rem;
	margin: 0 auto;
}

.mybot-help__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
	line-height: 1.2;
}

.mybot-help__subtitle {
	margin: 0 0 1.25rem;
	opacity: 0.78;
}

.mybot-help__form {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
	margin: 0 auto 0.75rem;
	max-width: 36rem;
}

.mybot-help__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.75rem 1rem;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 999px;
	-webkit-appearance: none;
	appearance: none;
}

.mybot-help__input:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.mybot-help__submit,
.mybot-help__ask-button {
	flex: 0 0 auto;
	padding: 0.75rem 1.4rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--mybot-color, #2563eb);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.mybot-help__submit:hover,
.mybot-help__ask-button:hover {
	filter: brightness(0.94);
}

.mybot-help__submit:focus-visible,
.mybot-help__ask-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.mybot-help__status {
	min-height: 1.4em;
	margin: 0.25rem 0 0.5rem;
	font-size: 0.95rem;
	opacity: 0.8;
}

.mybot-help__results,
.mybot-help__topics {
	list-style: none;
	margin: 0 auto 1rem;
	padding: 0;
	max-width: 36rem;
	text-align: start;
}

.mybot-help__result {
	padding: 0.85rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mybot-help__result-title {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
}

.mybot-help__result-title:hover,
.mybot-help__result-title:focus {
	text-decoration: underline;
}

.mybot-help__result-type {
	margin-inline-start: 0.5rem;
	font-size: 0.8rem;
	opacity: 0.65;
}

.mybot-help__result-excerpt {
	margin: 0.25rem 0 0;
	font-size: 0.92rem;
	opacity: 0.85;
}

.mybot-help__topics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.mybot-help__topic a {
	display: inline-block;
	padding: 0.35rem 0.8rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 999px;
	font-size: 0.9rem;
	text-decoration: none;
}

.mybot-help__ask {
	margin: 1.25rem 0 0;
}
