/* Modules: table_section, boxes_section, product_cta_section, faq_section. Loaded on all singular views and archives. */

/* Post cards (templates/article-wrap.php): always the 640 x 410 card format, also when the
   featured image is too small for WordPress to crop to that size. */
.article_image_holder .articleNfo img {aspect-ratio: 640 / 410; object-fit: cover;}

.sectionHeadline {scroll-margin-top: 130px;}
.moduleLabel {font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px;}

/* Table */
.tableScroll {overflow-x: auto; border: 1px solid #e2e2e2; border-radius: 8px;}
.tableScroll:focus-visible {outline: 2px solid var(--blue); outline-offset: 2px;}
.blogTable {width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.4em;}
.blogTable th, .blogTable td {padding: 14px 20px; text-align: left; vertical-align: middle;}
.blogTable thead th {background: var(--DarkGrey); color: var(--white); font-weight: bold;}
.blogTable tbody tr {background: var(--white);}
.blogTable tbody tr:nth-child(even) {background: #f7f7f7;}
.blogTable tbody tr + tr th, .blogTable tbody tr + tr td {border-top: 1px solid #e2e2e2;}
.blogTable tbody th {font-weight: bold;}
.blogTable .cellSub {display: block; font-weight: 300; font-size: 14px;}
.blogTable td.isHighlight {color: var(--red); font-weight: bold;}
.tableNote {margin-top: 14px; font-size: 15px; color: var(--grey);}

/* Boxes */
.boxesGrid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;}
.blogBox {padding: 30px; border-radius: 8px;}
.boxTitle {font-size: 16px; font-weight: bold; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 18px;}
.boxText {font-size: 16px;}
.boxText p {margin-bottom: 14px;}
.boxText ul, .boxText ol {padding-left: 18px; margin-bottom: 14px;}
.boxText ul li {list-style: disc;}
.boxText ol li {list-style: decimal;}
.boxText li {margin-bottom: 4px;}
.boxText > :last-child {margin-bottom: 0;}
.boxImages {display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px;}
.boxText + .boxImages, .boxTitle + .boxImages {margin-top: 20px;}
.boxImages figure {margin: 0;}
.boxImages img {display: block; width: 100%; height: auto; border-radius: 4px;}
.boxImages figcaption {margin-top: 10px; font-size: 13px; font-weight: bold; line-height: 1.3em; text-align: center;}

/* One image per box: widths follow the images' aspect ratios, so the images share one height. */
.equalImageHeight .boxesGrid {display: flex; align-items: flex-start;}
.equalImageHeight .blogBox {flex: var(--ratio, 1) 1 0; min-width: 0;}
.equalImageHeight .boxImages {display: block;}

.bgLight .blogBox {background: #f7f7f7; border: 1px solid #e2e2e2;}
.bgDark .blogBox {background: var(--DarkGrey); color: var(--white);}
.bgTransparent .blogBox {padding: 0; background: none;}
.bgTransparent .boxTitle {text-transform: none; letter-spacing: 0; margin-bottom: 4px;}
.bgTransparent .boxText {color: var(--grey);}

.noGap .boxesGrid {gap: 0;}
.noGap .blogBox {border-radius: 0;}
.noGap .blogBox:first-child {border-radius: 8px 0 0 8px;}
.noGap .blogBox:nth-child(2) {border-radius: 0 8px 8px 0;}
.bgLight.noGap .blogBox:nth-child(even) {border-left: 0;}
.bgDark.noGap .blogBox:nth-child(even) {border-left: 1px solid rgba(255, 255, 255, .15);}

.alignCenter .sectionHeadline, .alignCenter .blogBox {text-align: center;}
.alignCenter .boxText ul, .alignCenter .boxText ol {padding-left: 0;}
.alignCenter .boxText li {list-style-position: inside;}

/* FAQ */
.faqList {padding: 90px 0 60px; background: #f4f4f4;}
.faqList .content {max-width: 1366px;}
.faqList .sectionHeadline {font-size: 32px; line-height: 1.15em; scroll-margin-top: 130px;}
.faqList .sectionHeadline, .faqIntro {max-width: 860px;}
.faqIntro {margin-bottom: 20px;}
.faqItems {max-width: 1000px;}
.faqItem {border-bottom: 1px solid #d6d6d6;}
.faqQuestion {margin: 0; font-size: 17px;}
.faqQuestion button {display: flex; justify-content: space-between; align-items: center; gap: 30px; width: 100%; padding: 24px 0; border: 0; background: none; font-size: 17px; font-weight: bold; line-height: 1.4em; text-align: left; color: var(--black); cursor: pointer;}
.faqQuestion button:hover span[itemprop] {color: var(--red);}
.faqQuestion button:focus-visible {outline: 2px solid var(--blue); outline-offset: 4px;}
.faqIcon {position: relative; flex-shrink: 0; width: 18px; height: 18px;}
.faqIcon::before, .faqIcon::after {content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 3px; margin-top: -1.5px; background: var(--red); transition: transform .2s ease;}
.faqIcon::after {transform: rotate(90deg);}
[aria-expanded="true"] .faqIcon::after {transform: rotate(0deg);}
.faqAnswer {max-width: 760px; padding-bottom: 24px; font-size: 16px;}
.faqAnswer p {margin-bottom: 12px;}

/* Callout box (NEW Callout box). Accent colour per type, from the site palette only. */
.calloutBox {--accent: var(--blue); --tint: rgba(56, 124, 137, .08); --icon: var(--white); display: flex; gap: 22px; margin: 0; padding: 28px 30px; background: var(--tint); border: 1px solid rgba(0, 0, 0, .06); border-left: 5px solid var(--accent); border-radius: 8px;}
/* Box colours: safety/health #a52829 (--red), economic #F3A700 (--yellow), sustainability #387c89 (--blue). */
.calloutSafety {--accent: var(--red); --tint: rgba(165, 40, 41, .07);}
.calloutEconomic {--accent: var(--yellow); --tint: rgba(243, 167, 0, .1); --icon: var(--black);}
.calloutSustainability {--accent: var(--blue); --tint: rgba(56, 124, 137, .1);}
.calloutStudy {--accent: var(--grey); --tint: #f4f4f4;}
.calloutQuote {--accent: var(--red); --tint: #f7f7f7;}
.calloutIcon {display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--icon); font-size: 20px;}
.calloutBody {min-width: 0; flex: 1;}
.calloutTitle {font-size: 19px; font-weight: bold; line-height: 1.3em; margin: 8px 0 12px;}
.calloutText {font-size: 16px;}
.calloutText p {margin-bottom: 12px;}
.calloutText ul, .calloutText ol {padding-left: 18px; margin-bottom: 12px;}
.calloutText ul li {list-style: disc;}
.calloutText ol li {list-style: decimal;}
.calloutText li {margin-bottom: 6px;}
.calloutText > :last-child, .calloutText li:last-child {margin-bottom: 0;}
.calloutQuote .calloutIcon {background: none; color: var(--accent); font-size: 26px; width: 30px; height: 30px; margin-top: 4px;}
.calloutQuote blockquote {margin: 0; font-size: 18px; font-style: italic; line-height: 1.55em;}
.calloutQuote blockquote p {margin-bottom: 10px;}
.calloutQuote figcaption {margin-top: 14px; font-size: 15px; font-weight: bold; color: var(--grey);}

/* Product CTA */
.productCtaSection {padding: 60px 0;}
.productCtaBox {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; background: var(--DarkGrey); color: var(--white); border-radius: 10px; overflow: hidden;}
.productCtaBox.noImage {grid-template-columns: minmax(0, 1fr);}
.productCtaText {padding: 60px 0 60px 50px;}
.noImage .productCtaText {padding-right: 50px;}
.productCtaText .sectionHeadline {font-size: 32px; line-height: 1.15em; margin-bottom: 20px; max-width: 420px;}
.productCtaDsc {max-width: 440px;}
.productCtaDsc p {font-size: 17px; margin-bottom: 14px;}
.productCtaButtons {display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px;}
.productCtaImg {align-self: center; padding: 40px 40px 40px 0;}
.productCtaImg img {display: block; width: 100%; max-height: 380px; height: auto; object-fit: contain; object-position: center;}

@media screen and (max-width: 767px) {
	.equalImageHeight .boxesGrid {flex-direction: column; align-items: stretch;}
	.faqList {padding: 60px 0 40px;}
	.faqList .sectionHeadline {font-size: 26px;}
	.faqQuestion button {gap: 16px;}
	.boxesGrid {grid-template-columns: minmax(0, 1fr);}
	.blogBox {padding: 24px;}
	.bgTransparent .blogBox {padding: 0;}
	.noGap .blogBox:first-child {border-radius: 8px 8px 0 0;}
	.noGap .blogBox:nth-child(2) {border-radius: 0;}
	.noGap .blogBox:last-child {border-radius: 0 0 8px 8px;}
	.bgLight.noGap .blogBox:nth-child(even) {border-left: 1px solid #e2e2e2; border-top: 0;}
	.bgDark.noGap .blogBox:nth-child(even) {border-left: 0; border-top: 1px solid rgba(255, 255, 255, .15);}

	.calloutBox {gap: 16px; padding: 22px 20px;}
	.calloutIcon {width: 38px; height: 38px; font-size: 17px;}
	.productCtaBox {grid-template-columns: minmax(0, 1fr); gap: 0;}
	.productCtaText {padding: 40px 24px 10px;}
	.productCtaText .sectionHeadline {font-size: 26px;}
	.productCtaButtons .cta {width: 100%; min-width: 0;}
	.productCtaImg {padding: 0 24px 30px;}
}
