/*
 * Partner landing pages (Oxygen): the site's look over the existing content. CSS only, so every text stays
 * exactly as approved. Oxygen styles each element by id, hence the !important on the properties we re-skin.
 * Section and card ids measured on 2026-11-28; if a page is rebuilt in Oxygen, re-check its ids here.
 * Active on: body.si-partner (see SI_PARTNER_PAGES in includes/templates.php).
 */

body.si-partner { background: var(--paper); }
body.si-partner .ct-inner-content { font-family: var(--text); color: var(--ink); -webkit-font-smoothing: antialiased; }

/* Align the content with the header and footer: same max width and side gutter. */
body.si-partner .ct-inner-content .ct-section-inner-wrap { max-width: var(--wrap) !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
body.si-partner.si-partner--overfibers-over-post .ct-inner-content .ct-section-inner-wrap { max-width: 1040px !important; }
body.si-partner .ct-inner-content > .ct-section + .ct-section { border-top: 1px solid var(--line); }

/* Type: Work Sans, brand green, the site's scale. */
body.si-partner .ct-inner-content :is(h1, h2, h3, h4, h5, h6, .ct-headline) {
	font-family: var(--display) !important; font-weight: 600 !important; letter-spacing: -0.02em !important;
	line-height: 1.15 !important; color: var(--green) !important; text-wrap: balance;
}
body.si-partner .ct-inner-content h1 { font-size: clamp(40px, 4.6vw, 64px) !important; letter-spacing: -0.03em !important; line-height: 1.02 !important; }
body.si-partner .ct-inner-content h2 { font-size: clamp(28px, 3vw, 40px) !important; }
body.si-partner .ct-inner-content h3 { font-size: clamp(20px, 1.7vw, 24px) !important; }
body.si-partner .ct-inner-content :is(h4, h5, h6) { font-size: 19px !important; letter-spacing: -0.01em !important; }
body.si-partner .ct-inner-content :is(.ct-text-block, .oxy-rich-text, p, li) { font-family: var(--text) !important; color: var(--ink) !important; line-height: 1.65; }
body.si-partner .ct-inner-content :is(.ct-text-block, .oxy-rich-text) b,
body.si-partner .ct-inner-content :is(.ct-text-block, .oxy-rich-text) strong { font-weight: 600; color: var(--green); }
body.si-partner .ct-inner-content a:not(.ct-link-button):not(.ct-link) { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.si-partner .ct-inner-content .ct-span { font-family: inherit !important; }

/* Buttons: the site's solid green button. */
body.si-partner .ct-inner-content .ct-link-button {
	display: inline-flex !important; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px !important;
	background: var(--green) !important; color: var(--paper) !important; border: 1px solid var(--green) !important;
	border-radius: var(--radius) !important; font: 600 15px/1 var(--text) !important; letter-spacing: 0 !important;
	text-transform: none !important; text-decoration: none !important; box-shadow: none !important; transition: background .2s, color .2s;
}
body.si-partner .ct-inner-content .ct-link-button:hover { background: var(--green-2) !important; }

/* Cards: white, hairline border, the site's lift on hover. */
body.si-partner :is(#div_block-13-0, #div_block-16-0, #div_block-19-0, #div_block-29-0, #div_block-34-0, #div_block-40-0, #div_block-45-0, #div_block-59-0, #div_block-65-0,
	#div_block-59-12114, #div_block-66-12114, #div_block-70-12114, #div_block-74-12114, #div_block-103-12114, #div_block-111-12114, #div_block-117-12114) {
	background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--radius) !important; box-shadow: none !important;
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
body.si-partner :is(#div_block-13-0, #div_block-16-0, #div_block-19-0, #div_block-29-0, #div_block-34-0, #div_block-40-0, #div_block-45-0, #div_block-59-0, #div_block-65-0,
	#div_block-59-12114, #div_block-66-12114, #div_block-70-12114, #div_block-74-12114, #div_block-103-12114, #div_block-111-12114, #div_block-117-12114):hover {
	transform: translateY(-4px); border-color: var(--line-strong) !important; box-shadow: 0 22px 40px -24px rgb(1 55 51 / .4) !important;
}

/* Grey bands become the site's warm paper tone. */
body.si-partner :is(#section-9-0, #section-49-0, #section-9-13049, #section-15-13099, #section-62-13099, #section-53-12114, #treatment) { background-color: var(--paper-2) !important; }

/* Coloured and dark bands become brand green (or the site's green-black behind photos and video). */
body.si-partner :is(#section-71-0, #section-32-12114, #section-129-12114) { background-color: var(--green) !important; }
body.si-partner :is(#section-24-6410, #section-32-6410, #section-46-6410, #section-65-6410, #section-75-6410, #section-85-6410) { background-color: #0d1716 !important; }
body.si-partner :is(#section-71-0, #section-32-12114, #section-129-12114, #section-10-12114, #section-2-6410, #section-24-6410, #section-32-6410, #section-46-6410, #section-65-6410, #section-75-6410, #section-85-6410)
	:is(h1, h2, h3, h4, h5, h6, .ct-headline, .ct-text-block, .oxy-rich-text, p, li, b, strong) { color: var(--paper) !important; }
body.si-partner :is(#section-71-0, #section-32-12114, #section-129-12114, #section-10-12114, #section-2-6410) .ct-link-button { background: var(--paper) !important; color: var(--green) !important; border-color: var(--paper) !important; }
body.si-partner :is(#section-71-0, #section-32-12114, #section-129-12114, #section-10-12114, #section-2-6410) .ct-link-button:hover { background: #fff !important; }
body.si-partner :is(#section-71-0, #section-32-12114, #section-129-12114, #section-10-12114, #section-2-6410, #section-24-6410, #section-32-6410, #section-46-6410, #section-65-6410, #section-75-6410, #section-85-6410) { border-top: 0 !important; }

/* Video placeholders (consent click-to-load) in brand green instead of blue. */
body.si-partner .si-embed { background: var(--green); border-radius: var(--radius); }
body.si-partner .si-embed__btn { color: var(--green); }

/* Images: the site's 2px corners. */
body.si-partner .ct-inner-content .ct-image { border-radius: var(--radius); }

/* Product photos shot on white: let the white melt into the paper background (no white boxes). */
body.si-partner .ct-inner-content .ct-image { mix-blend-mode: multiply; }
body.si-partner :is(#section-71-0, #section-32-12114, #section-129-12114, #section-10-12114, #section-2-6410, #section-24-6410, #section-32-6410, #section-46-6410, #section-65-6410, #section-75-6410, #section-85-6410) .ct-image { mix-blend-mode: normal; }

/* E-Style: the hero subtitle stays a subtitle; the three blue chips take the site's soft green; the video band goes green-black. */
body.si-partner #headline-12-12114 { font-size: clamp(18px, 1.6vw, 22px) !important; font-weight: 400 !important; letter-spacing: 0 !important; line-height: 1.45 !important; max-width: 46ch; color: rgb(250 250 247 / .86) !important; }
body.si-partner :is(#text_block-21-12114, #text_block-23-12114, #text_block-24-12114) { background: var(--green-soft) !important; color: var(--green) !important; border-radius: var(--radius) !important; font-weight: 600 !important; }
body.si-partner #section-32-12114 { background-color: #0d1716 !important; }
body.si-partner .ct-inner-content .si-embed__note :is(a, button) { color: var(--paper) !important; }

/* Wrappers painted white in Oxygen go transparent, so photos sit on the page tone; the cards above stay white (ids win). */
body.si-partner .ct-inner-content .ct-div-block { background-color: transparent !important; }

/* Fixed-width text blocks (600–640px in Oxygen) were cut off on phones: never wider than their column. */
body.si-partner .ct-inner-content :is(.ct-text-block, .ct-headline, .oxy-rich-text, .ct-div-block, .ct-image) { max-width: 100%; }
@media (max-width: 760px) {
	body.si-partner .ct-inner-content :is(.ct-text-block, .ct-headline, .oxy-rich-text) { width: auto !important; max-width: 100% !important; }
}

/* Deppeler, "Recommended sequences": the two diagram rows were wider than a phone (labels cut, also on the old page). */
@media (max-width: 760px) {
	body.si-partner :is(#div_block-334-12404, #div_block-379-12404) { flex-wrap: wrap !important; justify-content: center !important; gap: 10px 16px !important; }
	body.si-partner :is(#div_block-334-12404, #div_block-379-12404) > * { margin-left: 0 !important; margin-right: 0 !important; min-width: 0 !important; }
	body.si-partner :is(#text_block-336-12404, #text_block-380-12404) { flex-basis: 100% !important; text-align: center !important; }
}
