/**
 * help/modern.php — supplemental styles only (loads after styles.css,
 * homeModern.css and jobApplicationModern.css).
 *
 * Reuses base components from styles.css / jobApplicationModern.css:
 *   .page, .content-gutter, .hero-spacer, .hero-banner.hero-banner--compact,
 *   .application-section, .application-section__heading,
 *   .application-section__intro, .application-submit-row,
 *   .btn-application-next, .modernApplicant-customer-logo, .site-footer.
 *
 * Page is single-column (no right sidebar) — there is no .application-sidebar
 * consumption here, only a single .help-main column capped at --content-width.
 */

/* ----- Bootstrap container override scope (mirror helpDeskModern pattern) ----- */
.help-page .help-main .container-fluid,
.help-page .hero-spacer .container-fluid {
	padding-left: 0;
	padding-right: 0;
	max-width: var(--content-width);
}

/* ----- Single-column main (no sidebar) ----- */
.help-main {
	margin-top: 48px;
}

.help-grid {
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* ----- Inline link inside intro / callout paragraphs ----- */
.help-link {
	color: var(--color-black);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.help-link:hover,
.help-link:focus {
	color: var(--color-black);
	opacity: 0.85;
}

/* ----- Generic callout (re-used for chat / applicants-asking-for-help) ----- */
.help-callout {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 24px;
	border: 1px solid var(--color-neutral-200);
	border-radius: 12px;
	background: var(--color-neutral-25);
	margin-top: 24px;
}

.help-callout > .ph {
	flex-shrink: 0;
	font-size: 24px;
	line-height: 26px;
	color: var(--color-black);
}

.help-callout__body {
	flex: 1 1 auto;
	min-width: 0;
}

.help-callout__body p {
	margin: 0;
	font-family: var(--font-dm);
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	letter-spacing: 0.032px;
	color: var(--color-black);
}

.help-callout__body p + p {
	margin-top: 6px;
}

.help-callout__title {
	font-weight: 700;
}

/* ----- Customer (authorized) support-team panel: keep the inner #team grid
        from supportTeam.inc.php intact, but soften the legacy <h4> + frame
        wrapper with modern spacing & typography. ----- */
.help-customer__team .frame {
	border: 1px solid var(--color-neutral-200);
	border-radius: 12px;
	padding: 20px 24px;
	background: var(--color-white);
}

.help-customer__team .frame h4 {
	font-family: var(--font-dm);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-black);
	margin: 0 0 16px;
}

.help-customer__team #team {
	font-family: var(--font-dm);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--color-black);
}

/* ----- Topic accordion (native <details>/<summary> — no JS) ----- */
.help-topic-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.help-topic {
	border: 1px solid var(--color-neutral-200);
	border-radius: 12px;
	background: var(--color-white);
	overflow: hidden;
}

.help-topic[open] {
	background: var(--color-neutral-25);
}

.help-topic__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	cursor: pointer;
	font-family: var(--font-dm);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-black);
	list-style: none;
	user-select: none;
}

.help-topic__summary::-webkit-details-marker {
	display: none;
}

.help-topic__summary::marker {
	content: '';
}

.help-topic__summary:hover,
.help-topic__summary:focus-visible {
	background: var(--color-neutral-25);
	outline: none;
}

.help-topic[open] .help-topic__summary {
	border-bottom: 1px solid var(--color-neutral-200);
}

.help-topic__label {
	flex: 1 1 auto;
	min-width: 0;
}

.help-topic__chevron {
	flex-shrink: 0;
	font-size: 20px;
	transition: transform 180ms ease;
}

.help-topic[open] .help-topic__chevron {
	transform: rotate(180deg);
}

.help-topic__body {
	padding: 16px 20px 20px;
	font-family: var(--font-dm);
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	letter-spacing: 0.032px;
	color: var(--color-black);
}

.help-topic__body p {
	margin: 0 0 10px;
}

.help-topic__body p:last-child {
	margin-bottom: 0;
}

.help-topic__body ul,
.help-topic__body ol {
	margin: 0 0 10px 20px;
	padding: 0;
}

.help-topic__body img {
	max-width: 100%;
	height: auto;
}

.help-topic__body a {
	color: var(--color-black);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ----- "Still stuck?" CTA row (left-aligned, mirrors helpDesk-submit-row) ----- */
.help-stillStuck__actions {
	justify-content: flex-start;
	margin-top: 24px;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
	.help-main {
		margin-top: 32px;
	}

	.help-grid {
		gap: 32px;
	}

	.help-callout {
		flex-direction: column;
		gap: 12px;
		padding: 18px;
	}

	.help-topic__summary {
		padding: 14px 16px;
	}

	.help-topic__body {
		padding: 14px 16px 18px;
	}
}

@media (max-width: 575px) {
	.help-main {
		margin-top: 24px;
	}
}
