/* Quanzhou Automation — single blog article layout (v1.0.35)
   Applies only to single posts in the Blog category (body.qa-article).
   The article pages are rendered by the Elementor Theme Builder
   single-post template (ID 74); this stylesheet fixes what that
   template gets wrong: hero too tall, text lines too long, tables
   unreadable, FAQ flat, and the duplicated title (the content <h1>
   is stripped at render by qa_article_content_filter()). */

body.qa-article {
	--qa-navy: #0e2a3f;
	--qa-ink: #14202b;
	--qa-orange: #f06a2c;
	--qa-orange-dark: #d9551a;
	--qa-bg-alt: #f4f6f8;
	--qa-line: #e9edf1;
	--qa-muted: #5a6b7a;
}

/* Hero (v1.0.47): NO background image on desktop. The template used the
   featured image as a full-bleed cover background, which upscaled a
   ~960px image to ~1920px and cropped away ~80% of its height, then
   washed the bottom out with dark + white gradients — the product was
   barely visible. The hero is now a plain navy title band; the
   featured image renders inline at the top of the body instead (see
   .qa-article-featured below), where the source resolution is sharp.
   Mobile keeps the image background: at ~390px wide the same file is
   downscaled, not upscaled, so it stays sharp. */
@media (min-width: 1025px) {
	body.qa-article .elementor-74 .elementor-element.elementor-element-5aa47990 {
		padding: 4em 0 2.5em !important;
		background-image: none !important;
		background-color: var(--qa-navy) !important;
		background-size: auto !important;
	}
}

/* The template's overlay / gradient / shape layers go with the image. */
body.qa-article .elementor-74 .elementor-element.elementor-element-5aa47990 > .elementor-background-overlay,
body.qa-article .elementor-74 .elementor-element.elementor-element-5aa47990 .elementor-shape {
	display: none !important;
}

/* H1: balance the wrap so a lone word ("V", "and") never opens a line. */
body.qa-article .elementor-widget-theme-post-title .elementor-heading-title {
	text-wrap: balance;
}

/* Featured image, inline at the top of the body (v1.0.47). */
body.qa-article .qa-article-featured {
	margin: 0 0 2em;
}

body.qa-article .qa-article-featured img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

/* Readable line length: text ~700px (was ~800px / 105-115 chars).
   Tables keep the full column width so model numbers are not squeezed.
   The widget itself is centred at 700px once the sidebar is hidden
   (v1.0.47); the per-child max-width stays as a safety net. */
body.qa-article .elementor-widget-theme-post-content .elementor-widget-container {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

body.qa-article .elementor-widget-theme-post-content .elementor-widget-container > :is(p, ul, ol, h2, h3, h4, blockquote, .qa-faq-item, .qa-related) {
	max-width: 700px;
}

/* Body text (v1.0.47): 17px / 1.75, near-black. It was ~15-16px in a
   blue-grey (#616579) — small, thin and low-contrast for long reads. */
body.qa-article .elementor-widget-theme-post-content p {
	font-size: 17px;
	line-height: 1.75;
	color: #1c2733;
}

body.qa-article .elementor-widget-theme-post-content .elementor-widget-container img {
	max-width: 100%;
	height: auto;
}

/* Heading hierarchy: H1 (theme, 48px) > H2 30px > H3 22px, with room
   above each section so the page reads as sections, not one wall. */
body.qa-article .elementor-widget-theme-post-content h2 {
	font-size: 30px;
	line-height: 1.3;
	font-weight: 800;
	color: var(--qa-navy);
	letter-spacing: -0.01em;
	margin: 1.7em 0 0.8em;
	scroll-margin-top: 90px;
}

body.qa-article .elementor-widget-theme-post-content h3 {
	font-size: 22px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--qa-navy);
	margin: 1.8em 0 0.7em;
	scroll-margin-top: 90px;
}

body.qa-article .elementor-widget-theme-post-content h4 {
	font-size: 18px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--qa-navy);
	margin: 1.5em 0 0.6em;
}

/* Tables: distinct header row, zebra rows, roomy cells, model/code
   column never wraps mid-token. .qa-table-wrap (added by the content
   filter) gives a horizontal scroll on narrow screens. */
body.qa-article .qa-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1.5em 0;
}

body.qa-article .elementor-widget-theme-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

body.qa-article .elementor-widget-theme-post-content thead th {
	background: var(--qa-bg-alt);
	text-align: left;
	font-weight: 700;
	color: var(--qa-navy);
	padding: 12px 14px;
	border-bottom: 2px solid var(--qa-line);
	vertical-align: bottom;
}

body.qa-article .elementor-widget-theme-post-content tbody td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--qa-line);
	vertical-align: top;
}

body.qa-article .elementor-widget-theme-post-content tbody tr:nth-child(even) {
	background: #fafbfc;
}

body.qa-article .elementor-widget-theme-post-content tbody td:first-child {
	white-space: nowrap;
	font-weight: 600;
}

/* FAQ (v1.0.47): tighter — the old 1.6em gaps stretched five Q&As
   into a very long page, and the answers were the same small grey
   text as the body. Answers now inherit the 17px body style above. */
body.qa-article .qa-faq-item {
	margin: 1.1em 0;
}

body.qa-article .qa-faq-item + .qa-faq-item {
	border-top: 1px solid var(--qa-line);
	padding-top: 1em;
}

body.qa-article .qa-faq-q {
	font-size: 18px;
	line-height: 1.45;
	font-weight: 700;
	color: var(--qa-navy);
	margin: 0 0 0.5em;
}

body.qa-article .qa-faq-a {
	margin: 0;
}

/* Sources: smaller, muted, and long URLs may break anywhere instead
   of running off the column or breaking mid-word with no link style.
   (v1.0.47) Items get breathing room, and the source URL — now on
   its own line as a real link — is orange and underlined so it reads
   as a source, not as part of the sentence. */
body.qa-article .qa-sources {
	font-size: 15px;
	color: var(--qa-muted);
}

body.qa-article .qa-sources li {
	margin-bottom: 14px;
}

body.qa-article .qa-sources a {
	color: var(--qa-orange-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.qa-article .qa-sources a:hover {
	color: var(--qa-orange);
}

body.qa-article .qa-source-link {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Related reading: a quiet callout box instead of a lone line lost
   between Sources and the share buttons. (v1.0.47) Links are orange
   and underlined — they used to be the same colour as the text. */
body.qa-article .qa-related {
	background: var(--qa-bg-alt);
	border-left: 3px solid var(--qa-orange);
	border-radius: 0 8px 8px 0;
	padding: 14px 18px;
	margin: 2em 0;
	font-size: 16px;
}

body.qa-article .qa-related a {
	color: var(--qa-orange-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.qa-article .qa-related a:hover {
	color: var(--qa-orange);
}

/* Share buttons (v1.0.47): the template's share widget rendered four
   big red rectangles that clashed with the navy/orange site palette,
   labelled TWITTER (outdated) and including PRINT, which is not
   sharing. Recolour to navy, drop Print, and relabel Twitter as X. */
body.qa-article .elementor-share-btn {
	background-color: var(--qa-navy) !important;
}

body.qa-article .elementor-share-btn:hover {
	background-color: var(--qa-orange) !important;
}

body.qa-article .elementor-share-btn_print {
	display: none !important;
}

body.qa-article .elementor-share-btn_twitter .elementor-share-btn__icon {
	display: none;
}

body.qa-article .elementor-share-btn_twitter .elementor-share-btn__title {
	font-size: 0;
}

body.qa-article .elementor-share-btn_twitter .elementor-share-btn__title::after {
	content: "X";
	font-size: 14px;
	font-weight: 700;
}

/* Sidebar (v1.0.47): template 74's right column (Latest Posts +
   red Newsletter block) ended halfway down the article and left the
   lower half of the page a blank grey column. Hide it; the content
   column goes full width and the 700px reading column centres. */
body.qa-article .elementor-74 .elementor-element.elementor-element-2c1f6320 {
	display: none !important;
}

body.qa-article .elementor-74 .elementor-element.elementor-element-7e2f331b {
	width: 100% !important;
}

/* Quote form + footer injected at the bottom of article pages
   (v1.0.47, qa_article_footer()). The template ships neither, so
   the page used to end after the author box. */
.qa-article-quote {
	background: var(--qa-navy);
	padding: 56px 24px;
	margin-top: 64px;
}

.qa-article-quote-inner {
	max-width: 760px;
	margin: 0 auto;
}

.qa-article-quote-inner h2 {
	color: #fff;
	font-size: 28px;
	line-height: 1.3;
	font-weight: 800;
	margin: 0 0 10px;
}

.qa-article-quote-inner > p {
	color: #c9d8e4;
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 24px;
}

.qa-article-quote-form {
	background: #fff;
	border-radius: 12px;
	padding: 28px;
}

.qa-article-footer {
	background: #0a1f2e;
	color: #9fb2c1;
	padding: 44px 24px 24px;
}

.qa-article-footer-inner {
	max-width: 1128px;
	margin: 0 auto 28px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 32px;
}

.qa-article-footer-brand strong,
.qa-article-footer-col strong {
	display: block;
	color: #fff;
	font-size: 17px;
	margin-bottom: 12px;
}

.qa-article-footer-brand p {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
}

.qa-article-footer-col a,
.qa-article-footer-col span {
	display: block;
	color: #9fb2c1;
	font-size: 15px;
	line-height: 1.65;
	text-decoration: none;
	margin-bottom: 8px;
}

.qa-article-footer-col a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.qa-article-footer-copy {
	max-width: 1128px;
	margin: 0 auto;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 14px;
	color: #7d93a5;
}

@media (max-width: 720px) {
	.qa-article-quote {
		padding: 40px 20px;
	}

	.qa-article-quote-form {
		padding: 20px;
	}

	.qa-article-footer-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
/* Site header on articles (v1.0.49): the shared qa-header (top strip,
   wordmark, nav, search, Fast Quote) is styled by qa-home.css, which
   is now enqueued on article pages too. The only article-specific bit
   is the font: the homepage sets Barlow on body.qa-home, which article
   pages do not have, so set it on the header here to match. */
body.qa-article .qa-header {
	font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
