/* ==========================================================================
   Everabyte Help Center — dedicated stylesheet (help.css)
   Loaded only by Help Center pages via the Layout head slot (AGENTS.md rule
   n°10: no CSS inside pages/components). Uses the existing Everabyte design
   tokens: navy #061d3c, green #04b85e, cyan #1275a6, slate neutrals.
   All comments in English (rule n°9).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Category grid — Help Center home ("Browse by topic")
   -------------------------------------------------------------------------- */

.helpc-section {
	padding: 64px 0;
}

.helpc-section--alt {
	background: #f8fafc;
}

.helpc-section-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}

.helpc-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1275a6;
	margin-bottom: 10px;
}

.helpc-section-title {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	color: #061d3c;
	margin: 0 0 10px;
	line-height: 1.25;
}

.helpc-section-subtitle {
	font-size: 16px;
	color: #475569;
	margin: 0;
	line-height: 1.6;
}

.helpc-category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.helpc-category-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 22px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.helpc-category-card:hover,
.helpc-category-card:focus-visible {
	border-color: #1275a6;
	box-shadow: 0 8px 24px rgba(6, 29, 60, 0.08);
	transform: translateY(-2px);
}

.helpc-category-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: rgba(18, 117, 166, 0.1);
	color: #1275a6;
}

.helpc-category-body {
	min-width: 0;
}

.helpc-category-name {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #061d3c;
	margin-bottom: 4px;
}

.helpc-category-desc {
	display: block;
	font-size: 14px;
	line-height: 1.55;
	color: #475569;
	margin-bottom: 8px;
}

.helpc-category-count {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: #04b85e;
	background: rgba(4, 184, 94, 0.1);
	border-radius: 999px;
	padding: 2px 10px;
}

/* --------------------------------------------------------------------------
   2. Search results panel (dropdown under the hero search input)
   Shows ALL matching/similar articles, ranked by relevance; the panel
   itself scrolls (sticky result count on top).
   -------------------------------------------------------------------------- */

.helpc-search-wrap {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
}

.helpc-search-panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 50;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(6, 29, 60, 0.14);
	max-height: min(540px, 68vh);
	overflow-y: auto;
	text-align: left;
	-webkit-overflow-scrolling: touch;
}

.helpc-search-panel[hidden] {
	display: none;
}

/* Result count sticks at the top while the ranked list scrolls. */
.helpc-search-count {
	position: sticky;
	top: 0;
	z-index: 1;
	padding: 9px 16px;
	font-size: 12.5px;
	font-weight: 600;
	color: #475569;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.helpc-search-item {
	display: block;
	padding: 12px 16px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid #f1f5f9;
}

.helpc-search-item:last-child {
	border-bottom: none;
}

.helpc-search-item:hover,
.helpc-search-item:focus-visible,
.helpc-search-item.is-active {
	background: #f8fafc;
}

.helpc-search-item-title {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	color: #061d3c;
	line-height: 1.4;
}

/* Two-line description snippet under each result title */
.helpc-search-item-desc {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
	margin-top: 3px;
}

.helpc-search-item-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

.helpc-search-chip {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 600;
	color: #1275a6;
	background: rgba(18, 117, 166, 0.08);
	border-radius: 999px;
	padding: 2px 9px;
}

.helpc-search-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #067a44;
	background: rgba(4, 184, 94, 0.12);
	border-radius: 999px;
	padding: 2px 9px;
	vertical-align: 1px;
	margin-left: 6px;
}

.helpc-search-item mark {
	background: rgba(4, 184, 94, 0.18);
	color: inherit;
	border-radius: 3px;
	padding: 0 2px;
}

.helpc-search-empty {
	padding: 20px 16px;
	text-align: center;
	color: #475569;
	font-size: 14px;
	line-height: 1.6;
}

.helpc-search-empty strong {
	display: block;
	color: #061d3c;
	margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   3. Popular articles grid (Help Center home)
   -------------------------------------------------------------------------- */

.helpc-article-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.helpc-article-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.helpc-article-card:hover,
.helpc-article-card:focus-visible {
	border-color: #04b85e;
	box-shadow: 0 6px 18px rgba(6, 29, 60, 0.08);
}

.helpc-article-card-icon {
	flex: none;
	color: #04b85e;
	margin-top: 2px;
}

.helpc-article-card-title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #061d3c;
	line-height: 1.45;
}

.helpc-article-card-cat {
	display: block;
	font-size: 12.5px;
	color: #64748b;
	margin-top: 3px;
}

/* --------------------------------------------------------------------------
   4. Category page — hero, product filter, article list
   -------------------------------------------------------------------------- */

.helpc-cat-hero {
	padding: 56px 0 40px;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.helpc-cat-breadcrumb {
	text-align: left;
	max-width: 760px;
	margin: 0 auto 18px;
}

.helpc-cat-hero-title {
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 800;
	color: #061d3c;
	margin: 0 0 10px;
	line-height: 1.25;
}

.helpc-cat-hero-desc {
	font-size: 16px;
	color: #475569;
	max-width: 620px;
	margin: 0 auto;
	line-height: 1.6;
}

.helpc-filter-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

.helpc-filter-btn {
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
	border-radius: 999px;
	padding: 7px 16px;
	cursor: pointer;
	transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.helpc-filter-btn:hover {
	border-color: #1275a6;
	color: #1275a6;
}

.helpc-filter-btn.is-selected {
	background: #061d3c;
	border-color: #061d3c;
	color: #ffffff;
}

.helpc-filter-btn:focus-visible {
	outline: 2px solid #1275a6;
	outline-offset: 2px;
}

.helpc-article-list {
	display: grid;
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.helpc-article-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.helpc-article-row:hover,
.helpc-article-row:focus-visible {
	border-color: #1275a6;
	box-shadow: 0 6px 18px rgba(6, 29, 60, 0.07);
}

.helpc-article-row-title {
	display: block;
	font-size: 15.5px;
	font-weight: 700;
	color: #061d3c;
	line-height: 1.45;
}

.helpc-article-row-desc {
	display: block;
	font-size: 13.5px;
	color: #64748b;
	margin-top: 3px;
	line-height: 1.5;
}

.helpc-article-row-arrow {
	margin-left: auto;
	flex: none;
	color: #94a3b8;
}

.helpc-cat-empty {
	text-align: center;
	color: #475569;
	padding: 32px 0;
	font-size: 15px;
}

/* Two-column category body: persistent tree sidebar + article list in one
   view, so users browse other categories without leaving the page */
.helpc-layout--cat {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding: 44px 0 72px;
}

/* Inside the grid the article list fills its column (no 760px centering) */
.helpc-layout--cat .helpc-article-list {
	max-width: none;
	margin: 0;
}

/* --------------------------------------------------------------------------
   5. Article page — layout (sidebar | content | TOC)
   -------------------------------------------------------------------------- */

.helpc-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr) 220px;
	gap: 40px;
	padding: 40px 0 72px;
	align-items: start;
}

/* Sidebar: persistent tree navigation (categories + nested articles) */
.helpc-sidebar {
	position: sticky;
	top: calc(var(--header-h, 67px) + 24px);
	max-height: calc(100vh - var(--header-h, 67px) - 48px);
	overflow-y: auto;
	font-size: 14px;
	padding-right: 4px;
}

.helpc-sidebar-title {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
	margin: 0 0 10px;
}

/* Tree navigation: category = primary level, articles nested underneath */
.helpc-nav {
	display: grid;
	gap: 2px;
}

.helpc-nav-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #061d3c;
	cursor: pointer;
	list-style: none;
	user-select: none;
	line-height: 1.35;
	transition: background 150ms ease, color 150ms ease;
}

/* Hide the default disclosure marker (custom chevron instead) */
.helpc-nav-summary::-webkit-details-marker {
	display: none;
}

.helpc-nav-summary:hover {
	background: #f1f5f9;
}

.helpc-nav-summary:focus-visible {
	outline: 2px solid #1275a6;
	outline-offset: -2px;
}

/* Current category: tinted row so the user always knows where they are */
.helpc-nav-group[data-current] > .helpc-nav-summary {
	background: rgba(18, 117, 166, 0.1);
	color: #0c5a80;
}

.helpc-nav-summary-icon {
	flex: none;
	display: inline-flex;
	color: #1275a6;
}

.helpc-nav-summary-label {
	flex: 1;
	min-width: 0;
}

.helpc-nav-chevron {
	flex: none;
	color: #94a3b8;
	transition: transform 200ms ease;
}

.helpc-nav-group[open] > .helpc-nav-summary .helpc-nav-chevron {
	transform: rotate(180deg);
}

/* Article links nested under their category */
.helpc-nav-list {
	list-style: none;
	margin: 3px 0 8px;
	padding: 0;
	display: grid;
	gap: 1px;
}

.helpc-nav-link {
	display: block;
	padding: 6px 10px 6px 34px;
	border-radius: 8px;
	font-size: 13.5px;
	color: #475569;
	text-decoration: none;
	line-height: 1.4;
	transition: background 150ms ease, color 150ms ease;
}

.helpc-nav-link:hover {
	background: #f1f5f9;
	color: #061d3c;
}

.helpc-nav-link:focus-visible {
	outline: 2px solid #1275a6;
	outline-offset: -2px;
}

/* Overview link: category landing page (description + product filters) */
.helpc-nav-link--overview {
	font-weight: 600;
	color: #1275a6;
}

.helpc-nav-link.is-current {
	background: rgba(4, 184, 94, 0.12);
	color: #067a44;
	font-weight: 700;
}

/* Breadcrumb */
.helpc-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 20px;
}

.helpc-breadcrumb a {
	color: #1275a6;
	text-decoration: none;
}

.helpc-breadcrumb a:hover,
.helpc-breadcrumb a:focus-visible {
	text-decoration: underline;
}

.helpc-breadcrumb .is-current {
	color: #334155;
	font-weight: 600;
}

.helpc-breadcrumb-sep {
	color: #cbd5e1;
}

/* Article content column */
.helpc-article-title {
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	color: #061d3c;
	line-height: 1.25;
	margin: 0 0 12px;
}

.helpc-article-lead {
	font-size: 17px;
	color: #475569;
	line-height: 1.65;
	margin: 0 0 8px;
}

.helpc-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	font-size: 13px;
	color: #64748b;
	padding: 12px 0 4px;
	border-bottom: 1px solid #e2e8f0;
	margin-bottom: 28px;
}

.helpc-plan-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #1275a6;
	background: rgba(18, 117, 166, 0.1);
	border-radius: 999px;
	padding: 3px 10px;
}

/* Rendered markdown (prose) */
.helpc-prose {
	font-size: 15.5px;
	line-height: 1.75;
	color: #1e293b;
}

.helpc-prose h2 {
	font-size: 22px;
	font-weight: 800;
	color: #061d3c;
	line-height: 1.35;
	margin: 36px 0 14px;
	scroll-margin-top: calc(var(--header-h, 67px) + 24px);
}

.helpc-prose h3 {
	font-size: 17.5px;
	font-weight: 700;
	color: #061d3c;
	margin: 28px 0 10px;
	scroll-margin-top: calc(var(--header-h, 67px) + 24px);
}

.helpc-prose p {
	margin: 0 0 16px;
}

.helpc-prose ul,
.helpc-prose ol {
	margin: 0 0 16px;
	padding-left: 24px;
	display: grid;
	gap: 6px;
}

.helpc-prose li::marker {
	color: #1275a6;
	font-weight: 700;
}

.helpc-prose a {
	color: #1275a6;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.helpc-prose a:hover,
.helpc-prose a:focus-visible {
	color: #0c5a7e;
}

.helpc-prose strong {
	color: #061d3c;
}

.helpc-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 20px;
	font-size: 14px;
}

.helpc-prose th,
.helpc-prose td {
	border: 1px solid #e2e8f0;
	padding: 9px 12px;
	text-align: left;
	vertical-align: top;
}

.helpc-prose th {
	background: #f8fafc;
	color: #061d3c;
	font-weight: 700;
}

.helpc-prose code {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	padding: 1px 6px;
	font-size: 0.88em;
	color: #0f172a;
	overflow-wrap: anywhere;
}

.helpc-prose pre {
	background: #061d3c;
	color: #e2e8f0;
	border-radius: 10px;
	padding: 16px 18px;
	overflow-x: auto;
	margin: 0 0 20px;
	font-size: 13.5px;
	line-height: 1.6;
}

.helpc-prose pre code {
	background: transparent;
	border: none;
	color: inherit;
	padding: 0;
}

/* Callouts written in markdown as raw HTML blocks */
.helpc-callout {
	border-radius: 10px;
	padding: 14px 18px;
	margin: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.65;
	border: 1px solid;
}

.helpc-callout p {
	margin: 0;
}

.helpc-callout p + p {
	margin-top: 8px;
}

.helpc-callout--info {
	background: #eff8fd;
	border-color: #a6d8ef;
	color: #0c4a6e;
}

.helpc-callout--info strong {
	color: #075985;
}

.helpc-callout--tip {
	background: #ecfdf3;
	border-color: #a7e8c4;
	color: #14532d;
}

.helpc-callout--tip strong {
	color: #067a44;
}

.helpc-callout--warning {
	background: #fff8ed;
	border-color: #f5c98a;
	color: #7c3a06;
}

.helpc-callout--warning strong {
	color: #92400e;
}

.helpc-callout--critical {
	background: #fef2f2;
	border-color: #f3b4b4;
	color: #7f1d1d;
}

.helpc-callout--critical strong {
	color: #991b1b;
}

/* --------------------------------------------------------------------------
   6. Table of contents (right column)
   -------------------------------------------------------------------------- */

.helpc-toc {
	position: sticky;
	top: calc(var(--header-h, 67px) + 24px);
	font-size: 13.5px;
}

.helpc-toc-title {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
	margin: 0 0 10px;
}

.helpc-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid #e2e8f0;
	display: grid;
	gap: 2px;
}

.helpc-toc-link {
	display: block;
	padding: 5px 12px;
	color: #475569;
	text-decoration: none;
	border-left: 2px solid transparent;
	margin-left: -2px;
	line-height: 1.45;
	border-radius: 0 6px 6px 0;
}

.helpc-toc-link:hover,
.helpc-toc-link:focus-visible {
	color: #1275a6;
}

.helpc-toc-link.is-current {
	color: #1275a6;
	border-left-color: #04b85e;
	font-weight: 600;
}

.helpc-toc-item--h3 .helpc-toc-link {
	padding-left: 24px;
	font-size: 13px;
}

/* --------------------------------------------------------------------------
   7. Article footer: pager, related articles, feedback, support CTA
   -------------------------------------------------------------------------- */

.helpc-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid #e2e8f0;
}

.helpc-pager-link {
	display: block;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	text-decoration: none;
	transition: border-color 150ms ease, background 150ms ease;
}

.helpc-pager-link:hover,
.helpc-pager-link:focus-visible {
	border-color: #1275a6;
	background: #ffffff;
}

.helpc-pager-link--next {
	text-align: right;
}

.helpc-pager-label {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 4px;
}

.helpc-pager-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #061d3c;
	line-height: 1.4;
}

.helpc-related {
	margin-top: 36px;
}

.helpc-related-title {
	font-size: 16px;
	font-weight: 800;
	color: #061d3c;
	margin: 0 0 14px;
}

.helpc-related-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.helpc-feedback {
	margin-top: 32px;
	padding: 20px 22px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.helpc-feedback[hidden] {
	display: none;
}

.helpc-feedback-question {
	font-size: 14.5px;
	font-weight: 700;
	color: #061d3c;
	margin: 0 0 12px;
}

.helpc-feedback-actions {
	display: flex;
	gap: 10px;
}

.helpc-feedback-btn {
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	padding: 8px 22px;
	cursor: pointer;
	transition: border-color 150ms ease, background 150ms ease;
}

.helpc-feedback-btn:hover {
	border-color: #04b85e;
	color: #067a44;
}

.helpc-feedback-btn:focus-visible {
	outline: 2px solid #1275a6;
	outline-offset: 2px;
}

.helpc-feedback-thanks {
	font-size: 14px;
	color: #067a44;
	font-weight: 600;
	margin: 0;
}

.helpc-support {
	margin-top: 32px;
	padding: 22px;
	border-radius: 12px;
	background: #061d3c;
	color: #cbd5e1;
}

.helpc-support-title {
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 6px;
}

.helpc-support-text {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 14px;
}

.helpc-support-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.helpc-support-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	padding: 9px 18px;
	text-decoration: none;
	transition: background 150ms ease, border-color 150ms ease;
}

.helpc-support-btn--primary {
	background: #04b85e;
	color: #061d3c;
}

.helpc-support-btn--primary:hover,
.helpc-support-btn--primary:focus-visible {
	background: #03a04f;
}

.helpc-support-btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #ffffff;
}

.helpc-support-btn--ghost:hover,
.helpc-support-btn--ghost:focus-visible {
	border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. Hero animation neutralization (rule n°8 — above-the-fold content must
   render instantly; no reveal/fade delay on hero elements)
   -------------------------------------------------------------------------- */

.helpc-hero .animate-in,
.helpc-hero .fade-in-up,
.helpc-hero .reveal {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.helpc-layout {
		grid-template-columns: 230px minmax(0, 1fr);
		gap: 32px;
	}

	.helpc-layout--cat {
		grid-template-columns: 230px minmax(0, 1fr);
		gap: 32px;
	}

	/* TOC moves above the article as a plain box on narrower screens */
	.helpc-toc {
		position: static;
		grid-column: 1 / -1;
		order: -1;
		background: #f8fafc;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		padding: 14px 16px;
	}

	.helpc-toc-list {
		border-left: none;
		grid-template-columns: repeat(2, 1fr);
	}

	.helpc-toc-link {
		margin-left: 0;
		padding: 4px 8px;
		border-left: none;
	}

	.helpc-toc-link.is-current {
		border-left: none;
		color: #1275a6;
	}
}

@media (max-width: 860px) {
	.helpc-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding-top: 28px;
	}

	.helpc-layout--cat {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding-top: 28px;
	}

	/* Sidebar becomes a normal block above the article content */
	.helpc-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
		background: #f8fafc;
		border: 1px solid #e2e8f0;
		border-radius: 12px;
		padding: 16px 18px;
	}

	.helpc-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.helpc-article-grid {
		grid-template-columns: 1fr;
	}

	.helpc-search-panel {
		position: static;
		margin-top: 10px;
		box-shadow: none;
	}
}

@media (max-width: 560px) {
	.helpc-section {
		padding: 44px 0;
	}

	.helpc-category-grid {
		grid-template-columns: 1fr;
	}

	.helpc-pager {
		grid-template-columns: 1fr;
	}

	.helpc-pager-link--next {
		text-align: left;
	}

	.helpc-toc-list {
		grid-template-columns: 1fr;
	}

	/* Tables and code blocks scroll inside themselves — never the page */
	.helpc-prose table {
		display: block;
		width: max-content;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* --------------------------------------------------------------------------
   10. Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.helpc-category-card,
	.helpc-article-card,
	.helpc-article-row,
	.helpc-pager-link,
	.helpc-nav-summary,
	.helpc-nav-link {
		transition: none;
	}

	.helpc-category-card:hover {
		transform: none;
	}

	.helpc-nav-chevron {
		transition: none;
	}
}
