/**
 * Knowledge base styles (BasePress + James's KB snippets)
 * ---------------------------------------------------------------------------
 * Loaded on knowledge base pages only (see functions.php, "Knowledge base CSS").
 *
 * This replaces the <style> blocks that used to live inside these WPCode snippets:
 *   57079 KB Popular Topics Section
 *   74803 KB Phase 1 - switch, styles and behaviour   (body class ws-kb-p1)
 *   74811 KB Tier 2 - hub, rail and search            (body class ws-kb-t2)
 *   75742 KB Tier 2b - search filters, section pages  (body class ws-kb-t2b)
 * It also replaces two WPCode CSS snippets, now deactivated:
 *   57131 BasePress KB Search Result Category Tag Styling
 *   57221 BasePress KB Article Ordered List Styling
 * The PHP snippets still build the markup and run the JS. Each block below is scoped to
 * its snippet's body class, so switching a snippet off also switches its styles off.
 *
 * Rules: Workshop Software Design System. Colours and type come from the Elementor kit
 * globals only. No hex values outside the token list below, no black or near-black
 * text, no pill badges, no uppercase labels, radii 10/12/20/24, shadows elevation 1-2.
 */

/* Tokens (this file only loads on KB pages, so body is safe) -------------- */
body {
	--kb-teal: var(--e-global-color-primary, #0F8887);       /* WS Green 1: headings, large text, fills */
	--kb-teal-text: var(--e-global-color-secondary, #057883); /* WS Green 2: small teal text, hover */
	--kb-text: var(--e-global-color-text, #657574);           /* Grey 1: body text */
	--kb-border: var(--e-global-color-5bd1878, #CACFCE);      /* Grey 3: default border */
	--kb-hairline: var(--e-global-color-559abd7, #E0E0E0);    /* Grey 4: hairlines */
	--kb-panel: var(--e-global-color-f631230, #F4F4F4);       /* Grey 6: card on white */
	--kb-tint: var(--e-global-color-f1318e9, #E7F3F3);        /* Lightest Teal: current item */
	--kb-tint-2: var(--e-global-color-94c9e55, #CFE8E8);      /* Light Teal: search highlight */
	--kb-white: var(--e-global-color-a00b6f5, #FFFFFF);
	--kb-band: var(--e-global-color-fa85405, #F7F7F7);       /* Grey 7: KB header band (BasePress header colour) */
	--kb-radius-sm: 10px;
	--kb-radius: 12px;
	--kb-radius-pill: 24px;
	--kb-shadow-hover: 0 4px 16px 0 rgba(0, 0, 0, .1);        /* shadow-elevation-2 */
}

/* =========================================================================
   BasePress base: the "modern" theme sets #2c3e50 (not a brand colour) on
   all text. Bring text, headings and links back to the brand palette.
   Also replaces WPCode CSS snippets 57131 (search tag) and 57221 (lists).
   ========================================================================= */
.bpress-wrap { color: var(--kb-text); }
.bpress-wrap h1,
.bpress-wrap h2,
.bpress-wrap h3,
.bpress-wrap h4,
.bpress-wrap h5,
.bpress-wrap h6 { color: var(--kb-teal); }
.bpress-wrap strong,
.bpress-wrap b { color: inherit; }
/* The Elementor kit gives every h1 -2px letter-spacing (sized for its 60px H1). BasePress's
   h1s are 29-36px, so that crushes them. Use spacing that scales with the size instead. */
.bpress-wrap h1 { letter-spacing: -0.02em; }
.bpress-wrap :is(h2, h3, h4) { letter-spacing: -0.01em; }

/* Article */
.bpress-post-header h1 { color: var(--kb-teal); line-height: 1.1 !important; }
.bpress-article-content { color: var(--kb-text); }
.bpress-article-content a { color: var(--kb-teal-text); text-decoration: underline; }
.bpress-article-content a:hover { color: var(--kb-teal); }
.bpress-article-content ol { list-style-type: decimal; padding-left: 2em; margin-bottom: 1em; }
.bpress-article-content ol li { list-style-type: decimal; margin-bottom: .4em; }
.bpress-article-content ol ol { list-style-type: lower-alpha; }
.bpress-article-content ul { list-style-type: disc; padding-left: 2em; margin-bottom: 1em; }
.bpress-article-content ul li { list-style-type: disc; margin-bottom: .4em; }

/* Section page: heading, description, article list */
/* Section title. BasePress forces `.bpress-heading h1 { color: inherit !important }`, so colour the wrapper */
.bpress-main .bpress-heading.show-icon:has(> h1) { color: var(--kb-teal); }
.bpress-main .bpress-heading > h1 { margin-bottom: 8px; font-size: 32px; line-height: 1.15; }
.bpress-heading .bpress-heading-icon { color: var(--kb-teal); }
/* BasePress forces `.bpress-heading a { color: inherit !important }`, so colour the parent */
.bpress-post-link .bpress-heading { color: var(--kb-teal-text); }
.bpress-post-link .bpress-heading h3 a,
.bpress-section-list a { color: var(--kb-teal-text); }
.bpress-post-link .bpress-heading h3 a:hover,
.bpress-section-list a:hover { color: var(--kb-teal); }
.bpress-post-link .bpress-heading-icon { color: var(--kb-text); }
/* Section page article list: roomier rows with a hairline between them */
body.ws-kb-p1.ws-kb-section .bpress-post-link.single-section {
	margin: 0;
	padding: 14px 4px;
	border-bottom: 1px solid var(--kb-hairline);
}
body.ws-kb-p1.ws-kb-section .bpress-post-link.single-section:hover { background: none; }
body.ws-kb-p1.ws-kb-section .bpress-post-link.single-section h3 { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.45; }

/* Search result section tag: plain teal text link (was a filled teal box) */
.bpress-wrap a.bpress-search-section,
.bpress-wrap a.bpress-search-section:hover {
	display: inline-block;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--kb-teal-text);
	text-decoration: none;
}
.bpress-wrap a.bpress-search-section:hover { text-decoration: underline; }

/* =========================================================================
   Phase 1 (snippet 74803): every KB page
   ========================================================================= */

/* Compact header on article, section and search pages */
body.ws-kb-p1:not(.ws-kb-hub) .bpress-page-header { padding: 18px 25px 20px; }
body.ws-kb-p1:not(.ws-kb-hub) .bpress-page-header header { display: none; }
body.ws-kb-p1:not(.ws-kb-hub) .bpress-searchbar-wrap { max-width: 640px; margin: 0 auto; }
body.ws-kb-p1.ws-kb-single .kb-free-trial-cta { display: none; }

/* Breadcrumb strip: same grey as the header band, split off by a hairline */
body.ws-kb-p1 .bpress-crumbs-wrap { background: var(--kb-band); border-top: 1px solid var(--kb-hairline); }
body.ws-kb-p1 .bpress-crumbs li,
body.ws-kb-p1 .bpress-crumbs li a { font-size: 14px; color: var(--kb-text); }
body.ws-kb-p1 .bpress-crumbs li a:hover { color: var(--kb-teal-text); }

/* Hub hero */
body.ws-kb-p1.ws-kb-hub .bpress-page-header { padding: 44px 25px 24px; }

/* Phone: heading never wider than the screen */
body.ws-kb-p1 .bpress-page-header h2 {
	font-size: clamp(28px, 7.5vw, 60px);
	line-height: 1.1;
	overflow-wrap: anywhere;
}

/* Hub: the area grid is the navigation, so the sidebar goes */
body.ws-kb-p1.ws-kb-hub .bpress-sidebar { display: none; }
body.ws-kb-p1.ws-kb-hub .bpress-content-area { width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }

/* Cap long accordion lists so the sidebar stops outrunning the article */
body.ws-kb-p1 .bpress-nav-section.open > ul { max-height: min(60vh, 720px); overflow-y: auto; }

/* Search results heading at text size */
body.ws-kb-p1.ws-kb-search .bpress-main > h1 {
	font-family: var(--e-global-typography-70ce99a-font-family), sans-serif;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.1;
	color: var(--kb-teal);
}
body.ws-kb-p1.ws-kb-search .kb-popular-topics { display: none; }

/* Meta row under the article title: section, updated, read time */
.ws-kb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 20px;
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--kb-text);
}
.ws-kb-meta .ws-kb-cat { color: var(--kb-teal-text); font-weight: 500; text-decoration: none; }
.ws-kb-meta .ws-kb-cat:hover { text-decoration: underline; }

/* Support link under the search box on articles */
.ws-kb-support { max-width: 640px; margin: 10px auto 0; text-align: center; font-size: 16px; color: var(--kb-text); }
.ws-kb-support a { color: var(--kb-teal-text); font-weight: 500; }

/* Table of contents */
body.ws-kb-p1 .bpress-toc {
	background: var(--kb-panel);
	border: 0;
	border-radius: var(--kb-radius);
	padding: 20px;
}
body.ws-kb-p1 .bpress-toc h2 {
	margin: 0 0 8px;
	font-family: var(--e-global-typography-1560167-font-family), sans-serif;
	font-size: var(--e-global-typography-1560167-font-size, 1rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--kb-teal);
}
body.ws-kb-p1 .bpress-toc li a {
	display: block;
	padding: 8px 10px;
	border-bottom: 0;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--kb-text);
}
body.ws-kb-p1 .bpress-toc li + li { margin-top: 2px; }
body.ws-kb-p1 .bpress-toc li a:hover { color: var(--kb-teal-text); background: none; }
/* Current heading: same treatment as the current article in the left rail */
body.ws-kb-p1 .bpress-toc li a.active,
body.ws-kb-p1 .bpress-toc li a.active:hover { background: var(--kb-white); color: var(--kb-teal-text); font-weight: 700; }
body.ws-kb-p1.bpress-sticky-toc .bpress-main article .bpress-article-content,
body.ws-kb-p1.bpress-sticky-toc .bpress-main article header { min-width: 0; }
body.ws-kb-p1 .bpress-article-content iframe,
body.ws-kb-p1 .bpress-article-content img { max-width: 100%; }

@media (max-width: 1279px) {
	body.ws-kb-p1 .bpress-toc h2 { cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
	body.ws-kb-p1 .bpress-toc h2::after { content: '\25BE'; font-size: 14px; color: var(--kb-teal); transition: transform .2s; }
	body.ws-kb-p1 .ws-kb-toc-collapsed .bpress-toc h2 { margin: 0; }
	body.ws-kb-p1 .ws-kb-toc-collapsed .bpress-toc h2::after { transform: rotate(-90deg); }
	body.ws-kb-p1 .ws-kb-toc-collapsed .bpress-toc-list { display: none; }
}

/* Votes, feedback, previous and next */
body.ws-kb-p1 .bpress-votes { border-top: 1px solid var(--kb-hairline); border-bottom: 1px solid var(--kb-hairline); padding: 24px 0; margin-top: 32px; }
body.ws-kb-p1 .bpress-votes-question { font-weight: 500; color: var(--kb-teal); }
body.ws-kb-p1 .bpress-feedback textarea { border: 1px solid var(--kb-border); border-radius: var(--kb-radius-sm); }
body.ws-kb-p1 .bpress-adjacent-post { background: var(--kb-panel); border-radius: var(--kb-radius); }
body.ws-kb-p1 .bpress-adjacent-post a { color: var(--kb-teal-text); }
body.ws-kb-p1 .bpress-adjacent-post h4,
body.ws-kb-p1 .bpress-adjacent-post h4 a { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }

/* Click to enlarge */
.bpress-article-content img.ws-kb-zoomable { cursor: zoom-in; }
.ws-kb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, .8);
	cursor: zoom-out;
}
.ws-kb-lightbox img { max-width: 100%; max-height: 100%; background: var(--kb-white); border-radius: var(--kb-radius); }

@media (max-width: 767px) {
	body.ws-kb-p1:not(.ws-kb-hub) .bpress-page-header { padding: 12px 16px 14px; }
	body.ws-kb-p1.ws-kb-hub .bpress-page-header { padding: 28px 16px 18px; }
}

/* =========================================================================
   Layout: site frame and columns (section, article and search pages)
   ========================================================================= */
@media (min-width: 1024px) {
	/* Same frame as the rest of the site: 1280px, 90% on smaller screens */
	.bpress-wrap .bpress-content-wrap { width: 90%; max-width: 1280px; }
	body.ws-kb-p1:not(.ws-kb-hub) .bpress-sidebar { width: 260px; }
	body.ws-kb-p1:not(.ws-kb-hub) .bpress-content-area { width: calc(100% - 260px); padding-left: 48px; box-sizing: border-box; }
	body.ws-kb-p1:not(.ws-kb-hub) .bpress-wrap > .bpress-content-wrap { padding-top: 16px; }
}
@media (min-width: 1280px) {
	/* Article column plus the "In this article" column */
	body.ws-kb-p1.bpress-sticky-toc.bpress-sticky-toc-right .bpress-main article { grid-template-columns: minmax(0, 1fr) 280px; }
	body.ws-kb-p1.bpress-sticky-toc.bpress-sticky-toc-right article .bpress-toc-wrap { margin-left: 48px; }
}

/* =========================================================================
   Article content (single article pages)
   ========================================================================= */
body.ws-kb-single .bpress-post-header h1 { margin-bottom: 12px; }
@media (max-width: 767px) {
	body.ws-kb-single .bpress-post-header h1 { font-size: 30px !important; }
	body.ws-kb-single .bpress-article-content { font-size: 17px; }
}
body.ws-kb-single .bpress-article-content { font-size: 18px; line-height: 1.7; color: var(--kb-text); }
body.ws-kb-single .bpress-article-content p { margin: 0 0 1em; }
body.ws-kb-single .bpress-article-content > :first-child { margin-top: 0; }

body.ws-kb-single .bpress-article-content h2 {
	margin: 56px 0 16px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.02rem;
	line-height: 1.2;
	color: var(--kb-teal);
}
body.ws-kb-single .bpress-article-content h3 {
	margin: 40px 0 12px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--kb-teal);
}
body.ws-kb-single .bpress-article-content h4 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--kb-teal); }
/* The "#" copy-link after each heading only shows on hover */
body.ws-kb-single .bpress-article-content .bpress-copy-link { opacity: 0; margin-left: 6px; font-size: .7em; color: var(--kb-text); transition: opacity .15s; }
body.ws-kb-single .bpress-article-content :is(h2, h3, h4):hover .bpress-copy-link,
body.ws-kb-single .bpress-article-content .bpress-copy-link:focus { opacity: 1; }

body.ws-kb-single .bpress-article-content strong { font-weight: 700; }
body.ws-kb-single .bpress-article-content li { margin-bottom: .75em; padding-left: 4px; }
body.ws-kb-single .bpress-article-content :is(ul, ol) { margin: 0 0 1.5em; }
body.ws-kb-single .bpress-article-content li::marker { color: var(--kb-teal); }
body.ws-kb-single .bpress-article-content mark { background: var(--kb-tint-2); color: inherit; padding: 0 2px; border-radius: 4px; }

/* Screenshots: framed, with breathing room */
body.ws-kb-single .bpress-article-content figure.wp-block-image { margin: 24px 0 32px; }
body.ws-kb-single .bpress-article-content figure.aligncenter { text-align: center; }
body.ws-kb-single .bpress-article-content img.ws-kb-zoomable {
	height: auto;
	border: 1px solid var(--kb-hairline);
	border-radius: var(--kb-radius);
	box-shadow: 2px 0 16px 0 rgba(0, 0, 0, .07); /* shadow-elevation-1 */
}

/* "Please Note" callout: the warning-icon image followed by its paragraph becomes one panel */
body.ws-kb-single .bpress-article-content figure.alignleft:has(img[src*="Warning"]) {
	float: left;
	position: relative;
	z-index: 1;
	width: 28px !important;
	margin: 22px 14px 0 20px !important;
}
body.ws-kb-single .bpress-article-content img[src*="Warning"] {
	width: 28px !important;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	pointer-events: none; /* not a screenshot: no click-to-enlarge */
}
body.ws-kb-single .bpress-article-content figure.alignleft:has(img[src*="Warning"]) + p {
	min-height: 72px;
	margin: 0 0 24px;
	padding: 20px 24px 20px 20px;
	border-radius: var(--kb-radius);
	background: var(--kb-tint);
	box-sizing: border-box;
}
body.ws-kb-single .bpress-article-content figure.alignleft:has(img[src*="Warning"]) + p::after { content: ''; display: table; clear: both; }

/* Rail on articles: just the current section. Breadcrumbs and "All help topics" cover the rest */
body.ws-kb-t2.ws-kb-single .ws-t2-rail-all { display: none; }
body.ws-kb-t2.ws-kb-single .ws-t2-rail-section { margin-bottom: 0; }
body.ws-kb-t2 .ws-t2-rail-section ul {
	max-height: calc(100vh - 260px);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
	padding: 8px 0 16px;
	scrollbar-width: thin;
}

/* =========================================================================
   Popular topics (snippet 57079): hub only, sits under the search box
   ========================================================================= */
.bpress-page-header:has(+ .kb-popular-topics) { padding-bottom: 20px !important; }
.kb-popular-topics { width: 100%; margin: 0; padding: 0 16px 32px; box-sizing: border-box; background: var(--kb-band); }
.kb-popular-topics-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.kb-popular-topics-inner h3 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--kb-text);
}
.kb-popular-topics-inner .topics-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.kb-popular-topics-inner .topic-link {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	border: 1px solid var(--kb-teal);
	border-radius: var(--kb-radius-pill);
	background: var(--kb-white);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--kb-teal-text);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, color .15s;
}
.kb-popular-topics-inner .topic-link:hover { background: var(--kb-teal); color: var(--kb-white); }
.kb-free-trial-cta { text-align: center; padding: 0 25px 40px; font-size: 18px; color: var(--kb-text); }
.kb-free-trial-cta a { color: var(--kb-teal-text); font-weight: 700; text-decoration: underline; }
.kb-free-trial-cta a:hover { color: var(--kb-teal); }
@media (max-width: 767px) {
	/* BasePress pads its wrapper 20px on phones: let the grey bands run edge to edge */
	.bpress-wrap .bpress-page-header,
	.bpress-wrap .kb-popular-topics,
	.bpress-wrap .bpress-crumbs-wrap { width: auto; margin-left: -20px; margin-right: -20px; }
	.bpress-wrap .bpress-crumbs-wrap { padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
	/* Topics become one swipeable row instead of a tall stack */
	.kb-popular-topics { padding: 0 0 24px; }
	.kb-popular-topics-inner .topics-grid {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 0 20px 4px;
	}
	.kb-popular-topics-inner .topics-grid::-webkit-scrollbar { display: none; }
}
/* Tier 2 hub keeps the plain chip row and drops the trial line */
body.ws-kb-t2.ws-kb-hub .kb-popular-topics .kb-free-trial-cta { display: none; }

/* =========================================================================
   Tier 2 (snippet 74811): hub, sidebar rail, search results
   ========================================================================= */

/* Shared bits: counts are plain numbers, the numbered circles go */
body.ws-kb-t2 .ws-t2-count { font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--kb-text); }
body.ws-kb-t2 .ws-t2-num { display: none; }
body.ws-kb-t2 .ws-t2-badge { font-size: 14px; font-weight: 400; line-height: 1.6; color: var(--kb-text); }
body.ws-kb-t2 .ws-t2-hub ul,
body.ws-kb-t2 .ws-t2-hub ol,
body.ws-kb-t2 .ws-t2-rail ul { list-style: none; margin: 0; padding: 0; }
body.ws-kb-t2 .ws-t2-hub li,
body.ws-kb-t2 .ws-t2-rail li { list-style: none; margin: 0; }
body.ws-kb-t2 .ws-t2-hub li::before,
body.ws-kb-t2 .ws-t2-rail li::before { content: none; }

/* Hub hero */
body.ws-kb-t2.ws-kb-hub .bpress-page-header { padding: 40px 25px 16px; }
body.ws-kb-t2.ws-kb-hub .bpress-page-header h1 {
	margin: 0 0 20px;
	font-size: clamp(32px, 4vw, var(--e-global-typography-4a276d9-font-size, 44px));
	font-weight: 700;
	letter-spacing: -0.04rem;
	line-height: 1;
}

/* Hub sections */
body.ws-kb-t2 .ws-t2-hub { padding-top: 24px; }
body.ws-kb-t2 .ws-t2-hub section { margin: 0 0 72px; }
body.ws-kb-t2 .ws-t2-hub h2 {
	margin: 0 0 24px;
	font-family: var(--e-global-typography-70ce99a-font-family), sans-serif;
	font-size: var(--e-global-typography-70ce99a-font-size, 2rem);
	font-weight: var(--e-global-typography-70ce99a-font-weight, 700);
	letter-spacing: var(--e-global-typography-70ce99a-letter-spacing, -0.04rem);
	line-height: 1;
	color: var(--kb-teal);
}
body.ws-kb-t2 .ws-t2-lede { margin: -12px 0 20px; color: var(--kb-text); }

/* I want to... : outlined link cards with a trailing arrow */
body.ws-kb-t2 .ws-t2-task-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.ws-kb-t2 .ws-t2-task-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 100%;
	min-height: 72px;
	box-sizing: border-box;
	padding: 16px 20px;
	border: 1px solid var(--kb-hairline);
	border-radius: var(--kb-radius);
	background: var(--kb-white);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--kb-teal-text);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
body.ws-kb-t2 .ws-t2-task-list a::after { content: '\2192'; flex: 0 0 auto; color: var(--kb-teal); }
body.ws-kb-t2 .ws-t2-task-list a:hover { border-color: var(--kb-teal); box-shadow: var(--kb-shadow-hover); }

/* Browse by area: grey cards. Three levels: area title, its article total, then section links */
body.ws-kb-t2 .ws-t2-area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
body.ws-kb-t2 .ws-t2-area { padding: 32px 28px 24px; border-radius: var(--kb-radius); background: var(--kb-panel); }
body.ws-kb-t2 .ws-t2-area h3 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--kb-border);
	font-family: var(--e-global-typography-1189165-font-family), sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02rem;
	line-height: 1.15;
	color: var(--kb-teal);
}
body.ws-kb-t2 .ws-t2-area h3 .ws-t2-count { font-size: 14px; font-weight: 400; letter-spacing: 0; }
body.ws-kb-t2 .ws-t2-area h3 .ws-t2-count-total::after { content: ' articles'; }
body.ws-kb-t2 .ws-t2-area li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; }
body.ws-kb-t2 .ws-t2-area li a { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--kb-teal-text); text-decoration: none; }
/* Line the title dividers up across a row, even when a title wraps to two lines */
@supports (grid-template-rows: subgrid) {
	body.ws-kb-t2 .ws-t2-area { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
	body.ws-kb-t2 .ws-t2-area h3 { justify-content: flex-start; }
}
body.ws-kb-t2 .ws-t2-area li a:hover { text-decoration: underline; }
body.ws-kb-t2 .ws-t2-area li .ws-t2-count { font-size: 14px; }

/* Most read: article cards, section above the title, arrow at the foot */
body.ws-kb-t2 .ws-t2-popular-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
body.ws-kb-t2 .ws-t2-popular-list li { display: flex; }
body.ws-kb-t2 .ws-t2-popular-list a {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	padding: 24px 24px 20px;
	border: 1px solid var(--kb-hairline);
	border-radius: var(--kb-radius);
	background: var(--kb-white);
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
body.ws-kb-t2 .ws-t2-popular-list .ws-t2-badge { order: -1; }
body.ws-kb-t2 .ws-t2-popular-title {
	flex: 1 1 auto;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.02rem;
	line-height: 1.25;
	color: var(--kb-teal);
}
body.ws-kb-t2 .ws-t2-popular-list a::after {
	content: 'Read guide \2192';
	margin-top: 8px;
	font-size: 16px;
	font-weight: 500;
	color: var(--kb-teal-text);
}
body.ws-kb-t2 .ws-t2-popular-list a:hover { border-color: var(--kb-teal); box-shadow: var(--kb-shadow-hover); }

/* Workshop guides */
body.ws-kb-t2 .ws-t2-guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
body.ws-kb-t2 .ws-t2-guide-list li { padding: 10px 0; border-bottom: 1px solid var(--kb-hairline); }
body.ws-kb-t2 .ws-t2-guide-list a { color: var(--kb-teal-text); text-decoration: none; }
body.ws-kb-t2 .ws-t2-guide-list a:hover { text-decoration: underline; }

/* Sidebar rail on article and section pages (hides the original accordion) */
body.ws-kb-t2 .bpress-sidebar .hide-scrollbars > :not(.ws-t2-rail) { display: none; }
body.ws-kb-t2 .ws-t2-rail { font-size: 15px; }
body.ws-kb-t2 .ws-t2-rail h3 {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--kb-teal);
}
body.ws-kb-t2 .ws-t2-rail h3 a { color: var(--kb-teal); text-decoration: none; }
body.ws-kb-t2 .ws-t2-rail-section { margin-bottom: 24px; padding: 16px 12px 12px; border-radius: var(--kb-radius); background: var(--kb-panel); }
body.ws-kb-t2 .ws-t2-rail-section h3 { padding: 0 8px; }
body.ws-kb-t2 .ws-t2-rail-section ul { max-height: min(55vh, 640px); overflow-y: auto; }
body.ws-kb-t2 .ws-t2-rail-section li + li { margin-top: 4px; }
body.ws-kb-t2 .ws-t2-rail-section li a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--kb-text);
	text-decoration: none;
}
body.ws-kb-t2 .ws-t2-rail-section li a:hover { color: var(--kb-teal-text); }
body.ws-kb-t2 .ws-t2-rail-section li.is-current a {
	background: var(--kb-white);
	color: var(--kb-teal-text);
	font-weight: 500;
}
body.ws-kb-t2 .ws-t2-rail-all { padding: 0 4px; }
body.ws-kb-t2 .ws-t2-rail-all details { border-top: 1px solid var(--kb-hairline); }
body.ws-kb-t2 .ws-t2-rail-all summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 4px;
	list-style: none;
	cursor: pointer;
	font-weight: 500;
	color: var(--kb-text);
}
body.ws-kb-t2 .ws-t2-rail-all summary::-webkit-details-marker { display: none; }
body.ws-kb-t2 .ws-t2-rail-all summary::after { content: '\25BE'; font-size: 13px; color: var(--kb-teal); transition: transform .2s; }
body.ws-kb-t2 .ws-t2-rail-all details:not([open]) summary::after { transform: rotate(-90deg); }
body.ws-kb-t2 .ws-t2-rail-all ul { padding: 0 4px 8px; }
body.ws-kb-t2 .ws-t2-rail-all li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 6px; border-radius: 8px; }
body.ws-kb-t2 .ws-t2-rail-all li a { color: var(--kb-teal-text); text-decoration: none; }
body.ws-kb-t2 .ws-t2-rail-all li a:hover { text-decoration: underline; }
body.ws-kb-t2 .ws-t2-rail-all li.is-current { background: var(--kb-tint); }
body.ws-kb-t2 .ws-t2-rail-all li.is-current a { font-weight: 500; }
body.ws-kb-t2 .ws-t2-rail-hub { display: block; margin: 16px 4px 0; font-weight: 500; color: var(--kb-teal-text); text-decoration: none; }
body.ws-kb-t2 .ws-t2-rail-hub::after { content: ' \2192'; }

/* Search results as outlined cards */
body.ws-kb-t2.ws-kb-search .bpress-post-list { list-style: none; margin: 16px 0 0; padding: 0; }
body.ws-kb-t2.ws-kb-search .bpress-post-link.search {
	margin: 0 0 16px;
	padding: 20px 24px;
	border: 1px solid var(--kb-hairline);
	border-radius: var(--kb-radius);
	background: var(--kb-white);
	transition: border-color .15s, box-shadow .15s;
}
body.ws-kb-t2.ws-kb-search .bpress-post-link.search:hover { border-color: var(--kb-teal); box-shadow: var(--kb-shadow-hover); }
body.ws-kb-t2.ws-kb-search .bpress-post-link.search h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; line-height: 1.3; }
body.ws-kb-t2.ws-kb-search .bpress-post-link.search h3 a { color: var(--kb-teal); text-decoration: none; }
body.ws-kb-t2.ws-kb-search .bpress-post-link.search h3 a:hover { text-decoration: underline; }
body.ws-kb-t2.ws-kb-search .bpress-post-link.search p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: var(--kb-text); }
body.ws-kb-t2.ws-kb-search .bpress-post-link.search p b { padding: 0 2px; border-radius: 4px; background: var(--kb-tint-2); font-weight: 500; color: inherit; }
body.ws-kb-t2.ws-kb-search .bpress-main > h3 { font-size: 24px; font-weight: 500; color: var(--kb-teal); }
body.ws-kb-t2 .ws-t2-noresults { color: var(--kb-text); }

@media (max-width: 1100px) {
	body.ws-kb-t2 .ws-t2-task-list,
	body.ws-kb-t2 .ws-t2-area-grid,
	body.ws-kb-t2 .ws-t2-popular-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	body.ws-kb-t2 .ws-t2-task-list,
	body.ws-kb-t2 .ws-t2-area-grid,
	body.ws-kb-t2 .ws-t2-popular-list,
	body.ws-kb-t2 .ws-t2-guide-list { grid-template-columns: 1fr; }
	body.ws-kb-t2 .ws-t2-hub section { margin-bottom: 40px; }
	body.ws-kb-t2 .ws-t2-hub h2 { font-size: 1.5rem; }
	body.ws-kb-t2 .ws-t2-task-list a { min-height: 0; }
}

/* =========================================================================
   Tier 2b (snippet 75742): search filter chips, section descriptions
   ========================================================================= */
body.ws-kb-t2b .ws-kb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
body.ws-kb-t2b .ws-kb-chips-label { width: 100%; margin-bottom: 4px; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--kb-text); }
body.ws-kb-t2b .ws-kb-chip,
body.ws-kb-t2b .ws-kb-chip:hover,
body.ws-kb-t2b .ws-kb-chip:focus {
	appearance: none;
	margin: 0;
	padding: 6px 14px;
	border: 1px solid var(--kb-border);
	border-radius: var(--kb-radius-pill);
	background: var(--kb-white);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--kb-text);
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
body.ws-kb-t2b .ws-kb-chip:hover { border-color: var(--kb-teal); color: var(--kb-teal-text); }
body.ws-kb-t2b .ws-kb-chip b { margin-left: 6px; font-weight: 400; color: var(--kb-text); }
body.ws-kb-t2b .ws-kb-chip[aria-pressed="true"] { border-color: var(--kb-teal); background: var(--kb-teal); color: var(--kb-white); }
body.ws-kb-t2b .ws-kb-chip[aria-pressed="true"] b { color: var(--kb-white); }
body.ws-kb-t2b .ws-kb-chip:focus-visible { outline: 2px solid var(--kb-teal); outline-offset: 2px; }
body.ws-kb-t2b .ws-kb-section-desc { max-width: 70ch; margin: 8px 0 24px; font-size: 18px; font-weight: 400; line-height: 1.6; color: var(--kb-text); }

@media (max-width: 767px) {
	body.ws-kb-t2b .ws-kb-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
	body.ws-kb-t2b .ws-kb-chip { white-space: nowrap; }
	body.ws-kb-t2b .ws-kb-chips-label { display: none; }
}
