/**
 * 9XO single help article redesign.
 * Loaded only on single motta_help_article pages when the help-center
 * module is enabled. Overrides the Motta chrome and the child theme's
 * 1.4.4-era single-article card styles (scoped, later in cascade).
 * Design tokens mirror the About page (Elementor post-1064): --nxo-primary,
 * --nxo-dark, --nxo-text, capsule buttons, About heading scale.
 */

/* --------------------------------------------------------------------------
 * Neutralize Motta / child-theme single-article chrome
 * -------------------------------------------------------------------------- */

body.nxo-help-article-page .search-bar-hc,
body.nxo-help-article-page .page-header-hc,
body.nxo-help-article-page .motta-help-sidebar,
body.nxo-help-article-page .entry-header {
	display: none !important;
}

body.single-motta_help_article.nxo-help-article-page {
	background: #fff;
}

body.single-motta_help_article.nxo-help-article-page .site-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.single-motta_help_article.nxo-help-article-page .site-content > .container {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

body.single-motta_help_article.nxo-help-article-page .site-content-container,
body.single-motta_help_article.nxo-help-article-page .content-area {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	float: none;
}

body.single-motta_help_article.nxo-help-article-page .content-area > article.type-motta_help_article {
	padding: 0 !important;
	margin: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.single-motta_help_article.nxo-help-article-page .entry-content {
	margin: 0;
	font-size: 1rem;
}

/* The child theme underlines .entry-content links (1.4.4 fallback styling);
   the redesigned layout uses color-shift affordance instead. */
body.single-motta_help_article.nxo-help-article-page .entry-content a {
	text-decoration: none;
}

/* --------------------------------------------------------------------------
 * Tokens (About page palette)
 * -------------------------------------------------------------------------- */

.nxo-ha {
	--nxo-ha-accent: #6c35e8;
	--nxo-ha-accent-dark: #5222c4;
	--nxo-ha-dark: #20212a;
	--nxo-ha-soft: #f3edff;
	--nxo-ha-soft-2: #eee5ff;
	--nxo-ha-text: #20212a;
	--nxo-ha-muted: #555765;
	--nxo-ha-border: #e9e6ef;
	--nxo-ha-surface: #ffffff;
	--nxo-ha-radius: 16px;
	--nxo-ha-shadow: 0 10px 30px rgba(30, 31, 40, 0.05);
	--nxo-ha-grad: linear-gradient(135deg, var(--nxo-ha-accent), var(--nxo-ha-accent-dark));
	--nxo-ha-btn-shadow: 0 12px 28px rgba(108, 53, 232, 0.25);
	color: var(--nxo-ha-text);
	line-height: 1.55;
}

.nxo-ha *,
.nxo-ha *::before,
.nxo-ha *::after {
	box-sizing: border-box;
}

.nxo-ha a:focus-visible,
.nxo-ha button:focus-visible,
.nxo-ha input:focus-visible {
	outline: 3px solid rgba(108, 53, 232, 0.45);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
 * Hero band — gradient-only, full-bleed (no imagery)
 * Brand-purple and soft-pink radial glows over the lavender base plus a
 * white sheen top-left — same layered treatment as the blog heroes.
 * -------------------------------------------------------------------------- */

.nxo-ha-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(620px 320px at 82% 24%, rgba(108, 53, 232, 0.12), transparent 70%),
		radial-gradient(480px 280px at 62% 88%, rgba(210, 92, 226, 0.1), transparent 70%),
		radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.9), transparent 32%),
		linear-gradient(135deg, #fbf8ff 0%, #eee9f7 48%, #e8dafd 100%);
}

.nxo-ha-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 22px 0 30px;
}

.nxo-ha-hero__content {
	flex: 0 1 620px;
	min-width: 0;
}

.nxo-ha-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	color: var(--nxo-ha-muted);
	font-size: 13px;
}

/* Link colors carry the body.nxo-help-article-page prefix so they outrank the
   child theme's `body.single-motta_help_article .entry-content a` rule. */
body.nxo-help-article-page .nxo-ha-breadcrumb a {
	color: var(--nxo-ha-accent-dark);
	text-decoration: none;
}

body.nxo-help-article-page .nxo-ha-breadcrumb a:hover {
	color: var(--nxo-ha-accent);
}

.nxo-ha-breadcrumb__current {
	color: var(--nxo-ha-dark);
	font-weight: 600;
}

.nxo-ha-hero__title {
	margin: 0 0 16px;
	font-size: clamp(30px, 3.6vw, 42px);
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.05;
}

.nxo-ha-hero__title-a {
	color: var(--nxo-ha-dark);
}

.nxo-ha-hero__title-b {
	color: var(--nxo-ha-accent);
}

/* Unified site search spec (matches header capsule search, child 1.4.7):
   capsule white field, #e9e6ef border, purple focus ring, 38px gradient submit. */
.nxo-ha-search {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 560px;
	padding: 4px 4px 4px 16px;
	border: 1px solid #e9e6ef;
	border-radius: 999px;
	background: var(--nxo-ha-surface);
	box-shadow: 0 10px 26px rgba(72, 42, 115, 0.1);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nxo-ha-search:focus-within {
	border-color: var(--nxo-ha-accent);
	box-shadow: 0 10px 26px rgba(72, 42, 115, 0.1), 0 0 0 3px rgba(108, 53, 232, 0.16);
}

.nxo-ha-search__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--nxo-ha-muted);
}

.nxo-ha-search__icon svg {
	width: 100%;
	height: 100%;
}

/* Page-class prefix outranks Motta's global input[type="text"] styling
   (2px grey border, 60px height). */
body.nxo-help-article-page .nxo-ha-search__field {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	min-height: 38px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--nxo-ha-text);
	font-size: 14px;
	box-shadow: none;
	outline: none;
}

.nxo-ha-search__field::placeholder {
	color: #7a8090;
	opacity: 1;
}

/* Identical to the header / Help Center landing capsule Search button:
   38px gradient capsule with the visible "Search" label. */
.nxo-ha-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 38px;
	min-height: 38px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--nxo-ha-grad);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Motta's global button:hover paints its dark-blue primary; keep the brand
   gradient (selector carries the page class to outrank it). */
body.nxo-help-article-page .nxo-ha-search__submit:hover {
	background: var(--nxo-ha-grad);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(108, 53, 232, 0.3);
}

/* --------------------------------------------------------------------------
 * Three-column layout
 * -------------------------------------------------------------------------- */

.nxo-ha-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 300px;
	align-items: start;
	gap: 20px;
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 28px 0 52px;
}

.nxo-ha-left,
.nxo-ha-right {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (min-width: 1025px) {
	.nxo-ha-left,
	.nxo-ha-right {
		position: sticky;
		top: 96px;
	}
}

/* --------------------------------------------------------------------------
 * Cards (shared)
 * -------------------------------------------------------------------------- */

.nxo-ha-card {
	padding: 18px;
	border: 1px solid var(--nxo-ha-border);
	border-radius: var(--nxo-ha-radius);
	background: var(--nxo-ha-surface);
	box-shadow: var(--nxo-ha-shadow);
}

.nxo-ha-card__title {
	margin: 0 0 10px;
	color: var(--nxo-ha-dark);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

/* --------------------------------------------------------------------------
 * Left rail: table of contents + need-more-help
 * -------------------------------------------------------------------------- */

.nxo-ha-toc__list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nxo-ha-toc__list li {
	margin: 0;
}

body.nxo-help-article-page a.nxo-ha-toc__link {
	display: block;
	min-height: 44px;
	padding: 11px 12px;
	border-radius: 10px;
	color: var(--nxo-ha-muted);
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color 140ms ease, color 140ms ease;
}

body.nxo-help-article-page a.nxo-ha-toc__link:hover {
	background: var(--nxo-ha-soft);
	color: var(--nxo-ha-accent-dark);
}

body.nxo-help-article-page a.nxo-ha-toc__link.is-active {
	background: var(--nxo-ha-soft);
	color: var(--nxo-ha-accent-dark);
	font-weight: 600;
}

.nxo-ha-morehelp {
	text-align: center;
	background: linear-gradient(180deg, #fbf8ff 0%, #f3edff 100%);
}

.nxo-ha-morehelp__icon {
	display: inline-flex;
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
	padding: 9px;
	border-radius: 50%;
	background: var(--nxo-ha-soft-2);
	color: var(--nxo-ha-accent);
}

.nxo-ha-morehelp__icon svg {
	width: 100%;
	height: 100%;
}

.nxo-ha-morehelp .nxo-ha-card__title {
	margin-bottom: 4px;
}

.nxo-ha-morehelp p {
	margin: 0 0 12px;
	color: var(--nxo-ha-muted);
	font-size: 12px;
	line-height: 1.55;
}

/* Primary capsule button (About .nxo-button-primary). */
.nxo-ha-morehelp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	width: 100%;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--nxo-ha-grad);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: var(--nxo-ha-btn-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nxo-ha-morehelp__btn:hover {
	transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
 * Center column: article
 * -------------------------------------------------------------------------- */

.nxo-ha-main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.nxo-ha-article {
	padding: 24px 28px 26px;
	border: 1px solid var(--nxo-ha-border);
	border-radius: var(--nxo-ha-radius);
	background: var(--nxo-ha-surface);
	box-shadow: var(--nxo-ha-shadow);
	scroll-margin-top: 120px;
}

.nxo-ha-article__top {
	margin-bottom: 12px;
}

body.nxo-help-article-page a.nxo-ha-pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--nxo-ha-soft);
	color: var(--nxo-ha-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.nxo-help-article-page a.nxo-ha-pill:hover {
	background: var(--nxo-ha-accent);
	color: #fff;
}

.nxo-ha-title {
	margin: 0 0 8px;
	color: var(--nxo-ha-dark);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -1px;
}

.nxo-ha-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--nxo-ha-border);
	color: var(--nxo-ha-muted);
	font-size: 13px;
}

.nxo-ha-meta__time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.nxo-ha-meta__time svg {
	width: 15px;
	height: 15px;
}

.nxo-ha-body {
	color: var(--nxo-ha-muted);
	font-size: 15px;
	line-height: 1.75;
	scroll-margin-top: 120px;
}

.nxo-ha-body p {
	margin: 0 0 12px;
}

.nxo-ha-body > :last-child {
	margin-bottom: 0;
}

/* Content links: no underline; color-shift affordance (About treatment). */
body.nxo-help-article-page .nxo-ha-body a,
body.nxo-help-article-page .nxo-ha-step__body a {
	color: var(--nxo-ha-accent);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

body.nxo-help-article-page .nxo-ha-body a:hover,
body.nxo-help-article-page .nxo-ha-step__body a:hover {
	color: var(--nxo-ha-accent-dark);
}

/* Numbered step cards from h2/h3 sections. */

.nxo-ha-step {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--nxo-ha-border);
	scroll-margin-top: 120px;
}

.nxo-ha-step__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.nxo-ha-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--nxo-ha-soft);
	color: var(--nxo-ha-accent);
	font-size: 14px;
	font-weight: 700;
}

.nxo-ha-step__title {
	margin: 0;
	color: var(--nxo-ha-dark);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.3px;
}

.nxo-ha-step__body {
	color: var(--nxo-ha-muted);
	font-size: 15px;
	line-height: 1.75;
}

.nxo-ha-step__body p {
	margin: 0 0 12px;
}

.nxo-ha-step__body > :last-child {
	margin-bottom: 0;
}

/* Ordered lists render as soft lavender step panels. */

.nxo-ha-body ol,
.nxo-ha-step__body ol {
	counter-reset: nxo-ha-steps;
	margin: 12px 0;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--nxo-ha-soft);
	list-style: none;
}

.nxo-ha-body ol li,
.nxo-ha-step__body ol li {
	position: relative;
	counter-increment: nxo-ha-steps;
	margin: 0 0 9px;
	padding-left: 36px;
	font-size: 14px;
}

.nxo-ha-body ol li:last-child,
.nxo-ha-step__body ol li:last-child {
	margin-bottom: 0;
}

.nxo-ha-body ol li::before,
.nxo-ha-step__body ol li::before {
	content: counter(nxo-ha-steps);
	position: absolute;
	left: 0;
	top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--nxo-ha-surface);
	border: 1px solid rgba(108, 53, 232, 0.35);
	color: var(--nxo-ha-accent);
	font-size: 12px;
	font-weight: 700;
}

/* Unordered lists get a subtle check-dot treatment. */

.nxo-ha-body ul,
.nxo-ha-step__body ul {
	margin: 12px 0;
	padding: 0;
	list-style: none;
}

.nxo-ha-body ul li,
.nxo-ha-step__body ul li {
	position: relative;
	margin: 0 0 7px;
	padding-left: 22px;
	font-size: 14px;
}

.nxo-ha-body ul li::before,
.nxo-ha-step__body ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.6em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--nxo-ha-accent);
}

/* Info / note callout. */

.nxo-ha-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff9e7;
	border: 1px solid #f3e3c2;
}

.nxo-ha-note__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: #a9812f;
}

.nxo-ha-note__icon svg {
	width: 100%;
	height: 100%;
}

.nxo-ha-note p {
	margin: 0;
	color: #6d5a2c;
	font-size: 13px;
	line-height: 1.6;
}

/* Feedback widget. */

.nxo-ha-feedback {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border: 1px solid var(--nxo-ha-border);
	border-radius: var(--nxo-ha-radius);
	background: var(--nxo-ha-surface);
	box-shadow: var(--nxo-ha-shadow);
	scroll-margin-top: 120px;
}

.nxo-ha-feedback__q {
	margin: 0;
	color: var(--nxo-ha-dark);
	font-size: 15px;
	font-weight: 700;
}

.nxo-ha-feedback__hint {
	margin: 2px 0 0;
	color: var(--nxo-ha-muted);
	font-size: 13px;
}

.nxo-ha-feedback__actions {
	display: flex;
	gap: 10px;
}

/* Compact outline capsule buttons (About .nxo-button-outline).
   All states carry the page-class prefix and explicit backgrounds because
   Motta's global `button:hover` otherwise paints its dark-blue primary
   under our purple hover text (unreadable). */
body.nxo-help-article-page .nxo-ha-feedback__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	min-height: 38px;
	padding: 0 18px;
	border: 1px solid #aaa5b8;
	border-radius: 999px;
	background: #fff;
	color: var(--nxo-ha-dark);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.nxo-ha-feedback__btn svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

body.nxo-help-article-page .nxo-ha-feedback__btn:hover {
	transform: translateY(-1px);
	border-color: var(--nxo-ha-accent);
	background: var(--nxo-ha-soft);
	color: var(--nxo-ha-accent-dark);
	box-shadow: none;
}

body.nxo-help-article-page .nxo-ha-feedback__btn[aria-pressed="true"],
body.nxo-help-article-page .nxo-ha-feedback__btn[aria-pressed="true"]:hover {
	border-color: transparent;
	background: var(--nxo-ha-grad);
	color: #fff;
	box-shadow: var(--nxo-ha-btn-shadow);
}

.nxo-ha-feedback__thanks {
	flex-basis: 100%;
	margin: 0;
	color: var(--nxo-ha-accent-dark);
	font-size: 13px;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
 * Right rail
 * -------------------------------------------------------------------------- */

.nxo-ha-related__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nxo-ha-related__list li {
	margin: 0;
	border-bottom: 1px solid var(--nxo-ha-border);
}

.nxo-ha-related__list li:last-child {
	border-bottom: 0;
}

body.nxo-help-article-page a.nxo-ha-related__link {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	padding: 10px 4px;
	color: var(--nxo-ha-dark);
	text-decoration: none;
	border-radius: 8px;
	transition: background-color 140ms ease;
}

body.nxo-help-article-page a.nxo-ha-related__link:hover {
	background: var(--nxo-ha-soft);
}

.nxo-ha-related__icon {
	display: inline-flex;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	padding: 6px;
	border-radius: 50%;
	background: var(--nxo-ha-soft);
	color: var(--nxo-ha-accent);
}

.nxo-ha-related__icon svg {
	width: 100%;
	height: 100%;
}

.nxo-ha-related__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nxo-ha-related__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.nxo-ha-related__link:hover .nxo-ha-related__title {
	color: var(--nxo-ha-accent-dark);
}

.nxo-ha-related__time {
	color: var(--nxo-ha-muted);
	font-size: 12px;
}

/* Support card. */

.nxo-ha-support {
	background: linear-gradient(180deg, #fbf8ff 0%, #f0e8fd 100%);
}

.nxo-ha-support__blurb {
	margin: 0 0 12px;
	color: var(--nxo-ha-muted);
	font-size: 13px;
	line-height: 1.6;
}

.nxo-ha-support__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Outline capsule buttons (About .nxo-button-outline). */
body.nxo-help-article-page a.nxo-ha-support__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #aaa5b8;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	color: var(--nxo-ha-dark);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.nxo-ha-support__btn svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

body.nxo-help-article-page a.nxo-ha-support__btn:hover {
	transform: translateY(-2px);
	border-color: var(--nxo-ha-accent);
	background: #fff;
	color: var(--nxo-ha-accent-dark);
}

body.nxo-help-article-page a.nxo-ha-support__btn--whatsapp {
	border-color: rgba(18, 140, 126, 0.5);
	color: #128c7e;
}

body.nxo-help-article-page a.nxo-ha-support__btn--whatsapp:hover {
	border-color: #128c7e;
	background: #fff;
	color: #0f7568;
}

/* Popular topics chips. */

.nxo-ha-topics__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.nxo-help-article-page a.nxo-ha-chip {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 14px;
	border: 1px solid rgba(108, 53, 232, 0.28);
	border-radius: 999px;
	background: var(--nxo-ha-surface);
	color: var(--nxo-ha-accent-dark);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.nxo-help-article-page a.nxo-ha-chip:hover {
	border-color: var(--nxo-ha-accent);
	background: var(--nxo-ha-soft);
}

/* --------------------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
	.nxo-ha-layout {
		grid-template-columns: 220px minmax(0, 1fr) 280px;
		gap: 16px;
	}
}

@media (max-width: 1024px) {
	.nxo-ha-layout {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px 0 40px;
		width: min(1180px, calc(100% - 32px));
	}

	.nxo-ha-left,
	.nxo-ha-right {
		position: static;
	}
}

@media (max-width: 767px) {
	.nxo-ha-hero__inner {
		width: min(100% - 28px, 1180px);
		padding: 16px 0 24px;
	}

	.nxo-ha-hero__title {
		font-size: 30px;
		letter-spacing: -0.5px;
	}

	.nxo-ha-layout {
		width: min(100% - 28px, 1180px);
	}

	/* Same mobile treatment as the landing search: wrapped capsule with a
	   full-width 44px Search button. */
	.nxo-ha-search {
		max-width: none;
		flex-wrap: wrap;
		border-radius: 24px;
		padding: 8px;
	}

	body.nxo-help-article-page .nxo-ha-search__field {
		height: 44px;
		min-height: 44px;
		font-size: 14px;
	}

	.nxo-ha-search__submit {
		width: 100%;
		height: 44px;
		min-height: 44px;
	}

	.nxo-ha-article {
		padding: 18px 16px 20px;
		border-radius: 14px;
	}

	.nxo-ha-feedback {
		flex-direction: column;
		align-items: flex-start;
	}

	.nxo-ha-feedback__actions {
		width: 100%;
	}

	.nxo-ha-feedback__btn {
		flex: 1 1 0;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nxo-ha-search__submit,
	.nxo-ha-morehelp__btn,
	.nxo-ha-support__btn,
	.nxo-ha-feedback__btn {
		transition: none;
	}
}

/* ============================================================
   ACCORDION HOVER TREATMENT — site-wide accordion spec
   Mirrors the Help Center FAQ accordion hover (help-center.css):
   soft lavender #eee9f7 (accent-soft) fill + dark accent text.
   Covers collapsible <details>/<summary> blocks editors may add
   to article bodies, so every accordion on the site matches.
   ============================================================ */
body.nxo-help-article-page .nxo-ha-body details > summary,
body.nxo-help-article-page .nxo-ha-step__body details > summary {
	cursor: pointer;
	border-radius: 10px;
	padding: 10px 12px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.nxo-help-article-page .nxo-ha-body details > summary:hover,
body.nxo-help-article-page .nxo-ha-step__body details > summary:hover {
	background-color: #eee9f7;
	color: var(--nxo-ha-accent-dark);
}

@media (prefers-reduced-motion: reduce) {
	body.nxo-help-article-page .nxo-ha-body details > summary,
	body.nxo-help-article-page .nxo-ha-step__body details > summary {
		transition: none;
	}
}

/* Sticky-header offset for TOC / section deep links (matches help-center). */
@media (max-width: 1024px) {
	.nxo-ha-article,
	.nxo-ha-body,
	.nxo-ha-step,
	.nxo-ha-feedback {
		scroll-margin-top: 100px;
	}
}
