/* ===== PeerLoot Help Center (inc/help-center.php) =====
   Help Center pages (/help/ and below) on the --pl-* tokens from site.css,
   so they follow day / night mode. Phone < 600px, tablet 600-1023px,
   desktop from 1024px. */

body.pl-help-page {
	--plh-radius: 14px;
	--plh-shadow: 0 1px 2px rgba(27, 31, 42, .04), 0 12px 32px -20px rgba(27, 31, 42, .25);
	--plh-ring: 0 0 0 3px rgba(254, 196, 1, .45);
	background: var(--pl-mist, #f2f4f7);
}

/* Astra's page box: let the Help Center draw its own cards. */
body.pl-help-page #primary,
body.pl-help-page .ast-article-single,
body.pl-help-page .ast-article-post,
body.pl-help-page .site-content,
body.pl-help-page .site-content > .ast-container {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}
body.pl-help-page .ast-article-single { padding: 0 !important; }
body.pl-help-page #primary { margin: 0 !important; padding: 0 !important; width: 100%; }
body.pl-help-page .site-content > .ast-container { max-width: 1360px; padding: 0 24px; }
body.pl-help-page .entry-header,
body.pl-help-page .post-thumb { display: none; }

.pl-help {
	padding: 32px 0 64px;
	color: var(--pl-text, #3f4553);
	font-family: var(--pl-header-font, "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif);
}
.pl-help *, .pl-help *::before, .pl-help *::after { box-sizing: border-box; }
.pl-help a { color: var(--pl-link, #014aac); text-decoration: none; }
.pl-help a:hover { text-decoration: underline; }
.pl-help a:focus { outline: none; }
.pl-help a:focus-visible { box-shadow: var(--plh-ring); border-radius: 4px; }
.pl-help ul, .pl-help ol { margin: 0; padding: 0; list-style: none; }

.pl-help .pl-help__title {
	margin: 0;
	color: var(--pl-ink, #1b1f2a);
	font-family: inherit;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
.pl-help .pl-help__count,
.pl-help .pl-help__updated { margin: 6px 0 0; color: var(--pl-muted, #5d6472); font-size: 14px; }
.pl-help .pl-help__intro { margin-top: 12px; font-size: 17px; }
.pl-help .pl-help__intro > :last-child { margin-bottom: 0; }

/* ---------- Search ---------- */
.pl-help__search {
	position: relative;
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin-top: 24px;
}
.pl-help__search-icon {
	position: absolute;
	top: 50%;
	inset-inline-start: 16px;
	color: var(--pl-muted, #5d6472);
	transform: translateY(-50%);
	pointer-events: none;
}
.pl-help .pl-help__search-input {
	flex: 1;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding-block: 0;
	padding-inline: 46px 16px;
	border: 1px solid var(--pl-line-strong, #cfd4dc);
	border-radius: 12px;
	background: var(--pl-paper, #fff);
	color: var(--pl-ink, #1b1f2a);
	font: inherit;
	font-size: 16px;
}
.pl-help .pl-help__search-input::placeholder { color: var(--pl-muted, #5d6472); opacity: 1; }
.pl-help .pl-help__search-input:focus { outline: none; border-color: var(--pl-gold, #fec401); box-shadow: var(--plh-ring); }
.pl-help .pl-help__search-btn { flex: none; height: 52px; padding: 0 20px; }
.pl-help__aside .pl-help__search,
.pl-help--category .pl-help__search { max-width: none; }
.pl-help__aside .pl-help__search-btn { display: none; }

/* ---------- Root ---------- */
.pl-help__hero { padding: 16px 0 8px; }

.pl-help__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin-top: 32px;
}

.pl-help__card {
	padding: 20px;
	border: 1px solid var(--pl-line, #e3e6eb);
	border-radius: var(--plh-radius);
	background: var(--pl-paper, #fff);
	box-shadow: var(--plh-shadow);
}
.pl-help .pl-help__card-title {
	margin: 0;
	font-family: inherit;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.25;
}
.pl-help .pl-help__card-title a { color: var(--pl-ink, #1b1f2a); }

.pl-help__list { margin-top: 12px !important; }
.pl-help__list li { border-top: 1px solid var(--pl-line, #e3e6eb); }
.pl-help__list li:first-child { border-top: 0; }
.pl-help .pl-help__list a {
	display: block;
	padding: 10px 0;
	color: var(--pl-text, #3f4553);
	line-height: 1.4;
}
.pl-help .pl-help__list a:hover { color: var(--pl-link, #014aac); text-decoration: none; }
.pl-help .pl-help__list a.is-current { color: var(--pl-ink, #1b1f2a); font-weight: 700; }
.pl-help .pl-help__more {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 14px;
	border: 1px solid var(--pl-line-strong, #cfd4dc);
	border-radius: 10px;
	color: var(--pl-ink, #1b1f2a);
	font-weight: 700;
}
.pl-help .pl-help__more:hover { background: var(--pl-ink, #1b1f2a); border-color: var(--pl-ink, #1b1f2a); color: var(--pl-on-ink, #fff); text-decoration: none; }

/* Search results */
.pl-help__results { margin-top: 32px; }
.pl-help .pl-help__section-title { margin: 0 0 12px; color: var(--pl-ink, #1b1f2a); font-family: inherit; font-size: 20px; font-weight: 800; }
.pl-help__result-list li {
	padding: 16px 20px;
	border: 1px solid var(--pl-line, #e3e6eb);
	border-radius: var(--plh-radius);
	background: var(--pl-paper, #fff);
}
.pl-help__result-list li + li { margin-top: 10px; }
.pl-help .pl-help__result-list a { color: var(--pl-ink, #1b1f2a); font-size: 17px; font-weight: 700; }
.pl-help__result-cat { display: block; margin-top: 2px; color: var(--pl-muted, #5d6472); font-size: 13px; }
.pl-help .pl-help__result-list p { margin: 6px 0 0; font-size: 15px; }
.pl-help .pl-help__empty { margin: 0; color: var(--pl-muted, #5d6472); }

/* ---------- Breadcrumbs ---------- */
.pl-help__crumbs { margin-bottom: 16px; font-size: 14px; }
.pl-help__crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.pl-help__crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--pl-muted, #5d6472); }
.pl-help__crumbs li + li::before { content: "/"; color: var(--pl-line-strong, #cfd4dc); }
.pl-help .pl-help__crumbs a { color: var(--pl-muted, #5d6472); }
.pl-help .pl-help__crumbs a:hover { color: var(--pl-link, #014aac); }

/* ---------- Category ---------- */
.pl-help--category .pl-help__card--wide { margin-top: 24px; }
.pl-help--category .pl-help__list { margin-top: 0 !important; }
.pl-help--category .pl-help__list a { padding: 14px 0; font-size: 16px; }

/* ---------- Article ---------- */
.pl-help__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pl-help__article {
	min-width: 0;
	padding: 24px 20px;
	border: 1px solid var(--pl-line, #e3e6eb);
	border-radius: var(--plh-radius);
	background: var(--pl-paper, #fff);
	box-shadow: var(--plh-shadow);
}

.pl-help__toc {
	margin-top: 20px;
	padding: 14px 16px;
	border: 1px solid var(--pl-line, #e3e6eb);
	border-radius: 12px;
	background: var(--pl-mist, #f2f4f7);
}
.pl-help__toc summary { color: var(--pl-ink, #1b1f2a); font-weight: 700; cursor: pointer; }
.pl-help__toc ol { margin-top: 8px !important; }
.pl-help__toc li { padding: 3px 0; }
.pl-help__toc .pl-help__toc-h3 { padding-inline-start: 16px; font-size: 14px; }

.pl-help__body { margin-top: 24px; font-size: 16px; line-height: 1.7; }
.pl-help__body :is(h2, h3) { scroll-margin-top: 96px; color: var(--pl-ink, #1b1f2a); font-family: inherit; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.pl-help__body h2 { margin: 1.6em 0 .5em; font-size: 24px; }
.pl-help__body h3 { margin: 1.4em 0 .4em; font-size: 19px; }
.pl-help__body > :first-child { margin-top: 0; }
.pl-help__body ul { margin: 0 0 1.2em 1.2em; padding: 0; list-style: disc; }
.pl-help__body ol { margin: 0 0 1.2em 1.2em; padding: 0; list-style: decimal; }
.pl-help__body li + li { margin-top: .35em; }
.pl-help__body strong { color: var(--pl-ink, #1b1f2a); }

.pl-help__aside { display: grid; gap: 16px; align-content: start; }

@media (min-width: 600px) {
	.pl-help__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pl-help__article { padding: 32px; }
}

@media (min-width: 1024px) {
	.pl-help { padding: 48px 0 80px; }
	.pl-help__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
	.pl-help__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
	.pl-help__aside { position: sticky; top: 96px; }
	.pl-help__article { padding: 40px 48px; }
}

@media (max-width: 599px) {
	body.pl-help-page .site-content > .ast-container { padding: 0 16px; }
	.pl-help .pl-help__search-btn { padding: 0 14px; }
}
