:root {
	color-scheme: light;
	--ld-help-accent: #31646a;
	--ld-help-accent-dark: #21484d;
	--ld-help-border: #d9e0df;
	--ld-help-muted: #5c6968;
	--ld-help-surface: #ffffff;
	--ld-help-page: #f4f7f6;
	--ld-help-text: #17201f;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.ld-help-site {
	min-height: 100vh;
	margin: 0;
	background: var(--ld-help-page);
	color: var(--ld-help-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

a {
	color: var(--ld-help-accent-dark);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--ld-help-accent);
}

a:focus-visible {
	outline: 3px solid var(--ld-help-accent);
	outline-offset: 3px;
}

.ld-help-skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 2147483647;
	padding: 8px 12px;
	transform: translateY(-150%);
	border-radius: 6px;
	background: #fff;
	color: #111;
}

.ld-help-skip-link:focus {
	transform: translateY(0);
}

.ld-help-public-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 6px clamp(16px, 4vw, 56px);
	border-bottom: 1px solid var(--ld-help-border);
	background: var(--ld-help-surface);
}

.ld-help-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ld-help-text);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}

.ld-help-brand img {
	display: block;
	object-fit: contain;
}

.ld-help-public-nav > ul,
.ld-help-public-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ld-help-public-nav > ul {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ld-help-public-nav li {
	position: relative;
}

.ld-help-public-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--ld-help-text);
	font-weight: 600;
	text-decoration: none;
}

.ld-help-public-nav a:hover,
.ld-help-public-nav a:focus-visible {
	background: #e9eeee;
}

.ld-help-public-nav li > ul {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 10;
	display: none;
	min-width: 200px;
	padding: 6px;
	border: 1px solid var(--ld-help-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgb(0 0 0 / 15%);
}

.ld-help-public-nav li:hover > ul,
.ld-help-public-nav li:focus-within > ul {
	display: block;
}

body.ld-nc-auth-standalone.ld-nc-logged-in .ld-help-public-header {
	display: none;
}

body.ld-nc-auth-standalone.ld-nc-logged-in .ld-help-main {
	padding-top: calc(52px + clamp(24px, 5vw, 64px));
}

.ld-help-main {
	width: min(960px, calc(100% - 32px));
	margin: 0 auto;
	padding: clamp(40px, 7vw, 88px) 0;
}

.ld-help-contents,
.ld-help-article,
.ld-help-error {
	padding: clamp(24px, 5vw, 56px);
	border: 1px solid var(--ld-help-border);
	border-radius: 16px;
	background: var(--ld-help-surface);
	box-shadow: 0 8px 30px rgb(24 45 43 / 6%);
}

.ld-help-kicker,
.ld-help-breadcrumb {
	margin: 0 0 8px;
	color: var(--ld-help-muted);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ld-help-contents h1,
.ld-help-article h1,
.ld-help-error h1 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.15;
}

.ld-help-introduction {
	max-width: 65ch;
	margin: 16px 0 40px;
	color: var(--ld-help-muted);
}

.ld-help-chapters {
	display: grid;
	gap: 36px;
}

.ld-help-chapter h2 {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ld-help-accent);
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	line-height: 1.3;
}

.ld-help-chapter ol {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ld-help-chapter li a {
	display: flex;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 7px;
	text-decoration: none;
}

.ld-help-chapter li a:hover,
.ld-help-chapter li a:focus-visible {
	background: #eef3f2;
}

.ld-help-section-number {
	min-width: 3.25rem;
	color: var(--ld-help-muted);
	font-variant-numeric: tabular-nums;
}

.ld-help-article-body {
	margin-top: 36px;
}

.ld-help-article-body :where(h2, h3, h4) {
	margin-top: 2em;
	line-height: 1.3;
}

.ld-help-article-body :where(img, video) {
	max-width: 100%;
	height: auto;
}

.ld-help-article-body :where(pre, table) {
	max-width: 100%;
	overflow-x: auto;
}

.ld-help-article-body code {
	font-size: 0.9em;
}

.ld-help-page-navigation {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 20px;
	align-items: end;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--ld-help-border);
}

.ld-help-page-navigation div {
	display: flex;
	flex-direction: column;
}

.ld-help-page-navigation div > span {
	color: var(--ld-help-muted);
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
}

.ld-help-next-link {
	align-items: flex-end;
	text-align: right;
}

.ld-help-contents-link {
	font-weight: 700;
}

.ld-help-footer {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 0 16px 36px;
	color: var(--ld-help-muted);
	font-size: 0.9rem;
}

@media (max-width: 680px) {
	.ld-help-public-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.ld-help-public-nav > ul {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.ld-help-public-nav li > ul {
		position: static;
		box-shadow: none;
	}

	.ld-help-main {
		width: min(100% - 20px, 960px);
		padding: 24px 0;
	}

	body.ld-nc-auth-standalone.ld-nc-logged-in .ld-help-main {
		padding-top: 72px;
	}

	.ld-help-contents,
	.ld-help-article,
	.ld-help-error {
		padding: 24px 20px;
		border-radius: 12px;
	}

	.ld-help-page-navigation {
		grid-template-columns: 1fr 1fr;
	}

	.ld-help-contents-link {
		grid-column: 1 / -1;
		grid-row: 1;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
