/**
 * Вопросы садоводов (014).
 *
 * Внутри `.content` сайт инлайново задаёт `ul, ol { display: inline-block !important }` —
 * у наших списков `display` объявлен явно с `!important`.
 *
 * Кнопки и поля — классы ogorod-accounts (`ogacc-btn`, `ogacc-label`, `ogacc-notice`).
 * Их цвета заданы переменными на `.ogacc-page`; в наших обёртках переменные
 * объявлены заново, иначе на статьях зелёная кнопка осталась бы без фона.
 */

.ogqa-page,
.ogqa-entry,
.ogqa-widget,
.ogqa-profile,
.ogqa-badges {
	--ogacc-text: #2c3140;
	--ogacc-muted: #6b7568;
	--ogacc-line: #e0e4da;
	--ogacc-green: #3f6b2c;
	--ogacc-soft: #eaf5e4;
	--ogacc-red: #a8321f;
	--ogacc-red-soft: #f7e0da;
}

.ogqa-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

.ogqa-muted,
.ogqa-small {
	color: var(--ogacc-muted);
}

.ogqa-small {
	font-size: 13px;
	margin: 8px 0 0;
}

.ogqa-lead {
	margin: 0 0 16px;
}

.ogqa-hint {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-left: 3px solid var(--ogacc-green);
	background: var(--ogacc-soft);
}

.ogqa-badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 10px;
	background: var(--ogacc-soft);
	color: var(--ogacc-green);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.ogqa-badge--editorial {
	background: #eef1f7;
	color: #3a4a6b;
}

.ogqa-best-mark {
	color: var(--ogacc-green);
	font-weight: 600;
}

/* Поля форм. */

.ogqa-page input[type=text],
.ogqa-page select,
.ogqa-page textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	padding: 10px 12px;
	border: 1px solid var(--ogacc-line);
	border-radius: 8px;
	font: inherit;
	color: var(--ogacc-text);
	background: #fff;
}

.ogqa-page textarea {
	display: block;
	resize: vertical;
}

.ogqa-ask-form .ogacc-label,
.ogqa-reply__form .ogacc-label {
	display: block;
	margin: 14px 0 6px;
	font-weight: 600;
}

.ogqa-ask-form .ogacc-btn,
.ogqa-reply__form .ogacc-btn {
	margin-top: 14px;
}

/* Список. */

.ogqa-list-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 18px;
}

.ogqa-list-head .ogqa-lead {
	flex: 1 1 320px;
	margin: 0;
}

.ogqa-filters {
	margin: 0 0 18px;
}

.content ul.ogqa-chips,
ul.ogqa-chips {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px !important;
	padding: 0 !important;
	list-style: none !important;
}

.content ul.ogqa-chips li,
ul.ogqa-chips li {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ogqa-chips li::before {
	content: none !important;
}

.content a.ogqa-chip,
a.ogqa-chip {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--ogacc-line);
	border-radius: 16px;
	color: var(--ogacc-text);
	text-decoration: none;
	font-size: 14px;
}

.content a.ogqa-chip--on,
a.ogqa-chip--on {
	background: var(--ogacc-green);
	border-color: var(--ogacc-green);
	color: #fff;
}

.ogqa-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
}

.ogqa-page .ogqa-filter-form select {
	width: auto;
	max-width: 100%;
	flex: 0 1 280px;
}

.ogqa-filter-form .ogacc-check {
	display: flex;
	gap: 6px;
	align-items: center;
	margin: 0;
}

.content ul.ogqa-items,
ul.ogqa-items {
	display: block !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
	list-style: none !important;
}

.content ul.ogqa-items li.ogqa-item,
li.ogqa-item {
	display: block !important;
	margin: 0 !important;
	padding: 12px 0 !important;
	border-bottom: 1px solid var(--ogacc-line);
}

.ogqa-items li::before,
.ogqa-related__list li::before,
.ogqa-sources__list li::before,
.ogqa-pages__list li::before,
.ogqa-widget__list li::before {
	content: none !important;
}

.content a.ogqa-item__title,
a.ogqa-item__title,
.ogqa-item__title {
	display: block;
	font-weight: 600;
	line-height: 1.35;
}

.ogqa-item__text {
	display: block;
	margin: 4px 0 0;
}

.ogqa-item__meta {
	display: block;
	margin: 4px 0 0;
	color: var(--ogacc-muted);
	font-size: 13px;
}

.ogqa-empty {
	padding: 18px;
	border-radius: 8px;
	background: var(--ogacc-soft);
}

.content ul.ogqa-pages__list,
ul.ogqa-pages__list {
	display: flex !important;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 20px !important;
	padding: 0 !important;
	list-style: none !important;
}

.content ul.ogqa-pages__list li,
ul.ogqa-pages__list li {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ogqa-pages__item,
.content a.ogqa-pages__item {
	display: inline-block;
	min-width: 36px;
	padding: 6px 10px;
	box-sizing: border-box;
	border: 1px solid var(--ogacc-line);
	border-radius: 6px;
	text-align: center;
	text-decoration: none;
}

.ogqa-pages__item--on {
	background: var(--ogacc-green);
	border-color: var(--ogacc-green);
	color: #fff;
}

.ogqa-pages__gap {
	display: inline-block;
	padding: 6px 4px;
}

/* Вопрос и ответы. */

.ogqa-question {
	margin: 0 0 24px;
}

.ogqa-question__meta,
.ogqa-answer__meta {
	margin: 0 0 8px;
	color: var(--ogacc-muted);
	font-size: 14px;
}

.ogqa-answers {
	margin: 0 0 24px;
}

.ogqa-answer {
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid var(--ogacc-line);
	border-radius: 10px;
}

.ogqa-answer--best {
	border-color: var(--ogacc-green);
	box-shadow: inset 3px 0 0 var(--ogacc-green);
}

.ogqa-answer--editorial {
	background: #f7f9fc;
}

.ogqa-answer__best {
	margin: 0 0 8px;
	color: var(--ogacc-green);
	font-weight: 600;
}

.ogqa-answer__text p:last-child,
.ogqa-question__text p:last-child {
	margin-bottom: 0;
}

.ogqa-answer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	align-items: center;
	margin: 12px 0 0;
	font-size: 14px;
}

.ogqa-useful[hidden] {
	display: none !important;
}

.ogqa-action {
	padding: 6px 12px;
	border: 1px solid var(--ogacc-line);
	border-radius: 16px;
	background: #fff;
	color: var(--ogacc-text);
	font: inherit;
	cursor: pointer;
}

.ogqa-action:disabled {
	opacity: .7;
	cursor: default;
}

.ogqa-action--best {
	border-color: var(--ogacc-green);
	color: var(--ogacc-green);
}

.ogqa-sources {
	margin: 12px 0 0;
	font-size: 14px;
}

.ogqa-sources__title {
	margin: 0 0 4px;
	font-weight: 600;
}

.content ul.ogqa-sources__list,
ul.ogqa-sources__list,
.content ul.ogqa-related__list,
ul.ogqa-related__list,
.content ul.ogqa-widget__list,
ul.ogqa-widget__list {
	display: block !important;
	margin: 0 !important;
	padding: 0 0 0 18px !important;
	list-style: disc !important;
}

.content ul.ogqa-sources__list li,
ul.ogqa-sources__list li,
.content ul.ogqa-related__list li,
ul.ogqa-related__list li {
	display: list-item !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
}

.ogqa-reply {
	margin: 0 0 24px;
	padding: 16px;
	border-radius: 10px;
	background: var(--ogacc-soft);
}

.ogqa-reply h2 {
	margin-top: 0;
}

.ogqa-reply .ogacc-notice {
	background: #fff;
}

.ogqa-reply .ogacc-notice--error {
	background: var(--ogacc-red-soft);
}

.ogqa-related {
	margin: 0 0 24px;
}

.ogqa-ask-more {
	margin: 24px 0;
	padding: 16px;
	border: 1px dashed var(--ogacc-line);
	border-radius: 10px;
	text-align: center;
}

.ogqa-ask-more p {
	margin: 0 0 10px;
}

/* Блок в конце статей и под определителем. */

.ogqa-entry {
	clear: both;
	margin: 28px 0;
	padding: 16px 18px;
	border-radius: 10px;
	background: var(--ogacc-soft);
}

.ogqa-entry p {
	margin: 0 0 10px;
}

.ogqa-entry p:last-child {
	margin-bottom: 0;
}

.ogqa-entry__title {
	font-weight: 700;
	font-size: 1.1em;
}

.content a.ogqa-entry__list,
.ogqa-entry__list {
	display: inline-block;
	margin: 0 0 0 14px;
}

/* Виджет. */

.content ul.ogqa-widget__list li,
ul.ogqa-widget__list li {
	display: list-item !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
}

.ogqa-widget__meta {
	display: block;
	color: var(--ogacc-muted);
	font-size: 12px;
}

.ogqa-widget__links {
	margin: 10px 0 0;
	font-size: 14px;
}

/* Профиль и страница автора. */

.ogqa-profile {
	margin: 24px 0;
}

.ogqa-badges {
	margin: 6px 0 0;
}

@media (max-width: 600px) {
	.ogqa-answer {
		padding: 12px;
	}

	.content a.ogqa-entry__list,
	.ogqa-entry__list {
		display: block;
		margin: 10px 0 0;
	}
}
