/*
 * Help centre (help.php). Everything is inside .hlp, so the rest of the site is not touched.
 * Colours come from the site's theme tokens in css_main (light and dark). The search field follows the
 * filter-field pattern of the Newsletters page (a label as the frame, a frameless search input inside).
 */

.hlp { max-width: 1000px; margin: 0 auto; padding: 0 16px 40px; color: var(--text-neutral-12); line-height: 1.5; }
.hlp *, .hlp *:before, .hlp *:after { box-sizing: border-box; }
.hlp .cText h1 i { margin-right: 0.8em; }
.hlp a { color: var(--text-brand); }

.hlp-intro { color: var(--text-neutral-8); margin: -8px 0 16px; font-size: 1.05em; }
.hlp-muted { color: var(--text-neutral-8); }

/* Notes: the beta note, the fallback-language note, the archive note */
.hlp-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 14px;
	margin: 0 0 18px;
	background: var(--infobox-info-bg);
	border: 1px solid var(--infobox-info-border);
	border-radius: 10px;
	color: var(--text-neutral-12);
}
.hlp-note i { color: var(--infobox-info-icon); margin-top: 3px; }

/* Breadcrumbs */
.hlp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.92em; color: var(--text-neutral-8); margin: 0 0 14px; }
.hlp-crumbs a { color: var(--text-neutral-8); text-decoration: none; }
.hlp-crumbs a:hover { color: var(--text-brand); text-decoration: underline; }

/* The search form */
.hlp-search { display: flex; gap: 10px; align-items: center; margin: 0 0 26px; max-width: 560px; }
.hlp-search-field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 14px;
	background: var(--bg-neutral-1);
	border: 1px solid var(--border-neutral-4);
	border-radius: 10px;
	color: var(--text-neutral-8);
	cursor: text;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.hlp-search-field:hover { border-color: var(--border-neutral-8); }
.hlp-search-field:focus-within { border-color: var(--border-info-4); box-shadow: 0 0 0 3px var(--bg-info-4); }
.hlp-search-field:focus-within i { color: var(--border-info-4); }
.hlp-search-field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text-neutral-12);
	font: inherit;
}
.hlp-search-field input::placeholder { color: var(--text-neutral-8); opacity: 1; }
.hlp .hlp-btn {
	height: 44px;
	padding: 0 18px;
	border: 1px solid var(--border-brand);
	border-radius: 10px;
	background: var(--bg-brand);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.hlp .hlp-btn:hover, .hlp .hlp-btn:focus-visible { background: var(--bg-brand-dark); border-color: var(--border-brand-dark); outline: none; }

/* The sections on the start page: cards side by side */
.hlp-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin: 0 0 26px; }
/* A section is a light panel with its own headline: the headline is larger, carries the icon in a brand-coloured
   badge and has a brand underline, so it reads as a heading and not as one more row of the list below it */
.hlp-section { background: var(--bg-neutral-5); border-radius: 14px; padding: 16px 16px 14px; }
.hlp-section h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.3em;
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0 0 14px;
	padding: 0 0 10px;
	border-bottom: 2px solid var(--border-brand);
	color: var(--text-brand);
}
.hlp-section h2 i {
	flex: none;
	width: 1.6em;
	height: 1.6em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8em;
	border-radius: 8px;
	background: var(--bg-brand);
	color: #fff;
}
.hlp-more { margin: 10px 4px 0; font-size: 0.92em; }
.hlp-more a { text-decoration: none; font-weight: 600; }

/* Who to contact: the organization first, then myWebLog */
.hlp-contact { margin: 0 0 26px; }
.hlp-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.hlp-contact-card { background: var(--bg-neutral-1); border: 1px solid var(--border-neutral-3); border-radius: 10px; padding: 14px 16px; }
.hlp-contact-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1em; font-weight: 600; margin: 0 0 8px; }
.hlp-contact-card h3 i { color: var(--text-brand); }
.hlp-contact-card p { margin: 0 0 8px; }
.hlp-contact-card p:last-child { margin-bottom: 0; }
.hlp-contact-card a { text-decoration: none; }
.hlp-contact-card a:hover { text-decoration: underline; }

/* Article lists: one card, a row per article */
.hlp-list { list-style: none; margin: 0; padding: 0; background: var(--bg-neutral-1); border: 1px solid var(--border-neutral-3); border-radius: 10px; overflow: hidden; }
.hlp-list li { border-top: 1px solid var(--border-neutral-3); }
.hlp-list li:first-child { border-top: 0; }
.hlp-list a { display: flex; align-items: flex-start; gap: 14px; padding: 11px 14px; color: inherit; text-decoration: none; }
.hlp-list a:hover { background: var(--bg-surface-1, var(--bg-neutral-5)); }
.hlp-list a:hover .hlp-list-title { color: var(--text-brand); }
.hlp-list a:focus-visible { outline: 2px solid var(--text-brand); outline-offset: -2px; }
.hlp-list a > i { flex: none; width: 1.3em; text-align: center; margin-top: 3px; color: var(--text-neutral-8); }
.hlp-list a:hover > i { color: var(--text-brand); }
.hlp-list a > i.hlp-ext, .hlp-list a > .fi { margin-left: auto; color: var(--text-neutral-8); }
.hlp-list-text { flex: 1; min-width: 0; }
.hlp-list-title { display: block; font-weight: 400; overflow-wrap: anywhere; }
.hlp-list-snippet { display: block; font-size: 0.9em; color: var(--text-neutral-8); margin-top: 2px; }
.hlp-list-compact a { padding: 8px 14px; }
.hlp-chip { flex: none; font-size: 0.75em; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--bg-neutral-5); color: var(--text-neutral-8); margin-top: 3px; }

/* An article: side menu and text */
.hlp-article-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.hlp-aside { position: sticky; top: 16px; font-size: 0.92em; }
.hlp-aside h2 { font-size: 0.8em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-neutral-8); margin: 0 0 6px; }
.hlp-aside ul { list-style: none; margin: 0 0 20px; padding: 0; border-left: 2px solid var(--border-neutral-3); }
.hlp-aside li a { display: block; padding: 4px 0 4px 12px; color: var(--text-neutral-10, var(--text-neutral-8)); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.hlp-aside li a:hover { color: var(--text-brand); border-left-color: var(--border-brand); }

.hlp-article { min-width: 0; }
.hlp-updated { color: var(--text-neutral-8); font-size: 0.9em; margin: -6px 0 16px; }

/* The rendered Markdown */
.hlp-body { font-size: 1.02em; max-width: 72ch; }
.hlp-body > p:first-child { font-size: 1.08em; color: var(--text-neutral-10, var(--text-neutral-12)); }
.hlp-body h2 { font-size: 1.3em; font-weight: 600; margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-neutral-3); scroll-margin-top: 16px; }
.hlp-body h3 { font-size: 1.08em; font-weight: 600; margin: 22px 0 6px; scroll-margin-top: 16px; }
.hlp-body p { margin: 0 0 12px; }
.hlp-body ul, .hlp-body ol { margin: 0 0 12px; padding-left: 24px; }
.hlp-body li { margin-bottom: 4px; }
.hlp-body li > p { margin: 0; }
.hlp-body strong { font-weight: 600; }
.hlp-body code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: 0.9em; background: var(--bg-neutral-5); padding: 1px 5px; border-radius: 4px; }
.hlp-body pre { background: var(--bg-neutral-5); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.hlp-body pre code { background: none; padding: 0; }
.hlp-body blockquote {
	margin: 14px 0;
	padding: 10px 14px;
	background: var(--infobox-tip-bg);
	border: 1px solid var(--infobox-tip-border);
	border-left-width: 4px;
	border-radius: 8px;
}
.hlp-body blockquote p { margin: 0; }
.hlp-body blockquote p + p { margin-top: 8px; }
.hlp-body table { border-collapse: collapse; width: 100%; margin: 0 0 14px; font-size: 0.95em; }
.hlp-body th, .hlp-body td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--border-neutral-3); }
.hlp-body th { font-weight: 600; background: var(--bg-neutral-5); }
.hlp-body img { max-width: 100%; height: auto; border: 1px solid var(--border-neutral-3); border-radius: 8px; margin: 6px 0 14px; }
.hlp-body hr { border: 0; border-top: 1px solid var(--border-neutral-3); margin: 24px 0; }

.hlp-open { margin: 20px 0 0; }
.hlp-open a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--border-brand); border-radius: 10px; text-decoration: none; font-weight: 600; }
.hlp-open a:hover { background: var(--bg-neutral-5); }
.hlp-report { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--border-neutral-3); font-size: 0.92em; color: var(--text-neutral-8); }
.hlp-report a { text-decoration: none; }

/* Narrow screens: the side menu above the text, the search button under the field */
@media screen and (max-width: 760px) {
	.hlp-article-wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.hlp-aside { position: static; }
	.hlp-aside ul { margin-bottom: 12px; }
	.hlp-search { flex-wrap: wrap; }
	.hlp .hlp-btn { height: 40px; }
}

/* Print: the article only */
@media print {
	.hlp-aside, .hlp-crumbs, .hlp-report, .hlp-open, .hlp-note { display: none; }
	.hlp-article-wrap { display: block; }
	.hlp-body { max-width: none; }
}
