/* Bohlokoa theme: components on top of theme.json tokens. */

:root {
	--bk-radius-s: var(--wp--custom--radius--s, 6px);
	--bk-radius-m: var(--wp--custom--radius--m, 12px);
	--bk-radius-l: var(--wp--custom--radius--l, 20px);
	--bk-ink: var(--wp--preset--color--contrast);
	--bk-ink-2: var(--wp--preset--color--contrast-2);
	--bk-ink-3: var(--wp--preset--color--contrast-3);
	--bk-rule: var(--wp--preset--color--rule);
	--bk-canvas: var(--wp--preset--color--canvas);
	--bk-paper: var(--wp--preset--color--base);
	--bk-accent: var(--wp--preset--color--accent);
	--fx-magenta: #C2007F;
	--fx-pink: #FF2E93;
	--fx-yellow: #F5E400;
	--fx-violet: #6E5AE6; /* the live site's #7B68EE, a touch deeper so white text passes AA */
	--fx-mint: #6FE3A0;
	--fx-mint-2: #A6EBD6;
	--fx-coal: #262626;
	--fx-ink: #141414;
	--bk-stripe: linear-gradient(90deg, var(--fx-magenta) 0 20%, var(--fx-pink) 20% 40%, var(--fx-yellow) 40% 60%, var(--fx-violet) 60% 80%, var(--fx-mint) 80% 100%);
}


body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
::selection { background: var(--fx-yellow); color: var(--fx-ink); }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.bk-main--landing > .entry-content > *, .bk-main--landing .wp-block-post-content > * { margin-block-start: 0; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
img { height: auto; }

/* ---------------------------------------------------------------- header */
.bk-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .bk-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bk-site-header { top: 0; position: relative; } }
.bk-header { position: relative; color: #fff; }
.bk-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--bk-stripe); }
.bk-brand { margin: 0; white-space: nowrap; }
.bk-brand a { display: inline-flex; align-items: center; gap: .6rem; }
/* BMC icon with the four division colours running down its side */
.bk-brand a::before { content: ""; width: 34px; height: 34px; flex: none; background: url(../img/bmc-mark.svg) center / contain no-repeat; }
.bk-brand--light a { color: #fff !important; }
.bk-brand--light a::before { background-image: url(../img/bmc-mark-light.svg); }
.bk-nav .wp-block-navigation-item__content { padding: .35rem 0; color: #fff; }
.bk-nav .wp-block-navigation-item__content:hover, .bk-nav .is-here > .wp-block-navigation-item__content { color: var(--fx-yellow); }
.bk-nav .wp-block-navigation__submenu-container { color: var(--bk-ink) !important; background: #fff !important; border: 1px solid var(--bk-rule) !important; border-radius: var(--bk-radius-m); padding: .5rem !important; box-shadow: var(--wp--preset--shadow--lift); min-width: 260px !important; }
.bk-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem .75rem !important; border-radius: 8px; color: var(--bk-ink); }
.bk-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--fx-yellow); color: var(--fx-ink); text-decoration: none; }
.bk-header__tools { gap: .9rem; }
.bk-header__tools .wc-block-mini-cart__button, .bk-header__tools .wc-block-customer-account a { color: #fff; padding: .25rem; }
.bk-header__cta .wp-block-button__link { padding: .6rem 1.1rem; background: var(--fx-pink); color: var(--fx-ink); }
.bk-header__cta .wp-block-button__link:hover { background: var(--fx-yellow); color: var(--fx-ink); }
.bk-secure { color: #cfcfcf; margin: 0; display: flex; gap: .4rem; align-items: center; }
.bk-secure::before { content: "🔒"; font-size: .85em; }
@media (max-width: 1100px) { .bk-header .bk-header__cta { display: none !important; } }
@media (max-width: 600px) {
	.bk-header .wp-block-site-title { font-size: 1.15rem !important; }
	.bk-header__bar { gap: .75rem !important; }
}
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; background: var(--fx-ink) !important; color: #fff !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; padding: .4rem 0; color: #fff !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; border: 0 !important; box-shadow: none; color: #fff !important; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { color: #fff; }

/* ---------------------------------------------------------------- typography helpers */
.is-style-eyebrow { font-family: var(--wp--preset--font-family--sans) !important; font-size: .75rem !important; font-weight: 600 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--division-ink, var(--bk-accent)); margin: 0; line-height: 1.4; }
.is-style-eyebrow a { color: inherit; text-decoration: none; }
.has-base-color .is-style-eyebrow, .bk-footer .is-style-eyebrow { color: var(--fx-yellow); }
.is-style-lede { font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: var(--bk-ink-2); }
.has-base-color .is-style-lede { color: inherit; }
.is-style-badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--bk-canvas); }
.bk-more { font-weight: 600; font-size: var(--wp--preset--font-size--small); margin: 0; }
.bk-more a { text-decoration: none; color: var(--division-ink, var(--bk-accent)); }
.has-base-color .bk-more a { color: #fff; }
.bk-more a::after { content: " →"; transition: margin .15s; }
.bk-more a:hover::after { margin-left: .2rem; }
.wp-block-heading { text-wrap: balance; }
p { text-wrap: pretty; }

/* lists */
.is-style-plain { list-style: none; padding-left: 0; }
.is-style-plain li + li { margin-top: .45rem; }
.is-style-checks { list-style: none; padding-left: 0; }
.is-style-checks li { position: relative; padding-left: 1.6rem; }
.is-style-checks li + li { margin-top: .6rem; }
.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .85rem; height: .45rem; border-left: 2px solid var(--division-ink, var(--bk-accent)); border-bottom: 2px solid var(--division-ink, var(--bk-accent)); transform: rotate(-45deg); }
.bk-small-list { font-size: var(--wp--preset--font-size--small); color: var(--bk-ink-2); }
.bk-steps { counter-reset: step; list-style: none; padding-left: 0; }
.bk-steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 3.2rem; }
.bk-steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .875rem; background: var(--tone, var(--bk-ink)); color: var(--on-tone, #fff); }
.bk-steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.2rem; bottom: .2rem; width: 1px; background: var(--bk-rule); }

/* buttons */
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--bk-ink); box-shadow: inset 0 0 0 1px currentColor; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--bk-ink); color: #fff; }
.has-base-color .wp-block-button .wp-block-button__link { background: #fff; color: var(--bk-ink); }
.has-base-color .wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: #fff; }
.has-base-color .wp-block-button.is-style-ghost .wp-block-button__link:hover { background: #fff; color: var(--bk-ink); }
.wp-block-button.is-style-arrow .wp-block-button__link { background: none; color: var(--bk-accent); padding: 0; }
.wp-block-button.is-style-arrow .wp-block-button__link::after { content: " →"; }
.wp-element-button, .wp-block-button__link { transition: background-color .15s, color .15s, box-shadow .15s, transform .15s; }

/* images */
.is-style-rounded img, .wp-block-image.is-style-rounded img { border-radius: var(--bk-radius-m); }
.is-style-frame img { border-radius: var(--bk-radius-m); box-shadow: var(--wp--preset--shadow--lift); }

/* ---------------------------------------------------------------- sections */
.bk-hero { position: relative; overflow: hidden; }
.bk-hero__title { margin-top: .6rem !important; letter-spacing: -0.025em; line-height: 1.06 !important; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem) !important; }
.bk-hero__img img { border-radius: var(--bk-radius-l); }
.bk-hero .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); }

.bk-section-head { margin-bottom: 0; }
.bk-section-head .wp-block-heading { margin-top: .5rem; }
.bk-section-head__text { max-width: 640px; margin-top: .75rem; }
.has-base-color .bk-section-head__text, .has-base-color .has-contrast-2-color { color: inherit !important; }

/* grid + cards */
.bk-grid { align-items: stretch; }
.bk-card { position: relative; height: 100%; }
.is-style-card { background: var(--bk-paper); border: 1px solid var(--bk-rule); border-radius: var(--bk-radius-m); padding: var(--wp--preset--spacing--40); transition: border-color .2s, box-shadow .2s, transform .2s; }
.is-style-card > :first-child { margin-top: 0; }
.is-style-card .bk-more { margin-top: auto; padding-top: .5rem; }
.bk-card.is-style-card { display: flex; flex-direction: column; }
.bk-card[class*="is-division-"] { border-top: 5px solid var(--division); }
.is-style-card:hover { border-color: var(--division); box-shadow: var(--wp--preset--shadow--lift); transform: translateY(-3px); }
.bk-card h3, .bk-card .wp-block-heading { margin: 0; }
.is-style-panel { background: var(--bk-canvas); border-radius: var(--bk-radius-m); padding: var(--wp--preset--spacing--40); }
.is-style-night { background: var(--wp--preset--color--night); color: #fff; }
.is-style-stripe { border-top: 3px solid transparent; border-image: var(--bk-stripe) 1; }
.bk-card--dark { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.12) !important; }
.bk-card--dark .wp-block-heading { color: #fff; }
.bk-card--dark p { color: #b8c2d4 !important; }
.bk-card--dark:hover { border-color: rgba(255,255,255,.3) !important; box-shadow: none; transform: none; }
.bk-card--evidence { background: var(--bk-canvas); border-color: transparent; }
.bk-card--group { border-left: 5px solid var(--tone, var(--bk-ink)); }


.bk-africa { background: var(--bk-paper); }
.bk-africa__img img { border-radius: var(--bk-radius-l); }
.bk-solutions-band .wp-block-heading { color: #fff; }
.bk-solutions-band .bk-grid { margin-block: var(--wp--preset--spacing--50); }
.bk-cta .wp-block-heading { color: #fff; }
.bk-cta__text { color: inherit; font-size: var(--wp--preset--font-size--large); }
.bk-contact-band .wp-block-heading.has-display-font-size { max-width: 14ch; }
.bk-pipeline li { padding-bottom: .8rem; border-bottom: 1px solid var(--bk-rule); }
.bk-pipeline li::before { border-color: var(--wp--preset--color--digital) !important; }
.bk-contact-list li { font-size: var(--wp--preset--font-size--small); }
.bk-contact-list strong { display: inline-block; min-width: 5rem; color: var(--bk-ink-3); font-weight: 500; }
.bk-data-list li { padding: .6rem 0; border-bottom: 1px solid var(--bk-rule); font-size: var(--wp--preset--font-size--small); }
.bk-data-list li + li { margin-top: 0; }
.bk-data-list strong { color: var(--bk-ink-3); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.bk-stripe { height: 4px; background: var(--bk-stripe); }

/* ---------------------------------------------------------------- products */
.bk-product-card { position: relative; }
.bk-product-card .wc-block-components-product-image, .bk-product-card .wp-block-woocommerce-product-image { border-radius: var(--bk-radius-m); overflow: hidden; background: var(--bk-canvas); margin-bottom: .6rem !important; }
.bk-product-card .wc-block-components-product-image img { transition: transform .5s ease; }
.bk-product-card:hover .wc-block-components-product-image img { transform: scale(1.025); }
.bk-product-card .wp-block-post-title { margin: 0; }
.bk-product-card .wp-block-post-title a { text-decoration: none; }
.bk-product-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.bk-product-card .wp-block-post-excerpt { margin: 0; }
.bk-product-card .wp-block-post-excerpt__excerpt { margin: 0; }
.bk-product-card .wp-block-post-terms { position: relative; z-index: 1; }
.bk-product-card .wc-block-components-product-price { font-weight: 600; color: var(--bk-ink); }
.wc-block-product-template { row-gap: var(--wp--preset--spacing--50) !important; }
.bk-toolbar { margin-bottom: var(--wp--preset--spacing--40); color: var(--bk-ink-3); font-size: var(--wp--preset--font-size--small); }
.bk-toolbar .woocommerce-ordering select { border: 1px solid var(--bk-rule); border-radius: 999px; padding: .45rem 2rem .45rem .9rem; background-color: var(--bk-paper); font: inherit; }
.bk-shop-head .woocommerce-breadcrumb { font-size: var(--wp--preset--font-size--x-small); color: var(--bk-ink-3); }

.bk-product__summary { position: sticky; top: 6rem; align-self: flex-start; }
.bk-product__summary > * + * { margin-top: 1rem; }
.bk-product__summary .wp-block-post-title { margin-top: .4rem; }
.bk-product__media .woocommerce-product-gallery { border-radius: var(--bk-radius-m); overflow: hidden; }
.bk-product__media .woocommerce-product-gallery img { border-radius: var(--bk-radius-m); }
.bk-product__media .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .5rem !important; }
.bk-product__media .flex-control-thumbs li { width: auto !important; }
.bk-product__media .flex-control-thumbs img { border-radius: 8px; opacity: .6; }
.bk-product__media .flex-control-thumbs img.flex-active, .bk-product__media .flex-control-thumbs img:hover { opacity: 1; }
.bk-product form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.bk-product form.variations_form { display: block; }
.bk-product table.variations { width: 100%; border: 0; margin-bottom: 1rem; }
.bk-product table.variations th, .bk-product table.variations td { display: block; padding: 0; border: 0; text-align: left; }
.bk-product table.variations label { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bk-ink-3); }
.bk-product table.variations select { width: 100%; margin-top: .4rem; border: 1px solid var(--bk-rule); border-radius: 10px; padding: .75rem .9rem; font: inherit; background: var(--bk-paper); }
.bk-product .reset_variations { font-size: .8125rem; }
.bk-product .single_variation_wrap .woocommerce-variation-price { font-size: var(--wp--preset--font-size--large); font-weight: 600; margin-bottom: .75rem; }
.bk-product .quantity input.qty { width: 4.5rem; border: 1px solid var(--bk-rule); border-radius: 999px; padding: .75rem; font: inherit; text-align: center; }
.bk-product .single_add_to_cart_button { border-radius: 999px !important; padding: .9rem 1.8rem !important; font-weight: 600 !important; background: var(--bk-ink) !important; color: #fff !important; border: 0 !important; }
.bk-product .single_add_to_cart_button:hover { background: var(--bk-accent) !important; }
.bk-product__details .wc-tabs, .bk-product__details .tabs { border-bottom: 1px solid var(--bk-rule); }
.bk-product__details .wc-block-components-tab-content, .bk-product__details .woocommerce-Tabs-panel { max-width: 760px; }
.bk-product__details h2 { font-size: var(--wp--preset--font-size--xx-large); }
.bk-related { border-top: 1px solid var(--bk-rule); padding-top: var(--wp--preset--spacing--60); }
@media (max-width: 781px) { .bk-product__summary { position: static; } }

/* WooCommerce general */
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { border-radius: 999px !important; background: var(--bk-ink) !important; color: #fff !important; }
.wc-block-components-button:not(.is-link):hover { background: var(--bk-accent) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select__select { border-radius: 10px !important; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: .5rem .75rem; border-radius: 8px; text-decoration: none; color: var(--bk-ink-2); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--bk-canvas); color: var(--bk-ink); font-weight: 600; }

/* ---------------------------------------------------------------- docs + posts */
.bk-docs__nav { position: sticky; top: 6rem; align-self: flex-start; }
.bk-docs__body { max-width: 760px; }
.bk-docs__body h2 { margin-top: var(--wp--preset--spacing--50); }
.bk-docs__body .wp-block-details summary { font-weight: 600; cursor: pointer; }
@media (max-width: 781px) { .bk-docs__nav { position: static; } }
.bk-post-card .wp-block-post-title a { text-decoration: none; }
.bk-post-card .wp-block-post-title { margin: 0; }
.bk-post-card .wp-block-post-excerpt__excerpt { margin: 0; }

/* ---------------------------------------------------------------- footer */
.bk-footer { position: relative; }
.bk-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--bk-stripe); }
.bk-footer__lede { color: #c9c9c9; max-width: 34ch; margin-top: 1rem; }
.bk-footer__label { color: #a8a8a8; margin-top: 1.5rem; }
.bk-footer__h { font-family: var(--wp--preset--font-family--sans); font-size: .75rem !important; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--fx-yellow) !important; margin: 0 0 1rem; }
.bk-footer__list { font-size: var(--wp--preset--font-size--small); }
.bk-footer__list a { text-decoration: none; color: #eee !important; }
.bk-footer__list a:hover { text-decoration: underline; color: var(--fx-yellow) !important; }
.bk-footer__base { border-top: 1px solid rgba(255,255,255,.14); color: #a8a8a8; }
.bk-footer__base p { margin: 0; }
.bk-footer__base a { color: #c9c9c9 !important; text-decoration: none; }
.bk-footer .bkc-news input[type=email] { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.bk-footer .bkc-news input::placeholder { color: #a8a8a8; }
.bk-footer .bkc-news .wp-element-button { background: var(--fx-pink); color: var(--fx-ink); }
.bk-footer .bkc-news .wp-element-button:hover { background: var(--fx-yellow); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
	.bk-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
	.bk-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- print (capability statement etc.) */
@media print {
	.bk-site-header, .bk-footer, .bk-hero .wp-block-buttons, .bk-enquiry { display: none !important; }
	.bk-hero { padding: 0 !important; background: none !important; }
}
.bk-africa__img img { object-position: 72% 50%; }
.bk-contact-band .wp-block-heading.has-display-font-size { max-width: 20ch; }
.bk-product__media .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.bk-product table.variations select { height: auto; min-height: 3rem; line-height: 1.4; appearance: auto; }
.bk-product table.variations td.value { padding-bottom: .25rem; }
.bk-product__details .wc-tabs li a { text-decoration: none; }
@media (max-width: 480px) {
	.bk-header .bk-brand, .bk-header .bk-brand a { font-size: 1.05rem !important; }
	.bk-header .bk-brand a { gap: .45rem; }
	.bk-header .bk-brand a::before { width: 28px; height: 28px; }
	.bk-header .bk-header__bar { gap: .5rem !important; }
	.bk-header .bk-header__tools { gap: .35rem !important; }
}
.bk-product table.variations, .bk-product table.variations tbody, .bk-product table.variations tr { display: block; width: 100%; }
@media (max-width: 781px) { .bk-africa__img img { object-position: 85% 50%; } }
.bk-product__media .wp-block-woocommerce-product-image-gallery { max-width: none !important; width: 100%; }

/* Parliament Monitor plans and maloti prices */
.bk-plan .bk-plan-price { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: var(--wp--preset--font-size--xx-large); line-height: 1.1; color: var(--bk-ink); }
.bk-plan--request .bk-plan-price { font-size: var(--wp--preset--font-size--x-large); color: var(--bk-ink-2); }
.bk-plan .bk-plan-price-wrap { margin-top: auto !important; padding-top: .75rem; border-top: 1px solid var(--bk-rule); }
.bk-plan .wp-block-buttons { margin-top: .5rem; }
.bk-plan .wp-block-button__link { width: 100%; text-align: center; }
.bk-plan .wp-block-buttons > .wp-block-button { width: 100%; }
.bk-muted { color: var(--bk-ink-3); }
.bk-credit { border-top: 1px solid var(--bk-rule); padding-top: 1rem; }
.bkc-lsl { font-weight: 600; }
.bkc-pm-member { margin: 0 0 1rem; }
.bkc-pm-member label { display: block; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bk-ink-3); margin-bottom: .4rem; }
.bkc-pm-member select { width: 100%; border: 1px solid var(--bk-rule); border-radius: 10px; padding: .75rem .9rem; font: inherit; background: var(--bk-paper); }

/* ---------------------------------------------------------------- page colours
   The theme gives <body> a bk-tone-* class (see bohlokoa_tone()). Each tone sets its main colour,
   a second colour for the closing band, and the text that stays readable on both. */
body {
	--tone: var(--fx-coal); --tone-bg: var(--fx-coal); --on-tone: #fff; --tone-title: #fff; --tone-label: var(--fx-yellow);
	--tone-2: var(--fx-magenta); --on-tone-2: #fff; --tone-2-label: var(--fx-yellow);
	--btn-bg: var(--fx-yellow); --btn-fg: var(--fx-ink);
	--tint: var(--bk-canvas);
	--division: var(--fx-magenta); --division-ink: var(--fx-magenta);
}
body.bk-tone-violet {
	--tone: var(--fx-violet); --tone-bg: var(--fx-violet); --tone-label: var(--fx-yellow);
	--tone-2: var(--fx-yellow); --on-tone-2: var(--fx-ink); --tone-2-label: #4C3AC6;
	--tint: color-mix(in srgb, var(--fx-violet) 10%, #fff);
	--division: var(--fx-violet); --division-ink: #5240CF;
}
body.bk-tone-yellow {
	--tone: var(--fx-yellow); --tone-bg: var(--fx-yellow); --on-tone: var(--fx-ink); --tone-title: var(--fx-ink); --tone-label: var(--fx-magenta);
	--tone-2: var(--fx-coal); --on-tone-2: #fff; --tone-2-label: var(--fx-yellow);
	--btn-bg: var(--fx-ink); --btn-fg: #fff;
	--tint: color-mix(in srgb, var(--fx-yellow) 16%, #fff);
	--division: var(--fx-yellow); --division-ink: var(--fx-magenta);
}
body.bk-tone-magenta {
	--tone: var(--fx-magenta); --tone-bg: var(--fx-magenta);
	--tone-2: var(--fx-yellow); --on-tone-2: var(--fx-ink); --tone-2-label: var(--fx-magenta);
	--tint: color-mix(in srgb, var(--fx-magenta) 8%, #fff);
}
body.bk-tone-mint {
	--tone: var(--fx-mint); --tone-bg: linear-gradient(180deg, var(--fx-mint), var(--fx-mint-2)); --on-tone: #0f1f17; --tone-title: #0f1f17; --tone-label: #4C3AC6;
	--tone-2: var(--fx-violet); --on-tone-2: #fff; --tone-2-label: var(--fx-yellow);
	--btn-bg: var(--fx-ink); --btn-fg: #fff;
	--tint: color-mix(in srgb, var(--fx-mint) 16%, #fff);
	--division: var(--fx-mint); --division-ink: #0B7A4B;
}
body.bk-tone-pink {
	--tone: var(--fx-pink); --tone-bg: var(--fx-pink); --on-tone: var(--fx-ink); --tone-label: var(--fx-ink);
	--tone-2: var(--fx-coal); --on-tone-2: #fff; --tone-2-label: var(--fx-pink);
	--btn-bg: var(--fx-ink); --btn-fg: #fff;
	--tint: color-mix(in srgb, var(--fx-pink) 8%, #fff);
	--division: var(--fx-pink); --division-ink: #C8005F;
}
body.bk-tone-coal {
	--tone-2: var(--fx-pink); --on-tone-2: var(--fx-ink); --tone-2-label: var(--fx-ink);
}
/* the four divisions keep their colours wherever they appear */
.is-division-digital { --division: var(--fx-violet); --division-ink: #5240CF; }
.is-division-intelligence { --division: var(--fx-yellow); --division-ink: #7A6C00; }
.is-division-studios { --division: var(--fx-magenta); --division-ink: var(--fx-magenta); }
.is-division-solutions { --division: var(--fx-mint); --division-ink: #0B7A4B; }
body.bk-tone-yellow .is-division-intelligence { --division-ink: var(--fx-magenta); }

/* top of the page */
.bk-hero.bk-hero { background: var(--tone-bg) !important; color: var(--on-tone); }
.bk-hero .is-style-eyebrow, .bk-hero .is-style-eyebrow a { color: var(--tone-label) !important; font-family: var(--wp--preset--font-family--display) !important; font-weight: 800 !important; font-size: .82rem !important; letter-spacing: .06em; }
.bk-hero h1, .bk-hero .wp-block-heading, .bk-hero .wp-block-post-title, .bk-hero .wp-block-query-title { color: var(--tone-title); }
.bk-hero .is-style-lede, .bk-hero .wp-block-term-description, .bk-hero .wp-block-term-description p { color: var(--on-tone); }
.bk-hero .wp-block-term-description { font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.bk-hero a:not(.wp-block-button__link) { color: inherit; }
.bk-hero .woocommerce-breadcrumb, .bk-hero .wc-block-breadcrumbs { color: var(--on-tone); font-size: var(--wp--preset--font-size--x-small); }
.bk-hero .wp-block-post-date { color: var(--on-tone); }
.bk-hero .wp-block-button__link { background: var(--btn-bg); color: var(--btn-fg); }
.bk-hero .wp-block-button__link:hover { background: #fff; color: var(--fx-ink); }
.bk-hero .wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--on-tone); box-shadow: inset 0 0 0 2px currentColor; }
.bk-hero .wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--on-tone); color: var(--tone); }
.bk-hero .wp-block-post-terms a { text-decoration: none; }

/* photos take on the page colour, as on the current site */
.bk-tone-magenta .bk-hero__img, .bk-tone-mint .bk-hero__img { position: relative; isolation: isolate; }
.bk-tone-magenta .bk-hero__img::after, .bk-tone-mint .bk-hero__img::after { content: ""; position: absolute; inset: 0; border-radius: var(--bk-radius-l); background: var(--bk-wash, var(--fx-magenta)); mix-blend-mode: color; opacity: .9; pointer-events: none; }
.bk-tone-mint { --bk-wash: #1FAE6A; }

/* the rest of the page */
.bk-main--landing .has-canvas-background-color:not(.bk-hero) { background-color: var(--tint) !important; }
.bk-grid > .is-style-card:not([class*="is-division-"]):not(.bk-card--dark):not(.bk-card--group) { border-top: 5px solid var(--bk-card, var(--tone)); --division: var(--bk-card, var(--tone)); }
.bk-grid > .is-style-card:not([class*="is-division-"]):nth-child(5n+1) { --bk-card: var(--fx-magenta); }
.bk-grid > .is-style-card:not([class*="is-division-"]):nth-child(5n+2) { --bk-card: var(--fx-violet); }
.bk-grid > .is-style-card:not([class*="is-division-"]):nth-child(5n+3) { --bk-card: var(--fx-yellow); }
.bk-grid > .is-style-card:not([class*="is-division-"]):nth-child(5n+4) { --bk-card: var(--fx-mint); }
.bk-grid > .is-style-card:not([class*="is-division-"]):nth-child(5n+5) { --bk-card: var(--fx-pink); }

/* the closing band and the enquiry band use the second colour */
.bk-cta.bk-cta, .bk-solutions-band.bk-solutions-band, .bk-enquiry.bk-enquiry { background: var(--tone-2) !important; color: var(--on-tone-2) !important; }
.bk-cta .wp-block-heading, .bk-enquiry .wp-block-heading, .bk-solutions-band .wp-block-heading { color: inherit; }
.bk-enquiry .has-contrast-2-color, .bk-cta .has-contrast-2-color { color: inherit !important; }
.bk-enquiry .is-style-eyebrow, .bk-cta .is-style-eyebrow { color: var(--tone-2-label) !important; }
.bk-enquiry .bk-contact-list strong { color: inherit; opacity: .75; }
.bk-enquiry a:not(.wp-element-button) { color: inherit; }
.bk-enquiry .bkc-form { background: #fff; color: var(--fx-ink); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--wp--preset--shadow--lift); }
.bk-enquiry .bkc-form a { color: var(--fx-magenta); }
.bk-enquiry .bkc-notice { color: #0d4f2c; }
.bk-cta .wp-block-button__link { background: var(--btn-2-bg, var(--fx-yellow)); color: var(--btn-2-fg, var(--fx-ink)); }
.bk-cta .wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.bk-cta .wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--fx-ink); color: #fff; }
.bk-tone-magenta .bk-cta, .bk-tone-violet .bk-cta, .bk-tone-coal .bk-cta { --btn-2-bg: var(--fx-ink); --btn-2-fg: #fff; }

/* shop: every category has its colour on the card, and the filter pills use the whole palette */
.product_cat-wordpress-themes, .product_cat-wordpress-plugins { --division: var(--fx-violet); --division-ink: #5240CF; }
.product_cat-reports-publications, .product_cat-parliamentary-records, .product_cat-research-services, .product_cat-data-intelligence { --division: var(--fx-yellow); --division-ink: var(--fx-magenta); }
.bk-product-card .wc-block-components-product-image, .bk-product-card .wp-block-woocommerce-product-image { border-bottom: 5px solid var(--division); }
.bk-product-card .wc-block-components-product-price { font-family: var(--wp--preset--font-family--display); font-weight: 800; }
.bkc-catnav a { border: 0 !important; background: var(--chip, var(--fx-ink)) !important; color: var(--chip-fg, #fff) !important; font-weight: 700; transition: transform .15s; }
.bkc-catnav a span { color: inherit !important; opacity: .75; }
.bkc-catnav a:hover { transform: translateY(-2px); }
.bkc-catnav a[aria-current] { outline: 3px solid var(--fx-ink); outline-offset: 2px; }
.bkc-catnav a:nth-child(6n+1) { --chip: var(--fx-magenta); --chip-fg: #fff; }
.bkc-catnav a:nth-child(6n+2) { --chip: var(--fx-violet); --chip-fg: #fff; }
.bkc-catnav a:nth-child(6n+3) { --chip: var(--fx-yellow); --chip-fg: var(--fx-ink); }
.bkc-catnav a:nth-child(6n+4) { --chip: var(--fx-mint); --chip-fg: #0f1f17; }
.bkc-catnav a:nth-child(6n+5) { --chip: var(--fx-pink); --chip-fg: var(--fx-ink); }
.bkc-catnav a:nth-child(6n+6) { --chip: var(--fx-coal); --chip-fg: #fff; }

/* product page: the picture sits on the category's colour */
.bk-product__media { background: var(--tone-bg); border-radius: var(--bk-radius-l); padding: clamp(.9rem, 2.2vw, 1.75rem) !important; align-self: flex-start; }
.bk-product .single_add_to_cart_button { background: var(--fx-magenta) !important; }
.bk-product .single_add_to_cart_button:hover { background: var(--fx-ink) !important; }
.bk-product__media .flex-control-thumbs img { opacity: .75; }

/* parliament plans, support nav, journal */
.bk-plan { border-top: 5px solid var(--tone); }
.bkc-docsnav .current_page_item > a { background: var(--fx-yellow); color: var(--fx-ink); }
.bk-post-card .wp-block-post-featured-image img { border-bottom: 5px solid var(--tone); }

/* ---------------------------------------------------------------- front page: one full screen, nothing to scroll
   Scoped to body.home so the slides stay as ordinary stacked images in the block editor. */
body.home { overflow: hidden; }
body.home .bk-site-header { position: fixed; left: 0; right: 0; top: 0; }
body.home.admin-bar .bk-site-header { top: 32px; }
@media (max-width: 782px) { body.home.admin-bar .bk-site-header { top: 46px; position: fixed; } }
body.home .bk-header { background: linear-gradient(180deg, rgba(5,10,20,.42), rgba(5,10,20,0)) !important; }
body.home .bk-header::after { display: none; }
body.home .bk-hx { position: fixed; inset: 0; margin: 0; max-width: none; background: #05080f; overflow: hidden; color: #fff; }
body.home .bk-hx__slides, body.home .bk-hx__slide { position: absolute; inset: 0; margin: 0; max-width: none; }
body.home .bk-hx__slide { opacity: 0; transition: opacity 1.8s ease; }
body.home .bk-hx__slides:not(.is-live) .bk-hx__slide:first-child, body.home .bk-hx__slide.is-on { opacity: 1; }
body.home .bk-hx__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; transform: scale(1.02); }
body.home .bk-hx__slide:nth-child(1) { --pos: 50% 42%; }
body.home .bk-hx__slide:nth-child(2) { --pos: 56% 28%; }
body.home .bk-hx__slide:nth-child(3) { --pos: 42% 50%; }
body.home .bk-hx__slide:nth-child(4) { --pos: 50% 50%; }
@media (prefers-reduced-motion: no-preference) { body.home .bk-hx__slide.is-on img { animation: bk-hx-drift 9s ease-out forwards; } }
@keyframes bk-hx-drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }
body.home .bk-hx__shade { position: absolute; inset: 0; margin: 0; background: linear-gradient(0deg, rgba(5,8,15,.72) 0%, rgba(5,8,15,.38) 14%, rgba(5,8,15,0) 30%); }
body.home .bk-hx__copy { position: absolute; left: 0; right: 0; bottom: 50px; margin: 0 auto; width: min(1240px, calc(100% - 2 * clamp(1rem, 4vw, 2.5rem))); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 40px; flex-wrap: wrap; }
body.home .bk-hx__copy h1 { color: #fff; margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; max-width: 26ch; text-shadow: 0 1px 18px rgba(0,0,0,.45); }
body.home .bk-hx__copy p { color: rgba(255,255,255,.86); margin: 0; font-size: clamp(.88rem, 1.1vw, 1rem); font-weight: 500; line-height: 1.4; max-width: 44ch; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
body.home .bk-hx__foot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 20px 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; font-size: 13px; color: rgba(255,255,255,.72); }
body.home .bk-hx__foot a { color: #fff; text-decoration: none; }
body.home .bk-hx__foot a:hover { text-decoration: underline; }
body.home .bk-hx__foot span[aria-hidden] { opacity: .5; }
@media (max-width: 640px) { body.home .bk-hx__foot { font-size: 12px; } body.home .bk-hx__copy { bottom: 64px; } }

/* header stays on one line down to the phone menu */
.bk-nav .wp-block-navigation__container { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1100px) { .bk-nav .wp-block-navigation__container { gap: 1rem !important; } .bk-header__bar { gap: 1rem !important; } }
.bk-header .wc-block-customer-account a, .bk-header .wc-block-customer-account svg, .bk-header .wc-block-mini-cart__button { color: #fff !important; fill: currentColor; }

/* the category pills line up with the product grid */
.bk-main > .bkc-catnav { max-width: var(--wp--style--global--wide-size) !important; width: 100%; margin-inline: auto !important; }
.bkc-quoted { font-family: var(--wp--preset--font-family--display); font-style: normal; font-weight: 700; }
.bkc-mpesa-panel__amount { font-family: var(--wp--preset--font-family--display); font-weight: 800; }

/* phones: Montserrat is wider than the old serif, so the brand steps down to keep the cart icon on screen */
.bk-main > .bkc-catnav { margin-block-start: var(--wp--preset--spacing--50) !important; }
@media (max-width: 480px) {
	.bk-header .bk-brand, .bk-header .bk-brand a { font-size: .92rem !important; }
	.bk-header .bk-header__tools .wc-block-mini-cart__button, .bk-header .bk-header__tools .wc-block-customer-account a { padding: .15rem; }
}
@media (max-width: 370px) { .bk-header .bk-brand, .bk-header .bk-brand a { font-size: .8rem !important; } .bk-header .bk-brand a::before { width: 24px; height: 24px; } }
@media (max-width: 640px) { body.home .bk-hx__foot span:nth-of-type(2) { display: none; } }
.bk-header .wc-block-customer-account__link { color: #fff !important; }
.bk-header .wc-block-customer-account__link:hover { color: var(--fx-yellow) !important; }
.bk-header .wc-block-mini-cart__badge { background: var(--fx-pink) !important; color: var(--fx-ink) !important; font-weight: 700; }
