/* Answer content (includes/content.php): guides, About, FAQ, category copy, machine page extras.
   Lean, readable, phone first: one column of text at a comfortable measure, small navy headings,
   a light answer box, plain accordions for questions. */

/* Content pages: a readable column */
body.smp-content-page .entry-content,
.smp-after-inner { max-width: 780px; color: #1a1a1a; font-size: 16px; line-height: 1.65; }
body.smp-content-page .entry-content > *,
.smp-after-inner > * { margin-top: 0; }
body.smp-content-page .entry-content h2,
.smp-after-inner h2 { margin: 36px 0 12px; color: #003768; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; }
body.smp-content-page .entry-content h3,
.smp-after-inner h3 { margin: 24px 0 8px; color: #003768; font-size: 18px; font-weight: 700; line-height: 1.3; }
body.smp-content-page .entry-content p,
.smp-after-inner p { margin: 0 0 14px; }
body.smp-content-page .entry-content ul,
.smp-after-inner ul,
body.smp-content-page .entry-content ol,
.smp-after-inner ol { margin: 0 0 16px 1.2em; padding: 0; }
body.smp-content-page .entry-content li,
.smp-after-inner li { margin: 0 0 6px; }
body.smp-content-page .entry-content a,
.smp-after-inner a { color: #003768; text-decoration: underline; text-decoration-color: rgba(0, 55, 104, 0.35); text-underline-offset: 3px; }
body.smp-content-page .entry-content a:hover,
.smp-after-inner a:hover { text-decoration-color: currentColor; }
body.smp-content-page .entry-title { color: #003768; text-transform: none !important; letter-spacing: 0 !important; max-width: 780px; font-size: 32px; line-height: 1.2; }
@media (max-width: 921px) { body.smp-content-page .entry-title { font-size: 20px; } }
@media (max-width: 921px) {
	body.smp-content-page .entry-content,
.smp-after-inner { font-size: 16px; }
	body.smp-content-page .entry-content h2,
.smp-after-inner h2 { margin-top: 28px; font-size: 19px; }
	body.smp-content-page .entry-content h3,
.smp-after-inner h3 { font-size: 17px; }
}

/* Under the title */
.smp-byline { margin: -4px 0 18px !important; color: #545d68; font-size: 14px; }
.smp-byline a { font-weight: 600; }

/* The direct answer, first thing on the page */
.smp-answer { margin: 0 0 22px; padding: 16px 18px; border-left: 4px solid #f9b101; border-radius: 0 10px 10px 0; background: #f4f6f9; font-size: 17px; line-height: 1.55; }
.smp-answer p:last-child { margin-bottom: 0 !important; }
.smp-keyfacts { margin: 0 0 24px; }
.smp-keyfacts ul { display: grid; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none; }
.smp-keyfacts li { position: relative; margin: 0 !important; padding-left: 26px; }
.smp-keyfacts li::before {
	content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 14px; border-radius: 50%;
	background: #003768 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Tables: scroll inside their own box on phones, never the page */
body.smp-content-page .entry-content table,
.smp-after-inner table,
.smp-cat-about table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 0 0 20px; border: 1px solid #e3e7ee; border-collapse: collapse; border-radius: 10px; font-size: 15px; }
body.smp-content-page .entry-content th,
.smp-after-inner th,
body.smp-content-page .entry-content td,
.smp-after-inner td { padding: 10px 12px; border: 0; border-bottom: 1px solid #e9edf2; text-align: left; vertical-align: top; }
body.smp-content-page .entry-content thead th,
.smp-after-inner thead th { background: #f4f6f9; color: #003768; font-size: 14px; font-weight: 700; white-space: nowrap; }
body.smp-content-page .entry-content tbody tr:last-child td,
.smp-after-inner tbody tr:last-child td { border-bottom: 0; }

/* Questions: plain accordions */
.smp-faq { margin: 32px 0 8px; }
.smp-faq h2 { margin-bottom: 8px !important; }
.smp-faq details { border-bottom: 1px solid #e3e7ee; }
.smp-faq details:first-of-type { border-top: 1px solid #e3e7ee; }
.smp-faq summary {
	position: relative; display: block; padding: 14px 36px 14px 0; cursor: pointer; list-style: none;
	color: #003768; font-size: 16px; font-weight: 600; line-height: 1.4; -webkit-tap-highlight-color: transparent;
}
.smp-faq summary::-webkit-details-marker { display: none; }
.smp-faq summary::after {
	content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 2px solid #003768; border-bottom: 2px solid #003768; transform: rotate(45deg); transition: transform 0.15s ease;
}
.smp-faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.smp-faq summary:focus-visible { outline: 2px solid #003768; outline-offset: 2px; border-radius: 4px; }
.smp-faq details > div { padding: 0 0 14px; color: #1a1a1a; font-size: 15px; line-height: 1.6; }
.smp-faq details > div p { margin: 0 0 10px !important; }
.smp-faq details > div p:last-child { margin-bottom: 0 !important; }

/* The parts desk, at the foot of a content page */
.smp-desk {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 780px; margin: 36px 0 0; padding: 18px 20px;
	border: 1px solid #e3e7ee; border-radius: 12px; background: #f4f6f9;
}
.smp-desk p { margin: 0 !important; font-size: 15px; line-height: 1.5; }
.smp-desk .smp-desk-title { margin-bottom: 4px !important; color: #003768; font-size: 17px; font-weight: 700; }
.smp-desk-actions { display: flex; flex: 0 0 auto; gap: 8px; }
body .smp-desk .smp-desk-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px;
	background: #f9b101; color: #1a1a1a; font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none;
}
body .smp-desk .smp-desk-btn:hover { background: #d99a00; color: #1a1a1a; }
body .smp-desk .smp-desk-btn-alt { background: #fff; border: 1px solid #c9d0d9; color: #003768; }
body .smp-desk .smp-desk-btn-alt:hover { background: #e9edf2; color: #003768; }
@media (max-width: 640px) {
	.smp-desk { flex-direction: column; align-items: stretch; }
	.smp-desk-actions { display: grid; grid-template-columns: 1fr 1fr; }
	body .smp-desk .smp-desk-btn { padding: 0 10px; }
}

/* Guides: a list of cards */
.smp-guides { max-width: 780px; margin: 28px 0 0; }
.smp-guides h2 { margin: 0 0 12px !important; }
.smp-guides ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none; }
.smp-guides li { margin: 0 !important; }
body .smp-guides a {
	display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid #e3e7ee; border-radius: 12px;
	background: #fff; color: #1a1a1a; text-decoration: none !important;
}
body .smp-guides a:hover { border-color: #c9d0d9; box-shadow: 0 6px 16px rgba(0, 25, 48, 0.08); }
.smp-guides-title { color: #003768; font-size: 16px; font-weight: 700; line-height: 1.35; }
.smp-guides-text { color: #545d68; font-size: 14px; line-height: 1.5; }
@media (max-width: 640px) {
	.smp-guides ul { grid-template-columns: minmax(0, 1fr); }
}

/* Categories: a short answer above the products (plant categories), copy and questions below */
.smp-cat-lead { max-width: 820px; margin: 0 0 18px; color: #1a1a1a; font-size: 16px; line-height: 1.55; }
.smp-cat-about { max-width: 820px; margin: 40px 0 8px; padding-top: 28px; border-top: 1px solid #e3e7ee; font-size: 15px; line-height: 1.65; }
.smp-cat-about h2 { margin: 0 0 10px; color: #003768; font-size: 20px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.smp-cat-about h3 { margin: 20px 0 8px; color: #003768; font-size: 17px; font-weight: 700; }
.smp-cat-about p { margin: 0 0 12px; }
.smp-cat-about ul { margin: 0 0 14px 1.2em; padding: 0; }
.smp-cat-about li { margin: 0 0 5px; }
.smp-cat-about a { color: #003768; text-decoration: underline; text-decoration-color: rgba(0, 55, 104, 0.35); text-underline-offset: 3px; }
.smp-cat-about .smp-faq { margin-top: 26px; }
.smp-cat-about .smp-faq h2 { font-size: 20px; }

/* Machine pages: the other machines of the same make and type */
.smp-related-machines { max-width: 980px; margin: 40px 0 8px; padding-top: 28px; border-top: 1px solid #e3e7ee; }
.smp-related-machines h2 { margin: 0 0 12px; color: #003768; font-size: 20px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.smp-related-machines ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 20px; margin: 0; padding: 0; list-style: none; }
.smp-related-machines li { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 7px 0; border-bottom: 1px solid #eef1f5; font-size: 15px; }
.smp-related-machines li a { min-width: 0; color: #003768; font-weight: 500; text-decoration: none; }
.smp-related-machines li a:hover { text-decoration: underline; }
.smp-related-machines li span { flex: 0 0 auto; color: #6b7480; font-size: 13px; }
.smp-related-guide { margin: 14px 0 0; font-size: 15px; }
.smp-related-guide a { color: #003768; font-weight: 600; }

/* Part pages: the machine pages a part belongs to */
.smp-fits-machines a { color: #003768; }

/* Archive headings as written ("Thwaites dumper parts"), not Title Cased by the theme */
body.tax-product_cat .woocommerce-products-header__title,
body.tax-pa_machine .woocommerce-products-header__title { text-transform: none !important; }

/* Answer copy under an Elementor page (Servicing, Contact): the page's own width, then a column */
.smp-after-content { padding: 40px 20px 8px; }
.smp-after-inner { max-width: 780px; margin: 0 auto; }
@media (min-width: 922px) { .smp-after-content { padding: 56px 50px 16px; } .smp-after-inner { margin: 0 auto 0 max(0px, calc((100% - 1180px) / 2)); } }
/* The old hero headings are now the page's H1: keep their look */
.elementor-widget-heading h1.elementor-heading-title { margin: 0; text-transform: none !important; }
