/* Vice help directory. This page keeps SMF's documentation links. */
body.vice-modern-ui .vice-help {
	--vh-text: #202b36;
	--vh-muted: #647487;
	--vh-line: #d9e1e7;
	--vh-hover: #f2f8f8;
	--vh-accent: #087d79;
	max-width: 960px;
	margin: 0 auto 48px;
	padding: 0 12px;
	background: transparent !important;
	color: var(--vh-text) !important;
}

body.vice-modern-ui .vice-help__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 30px 0 24px;
	border-bottom: 1px solid var(--vh-line);
}

body.vice-modern-ui .vice-help__eyebrow {
	display: block;
	margin-bottom: 8px;
	color: var(--vh-accent) !important;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

body.vice-modern-ui .vice-help h1 {
	margin: 0;
	color: var(--vh-text) !important;
	font-size: 28px;
	font-weight: 750;
	line-height: 1.18;
}

body.vice-modern-ui .vice-help__header p,
body.vice-modern-ui .vice-help__intro {
	margin: 10px 0 0;
	color: var(--vh-muted) !important;
	font-size: 14px;
	line-height: 1.55;
}

body.vice-modern-ui .vice-help__intro {
	max-width: 760px;
	margin: 22px 0 10px;
}

body.vice-modern-ui .vice-help__rules {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid transparent !important;
	border-radius: 6px;
	background: var(--vh-accent) !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none !important;
}

body.vice-modern-ui .vice-help__rules:hover,
body.vice-modern-ui .vice-help__rules:focus-visible {
	background: #066863 !important;
}

body.vice-modern-ui .vice-help__topics ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.vice-modern-ui .vice-help__topics li {
	min-width: 0;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--vh-line);
	background: transparent !important;
}

body.vice-modern-ui .vice-help__topics a {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 12px;
	min-height: 84px;
	padding: 13px 8px;
	border-radius: 4px;
	background: transparent !important;
	color: var(--vh-text) !important;
	text-decoration: none !important;
}

body.vice-modern-ui .vice-help__topics a:hover,
body.vice-modern-ui .vice-help__topics a:focus-visible {
	background: var(--vh-hover) !important;
}

body.vice-modern-ui .vice-help__number {
	align-self: start;
	padding-top: 6px;
	color: var(--vh-accent) !important;
	font-size: 12px;
	font-weight: 800;
}

body.vice-modern-ui .vice-help__topic-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

body.vice-modern-ui .vice-help__topic-copy strong {
	color: var(--vh-text) !important;
	font-size: 15px;
	font-weight: 750;
}

body.vice-modern-ui .vice-help__topic-copy span {
	color: var(--vh-muted) !important;
	font-size: 12px;
	line-height: 1.45;
}

body.vice-modern-ui .vice-help__topics i {
	color: var(--vh-muted) !important;
	font-size: 12px;
}

body.vice-modern-ui .vice-help__footer {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--vh-line);
	color: var(--vh-muted) !important;
	font-size: 12px;
	line-height: 1.6;
}

body.vice-modern-ui .vice-help__footer a {
	color: var(--vh-accent) !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

html[data-vice-mode="dark"] body.vice-modern-ui .vice-help {
	--vh-text: #e7edf2;
	--vh-muted: #a1afbd;
	--vh-line: #33404d;
	--vh-hover: #1a2b32;
	--vh-accent: #7acfc5;
}

html[data-vice-mode="dark"] body.vice-modern-ui .vice-help__rules {
	background: #126e70 !important;
}

html[data-vice-mode="dark"] body.vice-modern-ui .vice-help__rules:hover,
html[data-vice-mode="dark"] body.vice-modern-ui .vice-help__rules:focus-visible {
	background: #168083 !important;
}

@media (max-width: 700px) {
	body.vice-modern-ui .vice-help__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	body.vice-modern-ui .vice-help__topics ul {
		grid-template-columns: minmax(0, 1fr);
	}

	body.vice-modern-ui .vice-help__topics a {
		min-height: 72px;
	}
}
