/* Connect Chemicals – base layer. Tokens live in theme.json. */
/* Self-hosted fonts (SIL OFL 1.1) in /wp-content/fonts/ (the WordPress default font folder).
   Browsers only download a font when text on the page uses it, so Playfair loads on cosmetics pages only. */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("/wp-content/fonts/jost-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("/wp-content/fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap;
	src: url("/wp-content/fonts/playfair-display-latin-wght-italic.woff2") format("woff2"); }

:root { --cc-header-h: var(--wp--custom--header-height, 84px); }

/* HubSpot inquiry form: white card, readable on dark sections; reserved height avoids layout shift while it loads. */
.cc-inquiry { background: #fff; color: var(--wp--preset--color--black); border-radius: 12px; padding: clamp(20px, 3vw, 32px); }
.cc-inquiry__context { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--wp--preset--color--hairline); }
.cc-inquiry .hs-form-frame { min-height: 560px; }
/* In content sections (contact page) the form gets a comfortable reading width, left-aligned with the heading above it. Product pages keep their column layout. */
.cc-pg > .cc-inquiry { max-width: 760px !important; margin-left: max(0px, calc((100% - 1360px) / 2)) !important; margin-right: auto !important; }

/* Light button (on dark sections) – defined here so it works on every page type, incl. product pages. */
.cc-btn--light { background: #fff; color: var(--wp--preset--color--yale-blue); border-color: #fff; }
.cc-btn--light:hover { background: var(--wp--preset--color--sky-tint); color: var(--wp--preset--color--yale-blue); }

/* Industry pages › application chips: linked chips are clickable across the whole pill; unmatched chips are plain outline tags. */
.cc-ind-chips li { position: relative; transition: background-color .15s ease, color .15s ease; }
.cc-ind-chips a { color: inherit; text-decoration: none; }
.cc-ind-chips a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cc-ind-chips li:has(a):hover { background: var(--wp--preset--color--bright-sky); color: #fff; }
.cc-ind-chips li:has(a:focus-visible) { outline: 2px solid var(--wp--preset--color--yale-blue); outline-offset: 2px; }
.cc-ind-chips a:focus-visible { outline: none; }
.cc-ind-chips li.is-plain { background: transparent; box-shadow: inset 0 0 0 1px var(--wp--preset--color--hairline); }

/* Header dropdown (Company): desktop only; the mobile overlay keeps core's expanded list. */
.cc-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { min-width: 220px !important; padding: 8px 0 !important; background: #fff !important; border: 1px solid var(--wp--preset--color--hairline) !important; border-radius: 12px; box-shadow: 0 12px 32px rgba(8, 64, 103, .12); }
.cc-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 20px !important; }
.cc-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--sky-tint); }
/* Industries dropdown: two columns, alphabetical top-to-bottom; "All industries" spans the top; opens left-aligned under "Industries". */
.cc-header .wp-block-navigation__responsive-container:not(.is-menu-open) .cc-nav-industries > .wp-block-navigation__submenu-container { display: grid !important; grid-template-columns: repeat(2, minmax(240px, 1fr)); grid-template-rows: repeat(9, auto); grid-auto-flow: column; left: 0 !important; right: auto !important; }
.cc-header .wp-block-navigation__responsive-container:not(.is-menu-open) .cc-nav-industries .cc-nav-all { grid-column: 1 / -1; grid-row: 1; border-bottom: 1px solid var(--wp--preset--color--hairline); margin-bottom: 4px; font-weight: 500; }

/* Invisible bridge between the menu item and the box, so the pointer never crosses an empty gap. */
.cc-header .wp-block-navigation__responsive-container:not(.is-menu-open) .has-child > .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
html { scroll-padding-top: calc(var(--cc-header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Focus: visible on every interactive element (WCAG 2.2 AA) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--yale-blue);
	outline-offset: 3px;
	border-radius: 4px;
}
.cc-on-dark :where(a, button):focus-visible { outline-color: var(--wp--preset--color--bright-sky); }

/* Skip link */
.cc-skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 20px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--yale-blue); color: #fff; font-weight: 500; text-decoration: none; }
.cc-skip-link:focus { top: 12px; }

/* Header (the template-part wrapper <header> is the sticky element) */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.wp-site-blocks > * + * { margin-block-start: 0; }
.cc-header { background: #fff; border-bottom: 1px solid var(--wp--preset--color--hairline); }
.cc-header__inner { min-height: var(--cc-header-h); }
.cc-header__logo img { display: block; height: 48px; width: auto; }
.cc-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--black); }
.cc-header .wp-block-navigation a:hover { color: var(--wp--preset--color--yale-blue); }
.cc-header .wp-block-navigation__container { gap: 32px; }
.cc-header .wp-block-search__button { min-width: 44px; min-height: 44px; border-radius: var(--wp--custom--radius--pill); background: transparent; color: var(--wp--preset--color--yale-blue); padding: 10px; }
.cc-header .wp-block-search__button:hover { background: var(--wp--preset--color--sky-tint); }
.cc-header .wp-block-search__input { border-radius: var(--wp--custom--radius--pill); border: 1.5px solid var(--wp--preset--color--grey); min-height: 44px; padding: 0 16px; font: inherit; }
@media (max-width: 781px) {
	.cc-header__logo img { height: 40px; }
	.cc-header__inner { min-height: 68px; }
}

/* Footer */
.cc-footer { font-size: var(--wp--preset--font-size--base); line-height: 26px; }
.cc-footer a { color: #fff; text-decoration: none; }
.cc-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cc-footer__label { color: var(--wp--preset--color--bright-sky); font-weight: 500; margin: 0; }
.cc-footer__muted { color: rgba(255,255,255,0.8); }
.cc-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cc-footer__bottom { border-top: 1px solid rgba(255,255,255,0.18); font-size: var(--wp--preset--font-size--small); color: rgba(255,255,255,0.8); }

/* Components */
.cc-eyebrow { font-size: var(--wp--preset--font-size--small); line-height: 20px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--bright-sky); }
.cc-lead { font-size: var(--wp--preset--font-size--lead); line-height: 30px; color: var(--wp--preset--color--text-muted); max-width: var(--wp--custom--measure); }
.cc-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--wp--custom--radius--pill); background: var(--wp--preset--color--sky-tint); color: var(--wp--preset--color--yale-blue); font-size: var(--wp--preset--font-size--small); font-weight: 500; }
.cc-card { background: #fff; border: 1px solid var(--wp--preset--color--hairline); border-radius: var(--wp--custom--radius--card); }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid var(--wp--preset--color--yale-blue); color: var(--wp--preset--color--yale-blue); background: transparent; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--sky-tint); }
.cc-accent { font-family: var(--wp--preset--font-family--playfair); font-style: italic; text-transform: none; font-weight: 500; }

/* Tables (spec tables) */
.wp-block-table table, .cc-table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .cc-table th { text-align: left; font-weight: 500; background: var(--wp--preset--color--sky-tint); color: var(--wp--preset--color--yale-blue); }
.wp-block-table th, .wp-block-table td, .cc-table th, .cc-table td { padding: 14px 16px; border-bottom: 1px solid var(--wp--preset--color--hairline); vertical-align: top; }
.cc-table-wrap { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Live search suggestions (SearchWP Live Ajax Search) */
.searchwp-live-search-results { background: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 16px 40px rgba(2,38,61,.18) !important; overflow: hidden; max-height: min(70vh, 520px) !important; overflow-y: auto; z-index: 1001 !important; min-width: 300px; font-family: var(--wp--preset--font-family--jost); }
.searchwp-live-search-results-showing { margin-top: 6px; }
.cc-ls a { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; text-decoration: none; border-bottom: 1px solid var(--wp--preset--color--hairline); }
.cc-ls a:hover, .cc-ls[aria-selected="true"] a, .searchwp-live-search-result--focused a { background: var(--wp--preset--color--sky-tint); }
.cc-ls__title { font-size: 16px; font-weight: 500; color: var(--wp--preset--color--yale-blue); }
.cc-ls__meta { font-size: 14px; color: var(--wp--preset--color--text-muted); }
.cc-ls--all a { font-size: 15px; font-weight: 500; color: var(--wp--preset--color--yale-blue); border-bottom: 0; }
.cc-ls--none p { margin: 0; padding: 14px 18px; font-size: 15px; color: var(--wp--preset--color--black); }
.searchwp-live-search-result p { margin: 0; }
