/*
 Theme Name:   KSEC Store SP labs
 description: A child theme to apply the KSEC Cyborg Store vSP. Single source for the UK (labs.ksec.co.uk, blog 4) and EU (ksec.eu / eu.ksec.co.uk, blog 8) storefronts; store-specific facts branch via ksec_is_eu().
 Author:       KSEC Worldwide
 Template:     shoptimizer
 Version:      1.10.8
*/

/* CHANGELOG
   v1.4.52: The storefront handed out the hidden login slug to anyone who asked.
            On a multisite wp_lostpassword_url() runs WooCommerce's
            wc_lostpassword_url(), which hands back to core's default whenever
            $_GET['redirect_to'] contains network_admin_url(), and on this
            estate ksec-hide-wp's own network_site_url filter rewrites that
            default to the secret login slug on the network host. So one
            parameter appended to a storefront URL returned the slug that
            plugin exists to hide. Reproduced read-only on both blogs on
            2026-09-22: a plain GET of /my-account/ renders that blog's own
            /my-account/lost-password/, and the same GET with the network admin
            URL in redirect_to renders the hidden network login. Found by both
            security reviews of v1.4.51 while tracing that release's new sink.
            LOW, because a client reaching the slug gets a 302 to Cloudflare
            Access rather than a login form, so what is lost is an obscurity
            layer and not access. Not an open redirect either: the host comes
            from the network's own record and is never attacker-chosen.
            The fix is ksec_scope_lostpassword_url() in functions.php, a
            lostpassword_url filter at priority 11, after WooCommerce's at 10.
            Swapping this theme's own call sites in
            woocommerce/myaccount/form-login.php and
            woocommerce/global/form-login.php to
            wc_get_account_endpoint_url( 'lost-password' ) is kept as defence
            in depth, and the resulting link was measured byte for byte
            identical on both blogs for every unparameterised request.
            The swap alone was NOT the fix, and a draft of this entry claimed a
            filter "would cover nothing live today" on the strength of a grep
            over wp-content. That grep cannot see wp-includes, which holds the
            caller that mattered: core embeds wp_lostpassword_url() in its
            incorrect_password message, Wordfence's masked login error does the
            same and loginSec_maskLoginErrors reads 1 in the network-wide
            wfconfig table so any username triggers it, and WooCommerce renders
            that message through wc_add_notice(), whose kses rules keep the
            anchor. One failed sign-in leaked the slug with both templates
            already fixed.
            Three things the reviews corrected in the filter itself, each of
            which had been written the wrong way round first. It now acts ONLY
            when WooCommerce actually bailed for the multisite reason, mirroring
            WooCommerce's own condition, so exactly one case changes and every
            other caller gets its URL untouched; an unconditional override
            discarded the validate_jetpack_protect_recovery token that Jetpack's
            WAF appends to let a wrongly blocked visitor reach the reset form,
            which is latent only because Protect is off on both blogs. It
            excludes admin-ajax.php and admin-post.php from the wp-admin
            carve-out, because is_admin() is true on both and Wordfence
            registers wp_ajax_nopriv_wordfence_ls_authenticate with no nonce and
            no capability, with the URL in its error string before any
            authentication is attempted, so a bare is_admin() test left the leak
            reachable unauthenticated on the one surface that looks like admin
            and is not. And it fails CLOSED to the storefront root once
            WooCommerce has bailed, checking both halves of WooCommerce's own
            guard, the my-account page and the endpoint slug. An earlier draft
            returned core's URL there, reasoning that it avoided trading a
            disclosure for a lockout. That was false and the measurement was
            already in hand: the slug 302s to Cloudflare Access, so no customer
            reaches core's reset form by it in either direction, and the
            fallback prevented no lockout while emitting the slug.
            wp-login.php keeps core's URL, which is what preserves a network
            admin resetting a password. Verified rather than assumed, because
            the login here is served at a hidden slug: WPS Hide Login reaches it
            by requiring wp-login.php, which fires login_init before either link
            builder, and ksec-hide-wp serves no login form at all. The registration
            sits outside the function_exists guard, so a future
            shared-mu-plugins copy defining the same name first cannot leave
            this one silently registering nothing.
            Scoped to this theme, not shared-mu-plugins/, so it cannot reach
            onlysecurity.com, which runs ksec-hide-wp too and plausibly carries
            the same defect but has not been probed or reviewed. The theme
            serves blogs 4 and 8. Blogs 1 and 5 would render WooCommerce's
            unfixed template but serve no HTML at all, every path 301ing away,
            so a redirect change there would expose blog 1. A theme switch, or
            an administrator previewing another theme, reinstates the leak; the
            durable home is ksec-hide-wp behind a per-site flag, filed not done.
            Two residuals, recorded rather than fixed. The two swapped templates
            call the endpoint helper directly with no fallback, so a deleted
            my-account page or a blanked endpoint slug would 404 those links
            where they used to degrade; both options are set on both blogs, and
            the filter carries the guard because it is the path that would
            otherwise emit the slug. And /my-account/?redirect_to[]=x fatals
            mid-render on both blogs, a 200 with a truncated body and no closing
            html tag, because WooCommerce's own bail calls strpos() on an array
            at priority 10, upstream of this filter, which therefore cannot
            close it. This filter guards its own copy of that line with
            is_string(), the same shape as the ?key[]= fault recorded against
            this theme in v1.4.50.

   v1.4.51: The order-received page carried a dormant account-takeover branch.
            ksec_ty_should_show_account_prompt() in
            woocommerce/checkout/thankyou.php returns true when usermeta
            ksec_auto_account_pending_password is non-empty, and the section it
            guards built a "Set my password" link out of
            get_password_reset_key(), printing ?action=rp&key=...&login=...
            straight into the page body. That template renders on a valid order
            key alone for an hour after the order is created or paid, per the
            third arm of ksec_thankyou_viewer_scope(), so the branch would have
            handed a 24 hour password reset to anyone holding a recent order
            link. An order key reaches plenty of people: it sits in browser
            history and in the confirmation email, and it travels wherever that
            email is forwarded. It used to leave the site by itself in the
            Referer header as well, because both blogs sent referrer-policy:
            no-referrer-when-downgrade, but .htaccess moved them to
            strict-origin-when-cross-origin on 2026-09-22 and the query string
            no longer crosses origins. The account on the other end is not
            empty either. ksec-auto-account-create-stripe-friendly-v2.php calls
            wc_update_new_customer_past_orders(), which backfills it with every
            past order placed on that email address.
            It has never fired. Grepped 2026-09-22 across the deployed
            plugins, mu-plugins and themes on vps-2026: the only line in the
            estate that names the key is the one that reads it. SELECT COUNT(*)
            FROM beRkHo73_usermeta WHERE meta_key =
            'ksec_auto_account_pending_password' returns 0, and usermeta is one
            table for the whole network, so that answers for labs and eu
            together. Found by the security review of the v1.4.50 PII gate and
            deliberately kept out of that diff, per the scope rule, which is why
            it lands here on its own.
            The comment was the live part of the defect. It described the flag
            as "the auto-account flag from the mu-plugin that ran at checkout",
            which is false: that mu-plugin never writes this key. It calls
            wc_create_new_customer(), set_customer_id() and
            wc_update_new_customer_past_orders(). It does write user meta, via
            a WC_Customer save that stores every billing_ and shipping_ key, so
            a grep for update_user_meta does not see it, and a first draft of
            this entry wrongly said it wrote none. So the
            comment invited the next developer to read an always-empty flag as a
            broken mu-plugin and restore the write, and that single change was
            the only thing between a forwarded order link and an account. The
            comment now says plainly that nothing sets the key, that the branch
            is unreachable, and what reviving it would arm.
            Two independent changes close it. The branch is gated on staff or
            the signed-in owner, which is the first two arms of
            ksec_thankyou_viewer_scope() and deliberately not its third: scope
            'full' is exactly what a fresh key buys, so it is not a sufficient
            test here and must not be substituted. The check reads
            current_user_can() and get_current_user_id() directly rather than
            calling that function, because this file is a WooCommerce template
            override and core's own order_received() can include it without the
            branded renderer ever running. Separately, the URL is now
            wc_get_account_endpoint_url( 'lost-password' ) and mints no token at
            all, which is the half that does not depend on the gate being right.
            Not wp_lostpassword_url(), which a first draft used and both security
            reviews flagged: on a multisite WooCommerce hands back to core's
            default whenever $_GET['redirect_to'] contains network_admin_url(),
            and the deployed login-hiding plugins rewrite that default to the
            secret slug on the network host. Reproduced read-only on both blogs
            on 2026-09-22, and this theme's two form-login templates still carry
            it, which is live, predates this release and is filed separately.
            The lost-password flow
            delivers to the mailbox, so whoever holds the page must also hold
            the customer's email, the property a printed key throws away. The
            copy and the CTA follow the mechanism, since the old line "No
            email round-trip needed" was the reason the token was printed and
            would have been false the moment this rendered. They name the step
            the customer actually takes: there is no form-lost-password.php
            override in this theme, so the link lands on WooCommerce's stock
            blank form, nothing pre-fills the billing email and nothing sends
            on click.
            What the gate leaves is worth stating, because it reads as an
            oversight. The prompt also hides from the signed-in owner, on the
            premise that it exists for a customer with no password yet.
            Owner-or-staff minus owner is staff, so the only viewer it can now
            reach is a member of staff on someone else's order. That is the
            honest outcome rather than a working feature: a guest whose account
            was created for them and who has never authenticated cannot be told
            apart, on this page, from anyone holding a link they were forwarded,
            because everything that identifies them travels in the link. If the
            prompt is wanted, it belongs in the post-purchase email, which only
            the customer's own mailbox receives. No behaviour changes for any
            customer today, since nothing sets the flag.

   v1.4.50: The order-received page handed a customer's full order to anyone
            holding the link. ksec_thankyou_render_branded() rendered the branded
            confirmation on a valid order key alone, and that template prints the
            formatted billing and shipping addresses, the billing phone, the
            customer name and email and every line item. A key is not a session:
            it survives in browser history and in a forwarded email, and it
            leaves the site by itself, because both blogs send
            `referrer-policy: no-referrer-when-downgrade`, so the full URL goes
            out in the Referer header to every cross-origin script the page loads
            and is recorded by gtag as page_location. WooCommerce has refused
            this case since 8.4.0, and its refusal could not render here anyway:
            this renderer replaced core's output at the_content priority 100, and
            the thank-you login suppressor blanked the form core falls back to.
            Scale, measured 2026-09-22: 5230 guest orders on labs, 5111 of them
            completed, readable in full from the link with no time limit.
            Not fixed by copying core's gate, which refuses whenever the order
            carries a customer_id. That assumes such an order belongs to a
            shopper who can log in, and here it does not: the mu-plugin
            ksec-auto-account-create-stripe-friendly-v2.php makes an account for
            every guest order on woocommerce_payment_complete and sets no auth
            cookie, so the customer lands here logged out against an account they
            have never seen. Over 180 days labs had 1346 orders with a
            customer_id against 51 true guest orders, 863 of those belonging to
            an account registered after the order, 850 within five minutes. Core
            verbatim would have walled off roughly 63% of labs orders at the
            moment of payment.
            The order of trust is the signed-in owner, then a one hour window
            filtered by ksec_thankyou_full_detail_window. The window runs
            from the LATER of created and paid, because a customer declined at
            checkout and paying an hour later from the pay link arrives here for
            the first time with a stale creation date: 35 of 1320 paid registered
            labs orders were paid more than an hour after creation. Past all
            that, a registered order renders checkout/thankyou-redacted.php,
            which carries order number, date, status and total, no name, email,
            address, phone or items, and the branded sign-in card; a guest order
            returns to core, whose email-verification form this renderer used to
            discard. Staff and the signed-in customer are unaffected.
            A draft of this release also trusted the WooCommerce session email,
            on the reasoning that a cookie beats a URL that leaks. Review showed
            it is not a signal at all: the Store API route
            /wp-json/wc/store/v1/cart/update-customer has permission_callback
            __return_true, and the billing_email it accepts is stored with the
            prefix stripped, on exactly the key that check read. One
            unauthenticated POST set the viewer's own session email to any
            address, so anyone with a leaked key who also knew the billing
            address, which travel together in a forwarded confirmation, had
            unlimited access past both the window and the guest handback. Core
            carries the same comparison and is not wrong to: it only ever uses it
            to skip an email challenge on a guest order, never to unlock a
            registered customer's, which it gates on the auth cookie. Removed
            entirely rather than reordered, because dead code shaped like a
            security check is worse than none.
            Four further holes closed on the way. is_order_received_page() is
            true whenever ?order-received= is appended to /checkout/ or
            /checkout/order-pay/, because the endpoint registers a public query
            var, so appending it to a payment link removed the sign-in card and
            reproduced the v1.4.49 regression on demand; both call sites now use
            ksec_thankyou_is_confirmation_page(), which rejects a value that came
            from the request rather than the path. That test reads $_POST as well
            as $_GET, because WP::parse_request() falls back to the POST body for
            a public query var, so a $_GET-only test missed a POST to any
            checkout URL. ?key[]= reached hash_equals() as an array and
            served a zero-byte 200. And woocommerce_order_received_verify_known_shoppers
            is deliberately NOT honoured, reversing this release's first draft:
            core consults it to waive one login wall at one moment, while here it
            would waive redaction for ever, and the deployed PayPal plugin
            already returns false for any order carrying its cross-browser
            AppSwitch meta, a permanent order property, with the feature enabled
            on both blogs. The case it exists for is served by the date_paid arm.
            woocommerce/global/form-login.php serves this route as well as
            order-pay, with copy pointing at the password reset, since these
            accounts have no password the customer ever chose. The redacted view
            fires woocommerce_thankyou into a discarded buffer: thankyou.php
            fires it on every render, and the Request a Quote flow in
            ksec-labs-snippets bootstraps on it and nothing else, so staying
            silent would have stopped quote emails and reminders with no log
            line. The discard is hardened rather than assumed: the buffer's
            callback returns an empty string, so a listener calling exit cannot
            have its output flushed to the browser by PHP's shutdown, and the
            level is recorded and unwound so a listener leaving a buffer open,
            or closing one too many, cannot reach the page either. Verified
            against all four of those listener shapes. Three listeners are
            removed before it fires: the two thankyou.php also removes, since
            rendering markup only to discard it is work an unauthenticated
            reload can ask for, and CommerceKit's order-bump sales writer, which
            has no per-order guard and is keyed off a cookie the viewer sets, so
            a key holder could inflate store-wide sales and revenue options by
            reloading. A redacted revisit is not a conversion.
            The handback to core is conditional, not blind. Core skips
            verification outright when an order carries no billing email, and a
            plugin can waive it on core's own filter: the deployed PayPal
            integration returns false there for any cross-browser AppSwitch
            order with no freshness condition, which would have restored through
            the adjacent door exactly the permanent grant that dropping
            verify_known_shoppers closed. Both cases now redact instead.
            Probing that filter with true as the base is what tells a plugin
            waiving regardless from one passing the value through, so a guest
            who has just proved their address on core's own form still reaches
            their order. The redacted hero no longer shows the order total: the
            link holder may already know it, but the Referer channel means a
            third-party script host should not learn what a customer spent.
   v1.4.49: Payment links rendered WC's "Please log in to your account below to
            continue to the payment form." notice with no form under it, so a customer
            sent an order-pay URL while signed out had no way to pay. The thank-you
            page's login suppressor hooked woocommerce_locate_template, and
            wc_get_template() caches what that hook returns in the PERSISTENT object
            cache under a key built from the template name and the WC version alone.
            No page context in it, so whichever request resolved global/form-login.php
            first decided it for every page until the cache was cleared. Measured on
            2026-09-22, the cached value was this theme's empty-stub.php, which is why
            the notice printed and nothing followed it. Moved to the wc_get_template
            filter, which runs after the cache read on every call, so the condition is
            evaluated per request and cannot leak between pages. Adds
            woocommerce/global/form-login.php, rendering the same account card as
            /my-account/ on the order-pay route only; every other caller of
            woocommerce_login_form() falls through to WC core's template
            untouched. Correction from the review: this entry first said the
            same cache entry had emptied the checkout "returning customer"
            toggle. It had not. Both checkout pages on this network are block
            checkouts, so checkout/form-login.php never renders here. The only
            other reachable caller is the thank-you page's own login prompt.
            Deploy note: tools/theme-deploy.sh now clears the WooCommerce
            template cache per blog after the rsync, because that cache has no
            TTL and would otherwise keep serving the old path and let this fix
            ship inert.
   v1.4.48: My Account orders list: the machine readable date was an hour ahead during
            BST. woocommerce/myaccount/orders.php built the <time datetime> attribute
            with WC_DateTime::date('c'). That method is gmdate() over an offset-shifted
            timestamp, so it renders the LOCAL wall clock while hardcoding the offset to
            +00:00. Measured on labs order 68920: date('c') returned
            2026-07-30T22:31:28+00:00 for an instant that is really 21:31 UTC, while the
            visible text beside it from wc_format_datetime() read 22:31 and was right.
            So nothing looked wrong on screen and only the machine readable half was
            broken, which is what assistive tech and structured data readers parse.
            format('c') keeps the same wall clock and emits the true +01:00. Both agree
            in GMT, which is why this survived since 1.4.0 and only shows up between
            March and October. The same template serves eu (Europe/Brussels), where the
            claim was two hours out rather than one. Also hoists get_date_created() into
            the loop and drops the <time> element when it returns null: wc_orders
            .date_created_gmt is a nullable column, so the unguarded dereference was a
            latent fatal on a customer facing page. 0 of 10,407 live orders across blog
            4 and blog 8 currently have a null there, so this is a guard and not a
            repair.
   v1.4.47: Give the full width row an outer gutter. Dropping the cap in 1.4.46 left
            the sidebar 10px from the browser edge, .col-full's own padding, which
            reads as cramped rather than deliberate. The row now carries the outer
            gutter and .content-area keeps its own padding, because that one is what
            makes the gap BETWEEN the columns. Two paddings doing two jobs.
   v1.4.46: Drop the 1200px row cap and left-align the measure against the rail.
            1.4.45 capped the row because at full width the 768px prose was stranded
            in the middle of a 1444px column behind 338px of dead space each side.
            With the sidebar now carrying real content the operator wants the full
            width layout back, and the cap is the wrong half of that trade to keep.
            The dead space was never caused by the width, it was caused by CENTRING a
            capped measure inside a much wider column. Left-aligning it puts the text
            hard against the sidebar and moves all the slack to the right margin,
            which is how every full width documentation layout handles this. Measure
            goes 48rem to 52rem (about 81 characters) since the page is no longer
            fighting for room. Featured image and product grids left-aligned to match,
            or they would float in the middle of a left-aligned article.
            Known trade: on a very wide screen there is a lot of right margin. The
            honest fix for that is a second rail, a contents list, not a wider line.
   v1.4.45: Cap the post ROW at 1200px and style the sidebar. With the sidebar on
            and content width at the theme default 76, measured at 1920: sidebar 323px
            hard against the left edge, a 133px gap, then a 1444px column with the
            768px prose stranded behind 338px of dead space each side. Capping the row
            rather than the paragraph is the honest answer to "can it be wider": the
            page narrows, the measure holds, and the leftover width goes to the rail.
            Scoped to .shoptimizer-archive > .col-full because SEVEN .col-full elements
            exist on the page and only this one holds #primary and #secondary.
            Sidebar made sticky above 993px, since a guide runs to 5000px and a rail
            that scrolls away after one screen may as well be at the foot of the page,
            which is exactly where it was before the content width was corrected.
   v1.4.44: Let Shoptimizer's floated product rail work. blog.min.css already has
            .single-post ul.products.columns-1 floating right at 300px with a left
            border, a deliberate in-prose recommendation aside that columns="4"
            bypasses. The panel treatment from 1.4.41 would box that float and
            defeat it, so a wrapper containing a columns-1 list opts out.
   v1.4.43: Measure moves from 72ch to a single --kk-measure of 48rem. ch resolves
            against each element's own font-size, so the fluid body type added in
            1.4.41 widened the paragraphs to 772px while .entry-header, outside
            .entry-content and still at 16px, stayed at 727px, leaving the title
            inset 23px from the prose beneath it. A relative unit that depends on
            the very thing another rule changes is a trap; rem does not move.
   v1.4.42: Name h1.entry-title explicitly in the title alignment rule. Shipped in
            1.4.41 targeting .entry-header alone and measured afterwards: the header
            computed left while the h1 stayed centred, because h1.entry-title sets
            text-align itself and beats inheritance from its parent. Caught by
            checking the deployed page rather than trusting the diff.
   v1.4.41: The blog gets styled at all, for the first time. (1.4.40 was this same
            change set without the side gutter; it never shipped, so it is folded in
            here rather than released twice.)
            Side gutter added at EVERY width: the measure centres the prose but adds
            no edge breathing room, and the only gutter the theme gave was .col-full's
            10px desktop / 15px mobile. Padding goes on .content-area and the measure
            stays on the children, because padding inside a max-width box narrows the
            text rather than insetting it. Ungated by media query on purpose: mobile is
            the width that needs it most and the measure rules deliberately skip it.
            Body type is now fluid. Shoptimizer's own
            article.post .entry-content { font-size: clamp(...) } is DEAD CODE on a
            single post, because content-single.php wraps it in a <div id="post-N">
            rather than an <article>: measured, zero <article> elements on the page. So
            body copy was a flat 16px with a hard step to 15px under 768px. Written
            directly here, 16px to 17px.
            scroll-padding-top set to 74px against the 54px sticky .col-full-nav, so a
            table of contents can be added later without that being a hidden
            prerequisite nobody remembers. Before this the child
            theme had ZERO rules matching single-post, body.blog or article.post,
            against 271 uses of var(--ksec-*) elsewhere, so the storefront was
            designed and a post was stock Shoptimizer. That is the whole of why a
            guide "looked basic": not a taste problem, an absence.
            Four of the seven changes fix measured defects rather than appearance.
            (1) Prose measured 1708px at a 1728px viewport, 189 characters per line
            against a comfortable 45 to 75. Cause traced: shoptimizer_layout_singlepost
            is singlepost-layout-two, which hides #secondary, and the SIDEBAR was the
            only thing constraining the column. Nothing replaced it and
            shoptimizer_layout_content_width is 100. Going back to Layout One would
            "fix" it by restoring a sidebar no guide wants, so the prose is capped at
            48rem instead, via --kk-measure, so every element resolves the same number.
            (2) Body links were #05c687, Shoptimizer demo green, at 2.23:1 on white
            against the 4.5:1 AA floor, shown 50-plus times in one guide. Now
            --ksec-brass-text at 6.61:1. NOT changed via
            shoptimizer_color_general_links, which is site-wide and would repaint the
            storefront.
            (3) H3 rendered LARGER and heavier than H2 below about 664px: H2 carries a
            clamp under 768px, H3 has no responsive rule, and Additional CSS sets a
            global h2 weight 500 while H3 keeps 600. Measured at 375px: H2 22px/500,
            H3 24px/600, so the document outline was upside down on every phone.
            (4) H3 had margin-top 0, so a subheading sat closer to the paragraph above
            it than a paragraph does, grouping it with the wrong section.
            Also: [products] grids read as a bounded block rather than a full-bleed
            slab, and the :has(+ h2) line undoes Shoptimizer's own zeroing of their
            bottom margin, which made every grid look like it belonged to the section
            below it. Featured image capped to a 320px cover band because
            shoptimizer_post_thumbnail_no_link emits the_post_thumbnail('full') with no
            wrapper and the guide images are 1000x1000 squares.
            New token --ksec-brass-text: #7a561d. Added rather than reusing
            --ksec-gold-dk (#8a6d3b, 4.85:1) because body copy wants headroom, and it
            is already the value ksec-collections uses for the same decision.
            Panel greys are reused, not invented: #e6e8ec is this file's border grey in
            nine other places and #f6f8f9 is the ksec-collections ground, so a guide
            and the My Kit page it links to sit on the same surface.
            style.css is served from the CDN under /lib/ with ?ver= from this Version
            header, so this bump IS the cache key, per the rule below. LiteSpeed
            critical CSS has the old .entry-content type frozen in its blob and mobile
            is a separate cache entry, so purge by tag and expect one stale first frame.
            Affects all 18 published posts, which is the intent: every one of them was
            unconstrained, green-linked and inverted on mobile.
   v1.4.39: Stock colours say what they mean. Red now means out of stock, the one
            state a shopper cannot buy. The 1-2-left band moves to the same amber
            as low stock, keeping its own class and its pulse so urgency survives.
            Out of stock was grey, which read as disabled rather than unavailable,
            and red was spent on "Only 2 left in stock (More available on order)",
            which told the shopper the opposite of the words beside it. Applied to
            the main PDP stock line here and to the bundle components panel in
            ksec-labs-snippets in the same pass, so one page cannot show two
            different meanings for the same colour.
   v1.4.38: Drop the uppercase and 0.08em tracking from .ksec-trade-head, kept from
            when it was 10.1px. At that size they read as a small label; at the 16px
            set in 1.4.37 they made it the loudest thing in the column and heavier
            than the sentence-case .ksec-b2b-headline it had just been resized to
            match, which defeated the point of the resize. Size parity is not parity
            on its own. awdr-bulk-table.css ?ver= literal bumped 1.2.0 to 1.3.0 in
            functions.php in the same commit, per the CDN cache-key rule above.
   v1.4.37: Sub-headings on the PDP trade block standardised to 16px and their sub
            text to 13px. .ksec-trade-head was 10.1px and .ksec-b2b-headline 13px, so
            two headings doing the same job on the same column were sized a third
            apart. .ksec-b2b-headline / .ksec-b2b-sub are set in BOTH awdr-bulk-table.css
            and here: the single-product rules below win on the PDP, and the other file
            is changed in step so the two cannot drift. .ksec-trade-head keeps its
            uppercase and 0.08em tracking, which at 16px is louder than it was at
            10.1px; raised for review rather than changed unasked.
            awdr-bulk-table.css is enqueued with a HARDCODED ?ver= literal in
            functions.php, bumped to 1.2.0 in the same commit. The file is served from
            the CDN under /lib/, so that string is the only cache key that changes and
            editing the CSS alone leaves the old copy served for the full TTL. This
            exact trap cost a redeploy cycle on the 2026-08-09 trade repositioning, on
            these same selectors.
   v1.4.28: Close the MOBILE media query in ksecsp.css. It opened at line 378
            and never closed, so the 40 rule blocks after it, including the whole
            Composite Products set and the trailing WPC .woobt-products rules, were
            scoped inside max-width:767px and applied on mobile only. The brace was
            lost in the "Backlog of changes" commit, which removed a ul#menu-main-menu
            rule and took the closing brace with it. Browsers recover by treating EOF
            as a close, so nothing rendered broken: the rules were simply inert above
            767px. Closing it restores those rules to global scope, which is where the
            file's own nested max-width:767px blocks show they were always meant to be.
   v1.4.25: Fix troubleshooting tiles rendering the terminal icon. Troubleshooting.md
            sits under .../Installation_Instructions/ in the Iceman docs, so the
            v1.4.24 terminal rule matched it and won on source order. Re-asserted the
            life-ring after the keyword blocks. A page about what to do when it broke
            is not a page about installing it.
   v1.4.24: Eight more linkhub icons. v1.4.23 leaned too hard on the book fallback:
            on the Proxmark page it carried the four OS install guides, the build
            options, the verification walkthrough and the cheat sheet, four kinds of
            destination wearing one glyph. Adds terminal (shell work), checklist (a
            sequence you follow once), reference (a table you return to), chip
            (hardware, firmware, protocol, whitepaper), tool (third-party tooling),
            question (FAQ), heart (Patreon) and cart (our own products, which are a
            purchase not a reference). Cascade order is the design: generic host
            first, path keyword refines, KSEC and data-icon override last.
   v1.4.23: Icons on .ksec-linkhub tiles, chosen by link DESTINATION rather than by
            markup. An icon picked by hand in post_content drifts the moment a link
            is repointed and would have to be retrofitted to every tile already
            published; host matching applies to all of them for free. Drawn as CSS
            masks so the glyph inherits currentColor and follows the tile hover,
            with inline data URIs so it costs no extra requests. Generic shapes, not
            the services' brand marks: eight competing corporate logos in one grid
            reads as noise. Per-tile override via data-icon="repo|docs|video|
            download|app|fix|ours|chat". CSS-only, labs + eu.
   v1.4.22: Light .ksec-cta-banner--value variant. Inverts the banner for the
            light content surface (tinted gold panel, ink text, black button)
            plus a __list element, so a page can carry an in-the-box/value
            banner AND the dark community CTA without two dark slabs competing.
            For the RDV4.01 Kit and Complete Kit descriptions. CSS-only, labs + eu.
   v1.4.21: Cap .ksec-linkhub at 4 columns. Found in QA on labs 6461: the product
            description column is ~1560px on desktop, so minmax(210px,1fr)
            auto-fit filled 7 tracks and stranded a single orphan tile on row 2
            of the 8-tile hub. Each track is now at least (100% - 30px)/4, which
            caps the count at 4 and lands the three hubs at 4+2, 4+4 and 4. The
            210px floor still governs below ~880px, so the mobile step-down to
            3/2/1 columns is unchanged. CSS-only, labs + eu.
   v1.4.20: Community CTA banner. Adds .ksec-cta-banner (dark navy surface, accent
            rule, single button) so a product description can recommend one
            external community without it reading as a second Add to basket. The
            button deliberately uses --ksec-btn-on-dark rather than the community's
            own brand colour; the brand colour is carried only by the accent rule,
            set per instance via --ksec-cta-banner-accent. First use is the Iceman
            RFID Discord on the Proxmark 3 Easy (labs product 6461). CSS-only,
            additive, labs + eu.
   v1.4.19: Product description link hub. Adds two reusable content-side classes,
            .ksec-linkhub (responsive button grid) and .ksec-note (gold-rule
            callout), so a long product description can point at upstream
            documentation as a set of buttons instead of restating it in prose.
            Added for the Proxmark 3 Easy (labs product 6461), whose description
            now links into the RfidResearchGroup docs tree rather than duplicating
            it. Ghost/secondary styling per the button token system so the tiles
            never compete with the Add to basket primary CTA. Class names are a
            contract with post_content: renaming them breaks the descriptions
            that use them. CSS-only, additive, labs + eu.
   v1.4.18: Product-loop image fills the square (desktop + mobile). The v1.4.7
            loop normalisation set the img to fill its wrapper but left
            Shoptimizer's ~22px padding-bottom (PLP carousel pagination reserve)
            on .shoptimizer-plp-image-wrapper, so the img box was 160x138 not
            160x160. Square product photos letterboxed (white side bars) and did
            not reach the absolute stock-status ribbon pinned to the square's
            bottom, which stood out once ksec-labs-ui 1.4.87 made the hero
            featured card fill flush. Zeroed padding-bottom on the ul.products /
            .ksec-tah-row__grid wrappers so images fill edge-to-edge and the
            ribbon overlays the bottom. labs + eu (shared theme).
   v1.4.17 — Backorder ETA badge mobile wrap. The .ksec-bo-badge ETA pill
            ("En Route · Arriving <date>", ~165px nowrap) was clipped by the
            ~148px 2-column mobile card (card overflow:hidden). Wrap to two lines
            and cap to card width on <=600px so the full ETA shows. Override
            lives here (not ksec-backorder-manager) to keep it off that plugin's
            deploy path.
   v1.4.16 — EU community-tab comment: force .comment-meta to width:100%. The
            wp-discourse footer.comment-meta shrinks to the avatar (~54px), so
            the nowrap date overflowed onto the avatar/name on the live render.
            Full-width meta restores author-left / date-right. Completes v1.4.15.
   v1.4.15 — EU community-tab overlap fix. wp-discourse's populated-thread
            comment markup floats .comment-meta and .comment-content, collapsing
            the comment <article> so the avatar, author, date and body overlapped
            (visible on eu.ksec.co.uk product pages where the shared forum topic
            has a reply). Neutralise the floats and lay the comment out cleanly:
            avatar + author row with the date pushed right, body full-width below,
            "Join the discussion" link kept beneath the thread. CSS-only.
   v1.4.14 — EU floater position. Pin the desktop TranslatePress floating
            switcher flush to the right edge (right:0 !important). TP writes
            --right as an inline style on the nav, which shadows any stylesheet
            --right override, so the final `right` property must be set to win.
            Desktop-scoped (min-width:993px); floater is hidden below that. eu only.
   v1.4.13 — EU mobile language switcher. eu.ksec.co.uk (blog 8) TranslatePress
            floating switcher (.trp-floating-switcher) is now desktop-only:
            hidden at mobile widths, where TP's [language-switcher] is instead
            rendered as the last item in the Shoptimizer mobile drawer (injected
            server-side in functions.php, gated by ksec_is_eu() and the mobile
            container class). Selectors are inert on labs/UK, which has no
            TranslatePress. eu only.
   v1.4.12 — Side cart stacking fix. The desktop top bar carries z-index:1002
            (so the currency dropdown clears the white nav below it), which left
            it stacked above the side cart slide-out (drawer z-index:102, backdrop
            z-index:100), so the navy bar poked through the dimmer and over the
            open drawer. Added body.drawer-open .top-bar { z-index:1 } (desktop)
            to drop the bar under the drawer while the cart is open. Mobile was
            already covered (.mobile-toggled.drawer-open .top-bar display:none).
            labs + eu.
   v1.4.11 — EU site-title branding. eu.ksec.co.uk renders the WP blogname
            "KSEC Europe" as a text .site-title (labs/UK uses the image/wordmark
            logo via get_custom_logo, so it has no .site-title — making this
            selector eu-only). (1) Added the missing ® after KSEC and (2) set the
            wordmark to 22px. CSS can't insert ® mid-string, so the anchor text
            is hidden (font-size:0) and re-rendered via ::after as "KSEC® Europe"
            — keeps the real blogname in the DOM for SEO/screen-readers.
   v1.4.10 — Loop image corners + picks inset. (a) Rounded loop image corners to
            10px. Because v1.4.7 put overflow:hidden on .woocommerce-image__wrapper,
            the wrapper (not the img) is the clipper, so the radius must live on
            the wrapper to be visible; img radius set to match. (b) Removed the
            labs-ui 10px padding inset on picks-rail images (.ksec-tah-picks-grid
            … img) so they fill the square edge-to-edge — higher-specificity
            override (body-prefixed) of the plugin rule. labs + eu.
   v1.4.9 — Compaction follow-up: the v1.4.8 title rule used the bare
            `.woocommerce-loop-product__title` selector, which tied on
            specificity with the live Customizer rule (min-height:71px) and lost
            on load order (Customizer prints last). Re-scoped to
            `.woocommerce-card__header .woocommerce-loop-product__title` (0,2,0)
            so 45px wins without !important. padding-top:5px was already winning
            (parent default) and is unchanged.
   v1.4.8 — Loop-card compaction: .woocommerce-card__header padding-top 12px→5px
            (parent Shoptimizer default was low-specificity, plain rule wins) and
            .woocommerce-loop-product__title min-height 45px on the main grid.
            Both unscoped/non-important so the picks-rail keeps its own 50px title
            min-height (labs-ui, higher specificity). labs + eu.
   v1.4.7 — Fix: product-loop image box left an ~18px dead white strip below
            non-square product images (parent Shoptimizer sizes
            .woocommerce-image__wrapper taller than the image fills). The
            Customizer card CSS masked it by pulling .ksec-loop-brand up with
            top:-13px, which only relocated the gap to below the brand bar.
            Mirrored the related/up-sells aspect-ratio:1/1 + object-fit:contain
            normalisation across homepage rows (.ksec-tah-row__grid) and
            shop/category archives (ul.products), and dropped the brand-bar
            top offset (!important — the live offset lives in Customizer, which
            prints after theme styles). Also nudged the mobile PLP carousel
            pagination dots up (bottom:20px ≤992px). Verified desktop + mobile
            render zero strip. Applies to labs + eu (shared child theme).
   v1.4.6 — Fix: Training mega-menu overlay photos were clamped to 200px tall
            (the generic desktop `li.menu-item-image img { max-height:200px }`
            cap out-specified the unscoped `.ksec-training-panel` fill rules via
            its longer child-combinator chain), leaving a dark strip under the
            CTA. Re-asserted the fill with the full chain + panel class inside
            the ≥993px media query so the image covers the card edge-to-edge.
            Square Shop category thumbnails keep the 200px cap.
   v1.4.5 — Thank-you template: country fallback for orders with no address
            now defaults to BE on the EU store (was always GB), so the
            order-received map's home view is EU-appropriate. (Rest of the
            template was already eu-aware: EU centroids + ksec_is_eu()
            warehouse branching.)
   v1.4.4 — Generalised the Training split-card panel CSS from the hardcoded
            labs menu-item ID (#nav-menu-item-62089) to a shared
            `.ksec-training-panel` class (same pattern as Resources/v1.4.1),
            so the EU store's Training dropdown renders the image-overlay
            cards (eyebrow/title/body/CTA) instead of plain Shop-style cards.
   v1.4.3 — Fix: with the Resources panel CSS now class-based, the "hide legacy
            items" rule lost to the generic plain-link cell rule (one more
            class-selector), re-showing labs' old Lock Picking Guides / RFID /
            Gift cards items as broken pills. Made the hide rule !important.
   v1.4.2 — Fix: res-col text columns in the generalised Resources panel were
            spanning full width because the generic `li.heading { grid-column:
            1 / -1 }` rule out-specified the class-based res-col rule (the old
            ID selector had won on specificity). Prefixed the .ksec-res-panel
            rules with `.main-navigation ul.menu` to restore the column layout.
   v1.4.1 — Generalised the Resources mega-panel CSS from the hardcoded
            labs menu-item ID (#nav-menu-item-36335) to a shared
            `.ksec-res-panel` class, so the EU store's Resources dropdown
            (Forum/Training cards + Lock Picking Guides/RFID/Get-help text
            columns) renders identically to labs. Grid switched to auto-fit
            to handle differing column counts per site.
   v1.4.0 — Theme is now single-source for BOTH labs UK and ksec.eu EU stores,
            replacing the drifted ksec-store-sp-eu fork. Added ksec_is_eu()
            helper (functions.php, blog 8, filter: ksec_eu_blog_id). Two
            store-specific branches: (1) checkout/thankyou.php fulfilment
            origin — EU ships from the Brussels EU warehouse, UK from East
            Sussex; (2) advanced_woo_discount_rules/discount_table.php — the
            UK-only KSEC B2B apply banner is hidden on EU. Currency/VAT stay
            settings-driven per blog (WCML), not branched.
   v1.3.96 — Mega menu "Quick links" bar at the bottom of the Shop dropdown panel
             (All Products / Latest Products / Deals & Offers / Best Sellers /
             Shop by Brand) — utility links not present elsewhere as menu items.
             Server-rendered via ksec_mega_quicklinks_bar() (functions.php),
             light-on-dark pills. Replaces the on-page quick-links strip that was
             removed from ksec-labs-snippets.
   v1.3.95 — Mega menu caret: add !important to the panel-caret hide rule. v1.3.94
             only hid 2 of the 4 Resources column-title carets because Shoptimizer
             sets display:block on child-bearing items at equal specificity and
             won source order on the other two.
   v1.3.94 — Mega menu: hide the redundant caret (▾) on column-title rows inside
             full-width mega panels (the titles already have a border-bottom).
             Scoped to carets inside .sub-menu-wrapper so the top-level item
             caret (e.g. "Resources") is kept. Only the Resources panel has
             child-bearing column titles today.
   v1.3.93 — Breadcrumb band: switched product crumb from B2 (dark continuity)
             to B3 (LIGHT content strip) after live review. Product
             .archive-header is now a light band (#f6f8fa) with a 2px gold
             top-border dividing it from the dark menu, cyan-dk links, dark-bold
             last crumb, radial overlay off. Reverted B2's nav gradient (nav
             back to flat navy) and B2's border overrides on 404/search (those
             stay dark HERO bands). Top-bar A3 gleam unchanged.
   v1.3.92 — Header chrome polish (2 elements):
             • Top-bar (A3-slowed): added a 2px cyan-led gleam hairline along
               the bottom edge (~10s background-position animation, low
               contrast, reduced-motion fallback to a static line). Replaces
               the old flat navy-darker border-bottom.
             • Breadcrumb band (B2): re-connected to the menu as one chrome
               block — primary-navigation now darkens (navy-darker -> navy) and
               the .archive-header band continues that gradient (navy ->
               navy-2) with no seam, finished with a 2px gold base accent. The
               inner top hairline (the "disconnected" line) is removed. Applied
               to product + 404/search archive-headers for consistency.
   v1.3.91 — Fix: mobile off-canvas drawer hidden behind top bar (regression).
             The desktop currency-dropdown fix set `.top-bar { z-index:1002 }`
             globally, which painted the top bar over the fixed drawer
             (.col-full-nav z-index:102) on mobile, hiding the drawer search
             box + first menu item. Scoped the z-index:1002 to @media
             (min-width:993px) so the drawer overlays the bar on mobile.
*/

@font-face {
  font-family: 'SpyAgency';
  src: url('https://cdn.ksec.co.uk/shared/SpyAgency.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   LABS MEGA MENU REDESIGN — v1.2.0 (spec: wp-ad-s1.ksec.co.uk/docs/labs-megamenu-render.html)

   Tokens mirror the homepage + footer system (ksec-labs-ui CSS).
   Targets Shoptimizer's native walker output (selectors verified against
   themes/shoptimizer/assets/css/main/main.min.css to win specificity):
     - .main-navigation ul.menu li.full-width                  top-level mega items
     - .sub-menu-wrapper > .container > ul.sub-menu       panel container chain
     - li.menu-item-image                                 image cards
     - li.heading                                         section heading rows
     - .secondary-navigation                              utility bar

   Verified Shoptimizer JS classes (themes/shoptimizer/assets/js/main.min.js):
     - body.mobile-toggled    burger-open state (NOT .main-navigation.toggled)
     - body.keyboard-active   added on first keydown — scope focus-visible
     - li.dropdown-open       per-item accordion expand on mobile
     - Desktop breakpoint     @media (min-width: 993px); mobile = max-width: 992px

   Interaction (hover / burger / accordion) untouched — owned by
   Shoptimizer's main.min.js. Memory: labs-lscache-shoptimizer-main-js —
   do NOT remove that file from LSCache JS Delayed Excludes.
   ========================================================================== */

:root {
  --ksec-cyan: #03c4eb;
  --ksec-cyan-dk: #02738a;
  --ksec-gold: #c5a572;
  --ksec-gold-dk: #8a6d3b;
  /*
   * Brass for TEXT, separately from --ksec-gold-dk. #8a6d3b is 4.85:1 on
   * white, which passes AA with almost no headroom; #7a561d is 6.61:1. Body
   * copy in a long guide is the one place worth the extra margin, and this is
   * already the value ksec-collections uses for the same reason, so the two
   * agree rather than each inventing one.
   */
  --ksec-brass-text: #7a561d;
  --ksec-btn-primary: #1a1a1a;
  --ksec-btn-primary-text: #ffffff;
  --ksec-btn-primary-hover: #000000;
  --ksec-btn-on-dark: #ffffff;
  --ksec-btn-on-dark-text: #1a1a1a;
  --ksec-btn-on-dark-hover: var(--ksec-gold);
  --ksec-navy: #0f1419;
  --ksec-navy-2: #1a2330;
  --ksec-navy-darker: #0a0d11;
  --ksec-line-dark: rgba(255, 255, 255, 0.08);
  --ksec-dim: rgba(255, 255, 255, 0.65);
  --ksec-dim-2: rgba(255, 255, 255, 0.82);
}

/* ---------- Primary nav bar ---------------------------------------------- */

.shoptimizer-primary-navigation {
  background: var(--ksec-navy);
  border-bottom: 1px solid var(--ksec-navy-darker);
}

.main-navigation,
.main-navigation ul {
  background: transparent;
}

/* ---------- SpyAgency text wordmark (replaces Customizer logo image) ----- */
/* Operator preference: text wordmark instead of uploaded logo. The
   Customizer logo image is hidden via CSS rather than removed (avoids
   touching site identity options). Pseudo-element prints "KSEC® Worldwide"
   in SpyAgency so the brand mark scales cleanly across breakpoints. */

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

/* If a logo image is set in Customizer → Site Identity, hide it so the
   ::after wordmark renders alone. Recommended: remove the image entirely
   in Customizer (Site Identity → Remove logo) — Shoptimizer then renders
   the site-title text element instead, which we style below. The CSS
   handles both states. */
.custom-logo-link img,
.custom-logo,
img.custom-logo {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* When the logo image is removed in Customizer, Shoptimizer renders the
   site title as an <h1 class="site-title"> or <a> text. Style it to
   match the SpyAgency wordmark treatment so it reads identically. */
.site-branding .site-title,
.site-branding .site-title a {
  font-family: 'SpyAgency', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: normal;
  color: var(--ksec-ink, #0f1419);
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

/* Text-based wordmark replacement for the Customizer custom_logo.
   Output by ksec_custom_logo_text() filter in functions.php — always
   renders this regardless of Customizer image state. */
.custom-logo-link.ksec-text-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.custom-logo-link.ksec-text-logo .ksec-wordmark {
  font-family: 'SpyAgency', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(15px, 2.2vw, 22px);   /* 15px mobile → 22px desktop, fluid between */
  font-weight: normal;
  color: var(--ksec-ink, #0f1419);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.custom-logo-link.ksec-text-logo .ksec-wordmark sup {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.4em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  margin-left: 1px;
  letter-spacing: 0;
  opacity: 0.85;
}

/* Customizer preview adds an inline edit-shortcut button that can
   visually clutter the wordmark area. Hide it in front-end preview. */
.custom-logo-link .customize-partial-edit-shortcut {
  display: none !important;
}

/* Complianz cookie consent banner reuses our get_custom_logo output via
   its own cmplz-logo container. The full-size SpyAgency wordmark blows
   the banner layout; shrink it to a tiny inline mark. */
.cmplz-logo span.ksec-wordmark {
  font-size: 7px !important;
}

/* Shoptimizer's `.logo-mark` is the sticky-nav scroll-state logo (appears
   in the col-full-nav when the page scrolls). It uses a separate <img>
   (KSEC-RTM-White.png.webp) that doesn't go through get_custom_logo, so
   our text-wordmark filter doesn't replace it. Hide the img and inject
   a small white SpyAgency text wordmark via ::before to match the dark
   sticky bar chrome. */
.logo-mark img {
  display: none !important;
}

.logo-mark a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-mark a::before {
  /* Sticky nav uses the short "KSEC®" wordmark only — full "KSEC® Worldwide"
     duplicates the main header brand once stuck. Operator 2026-05-24. */
  content: "KSEC\00AE";
  font-family: 'SpyAgency', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: normal;
  color: #fff;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Primary nav height — 80px → 50px ---------------------------- */
/* Shoptimizer's Customizer sets the nav bar at 80px by default. Override
   here to keep it slim. Targets the wrapper, the inner col-full container,
   and the link padding so they all collapse together. */

@media (min-width: 993px) {
  .col-full-nav {
    min-height: 50px;
  }

  .shoptimizer-primary-navigation,
  .shoptimizer-primary-navigation .col-full {
    min-height: 50px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .main-navigation,
  .main-navigation .menu-primary-menu-container,
  .main-navigation ul.menu {
    min-height: 50px;
  }

  /* Top-level link padding shrinks to fit 50px (was 14px top/bot = 28px + line) */
  .main-navigation ul.menu li.menu-item > a {
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 22px;
  }

  /* Sticky-state nav also stays at 50px (Shoptimizer's is_stuck transform
     can briefly leave residual padding) */
  .col-full-nav.is_stuck,
  .is_stuck .col-full-nav {
    min-height: 50px;
  }
}

/* Note: an earlier ::after pseudo-element on .custom-logo-link also
   rendered "KSEC® Worldwide" — removed 2026-05-24 because the
   ksec_custom_logo_text PHP filter (functions.php) already outputs
   the real <span class="ksec-wordmark"> element. Having both
   produced a doubled wordmark. */

/* Top-level link — match Shoptimizer's `.main-navigation ul.menu li.menu-item > a` */
.main-navigation ul.menu li.menu-item > a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 14px 18px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.main-navigation ul.menu li.menu-item:hover > a,
.main-navigation ul.menu li.menu-item.current-menu-item > a,
.main-navigation ul.menu li.menu-item.menu-item-has-children:hover > a {
  color: #ffffff;
  border-bottom-color: var(--ksec-gold);
}

/* Keyboard focus ring — only when body.keyboard-active (avoids mouse-click rings) */
body.keyboard-active .main-navigation ul.menu li.menu-item > a:focus {
  outline: 2px solid var(--ksec-cyan);
  outline-offset: -2px;
  color: var(--ksec-cyan);
}

/* ---------- Mega panel (full-width items) -------------------------------- */
/* Selector chain matches Shoptimizer's own to win specificity (0,0,5,3) */

.main-navigation ul.menu li.full-width > .sub-menu-wrapper {
  background: var(--ksec-navy);
  border-top: 1px solid var(--ksec-navy-darker);
  border-bottom: 2px solid var(--ksec-gold);
  padding: 24px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
}

/* Quick-links pill bar — injected by ksec_mega_quicklinks_bar() into the Shop
   panel's .container, below the category cards (v1.3.96). Utility destinations
   not present elsewhere as menu items; pills are light-on-dark to match panel. */
.ksec-mega-ql-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 4px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.ksec-mega-ql-bar__lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9aa3ad;
  margin-right: 6px;
}
.ksec-mega-ql-bar__pill {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ksec-mega-ql-bar__pill:hover,
.ksec-mega-ql-bar__pill:focus {
  border-color: var(--ksec-gold);
  color: var(--ksec-gold);
}
/* Mobile drawer: the bar reuses the primary menu, so it appears inside the Shop
   accordion. Keep it readable and left-aligned there. */
@media (max-width: 992px) {
  .ksec-mega-ql-bar { padding: 14px 20px 4px; margin: 8px 0 0; }
}

/* Hide the caret (▾) on column-title rows inside a mega panel — the titles
   already carry a border-bottom so the caret is redundant clutter. Scoped to
   carets *inside* the panel, so the top-level item's own caret (e.g. the one
   next to "Resources") is preserved. In practice only the Resources panel has
   child-bearing column titles today; the rest have none. */
.main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper span.caret {
  display: none !important; /* !important: Shoptimizer sets display:block on
                              child-bearing items at equal specificity and wins
                              source order otherwise (same reason as the rule
                              that re-paints the caret white below). */
}

/* Desktop only: cap panel height + scroll if items overflow. On mobile
   the drawer accordion already manages its own scroll — applying this
   max-height there caused nested scrollbars and clipped content. */
@media (min-width: 993px) {
  .main-navigation ul.menu li.full-width > .sub-menu-wrapper {
    max-height: 600px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Cap image-card height so two rows of 4 cards fit inside the 600px panel.
   ~200px image + ~36px label + 14px gap × 2 rows ≈ 500px — leaves room for
   panel padding (48px) and the gold bottom rule. */
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image {
  max-height: 250px;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a {
  max-height: 250px;
}

/* Desktop-only height cap on the image wrapper. On mobile this leaks
   into the 110×110 fixed cards and causes overflow/scroll inside the
   sub-menu wrapper — scope to ≥993px so mobile uses its own dims. */
@media (min-width: 993px) {
  .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image .icon-wrapper,
  .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image img,
  .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image span.sub {
    aspect-ratio: auto;
    height: 200px;
    max-height: 200px;
  }
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper::-webkit-scrollbar { width: 8px; }
.main-navigation ul.menu li.full-width > .sub-menu-wrapper::-webkit-scrollbar-track { background: var(--ksec-navy-darker); }
.main-navigation ul.menu li.full-width > .sub-menu-wrapper::-webkit-scrollbar-thumb { background: rgba(3, 196, 235, 0.30); border-radius: 4px; }
.main-navigation ul.menu li.full-width > .sub-menu-wrapper::-webkit-scrollbar-thumb:hover { background: var(--ksec-cyan); }

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container {
  max-width: 1500px;
  padding: 0 28px;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, 1fr);
  background: transparent;
  padding: 0;
}

/* ---------- Image cards (menu-item-image) -------------------------------- */
/* Full chain through .sub-menu-wrapper > .container > ul.sub-menu to win against
   Shoptimizer's `…ul.sub-menu > li` (specificity 0,0,5,3) */

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ksec-line-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, background-color 0.15s;
  width: auto;           /* override Shoptimizer's width: 23% — let grid stretch */
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Stretch the link + its wrapping spans + the img to fill the card */
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a,
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a > span,
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a > span.sub {
  width: 100%;
  display: block;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image:hover,
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image:focus-within {
  border-color: var(--ksec-gold);
  transform: translateY(-2px);
  background: rgba(197, 165, 114, 0.08);
}

/* Suppress the inner <a>'s gold border-bottom on image-card variants.
   The top-level main-nav hover rule paints `border-bottom: 2px solid
   var(--ksec-gold)` on every `li.menu-item:hover > a` (good for the
   primary nav links + text sub-menu rows where the underline IS the
   hover affordance). On image-card rows that affordance is the tile
   outline + lift instead, so the inner underline reads as a doubled
   line sitting just inside the tile border. Reset it to transparent
   here. */
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image:hover > a,
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image:focus-within > a {
  border-bottom-color: transparent;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a {
  display: flex;
  flex-direction: column;
  padding: 0;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

body.keyboard-active .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a:focus {
  outline: 2px solid var(--ksec-cyan);
  outline-offset: -2px;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image .icon-wrapper,
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--ksec-navy-2);
  display: block;
  margin: 0;
}

/* Bottom padding for text label that sits after image inside <a>.
   See memory `shoptimizer-mega-menu`: description renders in <span class="sub">,
   icon-wrapper duplicates it. Padding hack works for both render paths.
   16px bumped from 12px per operator 2026-05-24 — labels were touching
   the bottom edge of the card. */
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a::after {
  content: "";
  display: block;
  padding-bottom: 16px;
}

/* Non-image-card grid items (e.g. "View all brands →" CTA at end of Brands
   panel): treat as a compact text-link footer cell. Without this they
   inherit grid stretch and end up tall/awkward. */
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item:not(.menu-item-image):not(.heading):not(.res-col) {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: 250px;
  width: 100%;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item:not(.menu-item-image):not(.heading):not(.res-col) > a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--ksec-gold);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(197, 165, 114, 0.4);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item:not(.menu-item-image):not(.heading):not(.res-col) > a:hover {
  background: rgba(197, 165, 114, 0.10);
  border-color: var(--ksec-gold);
}

/* Graceful fallback: menu-item-image LIs that have NO <img> in their
   description render as compact text-card placeholders rather than
   empty grey boxes. Affects items where admin forgot to add the
   description <img>, or text-link items mis-tagged as image cards. */
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image:not(:has(img)) {
  background: transparent;
  border: 0;
  transform: none;
  min-height: 0;
  padding: 8px 12px;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image:not(:has(img)):hover {
  background: rgba(3, 196, 235, 0.06);
  border-color: transparent;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image:not(:has(img)) > a {
  padding: 0;
  font-size: 13.5px;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image:not(:has(img)) > a::after {
  display: none;
}

/* ---------- Heading rows inside mega panels ------------------------------ */

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.heading {
  background: transparent;
  border: 0;
  grid-column: 1 / -1;
  padding: 6px 4px 8px;
}

.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.heading > a,
.main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.heading.nolink > span {
  color: var(--ksec-gold);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  pointer-events: none;
}

/* ---------- Full-width chrome (break out of 1316px boxed container) ------ */
/* Shoptimizer's body wrapper centers content at ~1316px. The top-bar and
   primary-navigation sit INSIDE that wrapper, leaving white slivers on
   either side. Use a ::before pseudo-element that paints navy beyond
   bounds — it does NOT create a stacking context (mega panels need to
   escape via z-index — see memory labs-shoptimizer-menu-cascade gotcha 3).
   v1.3.3 tried box-shadow alone; the shadow extended vertically below
   the nav and covered all page content. Pseudo-element approach is the
   right fix — set width 100vw with negative offset and z-index -1. */

body { overflow-x: clip; }

/* Strip .col-full's default horizontal padding from the .topbar-wrapper
   so the navy .top-bar inside extends edge-to-edge. Without this the
   wrapper's white padding shows on the left/right of the navy band.
   Discovered by operator 2026-05-24. */
.col-full.topbar-wrapper {
  padding: 0;
}

/* Site-wide desktop .col-full padding trimmed from 2.617924em (~42px)
   to 10px to give content more horizontal room — resolves UI overflow
   issues at the 1316px boxed-container width. Operator preference 2026-05-25. */
@media (min-width: 993px) {
  .col-full {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* ksec-labs-ui product-picks grid — trim the row padding to 10px and
   tighten the gap to 6px so picks-rows sit closer to the container
   edges and visually align with the new .col-full 10px gutters. */
.ksec-tah-row__grid.products,
.ksec-tah-row__grid {
  max-width: 1500px !important;
  width: auto !important;
  margin: 0 auto !important;
  padding: 0 10px !important;
  list-style: none;
  display: grid !important;
  grid-template-columns: repeat(var(--ksec-tah-row-cols, 5), minmax(0, 1fr)) !important;
  gap: 6px !important;
}
/* Tablet: 3-across. Theme rule above loads after the plugin's responsive
   breakpoints and overrides them, so we have to repeat the breakpoints here. */
@media (max-width: 980px) {
  .ksec-tah-row__grid.products,
  .ksec-tah-row__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
/* Mobile: 2-across. */
@media (max-width: 620px) {
  .ksec-tah-row__grid.products,
  .ksec-tah-row__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.top-bar,
.shoptimizer-primary-navigation {
  position: relative;
  background: var(--ksec-navy);          /* ensure inner bg matches in case ::before sits behind */
}

/* Top bar must out-stack the white main-navigation that follows it in the
   DOM, otherwise the open WCML currency dropdown is painted over / clipped
   by that bar. DESKTOP ONLY: on mobile (≤992px) the off-canvas drawer
   (.col-full-nav, position:fixed z-index:102) must paint OVER the top bar,
   otherwise the drawer's search box + first menu item are hidden behind it.
   The currency switcher lives inside the drawer on mobile, so the top bar
   has no dropdown to protect there. (Regression fixed v1.3.91.) */
@media (min-width: 993px) {
  .top-bar {
    z-index: 1002;
  }
  /* ...but the side cart slide-out (.shoptimizer-mini-cart-wrap z-index:102,
     backdrop .drawer-open:before z-index:100) must cover the top bar when
     open, otherwise the navy bar pokes through the dimmer and sits above the
     drawer. The currency dropdown has no reason to stay raised while the cart
     is open, so drop the top bar back under the drawer. Mirrors Shoptimizer's
     own body:has(.site.overlay) .topbar-wrapper idiom for the hover overlay. */
  body.drawer-open .top-bar {
    z-index: 1;
  }
}

.top-bar::before,
.shoptimizer-primary-navigation::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background: var(--ksec-navy);
  z-index: -1;
}

/* Ensure .top-bar direct children sit above the ::before so any
   future white-bg children don't cover the navy. */
.top-bar > * {
  position: relative;
  z-index: 1;
}

/* ---------- Header utility boxes (My account · Support · Checkout) ------- */
/* Shoptimizer "Header Layout 5" renders three .icon-wrapper boxes in the
   header. Default grey-on-grey looks stranded next to the new dark chrome —
   swap to soft-paper bg with cyan-dk accents. */

/* `.icon-wrapper` boxes (My account / Support / Checkout) — leave them
   to Shoptimizer's defaults. Earlier rounds tried border-only / cyan-fill
   variants; all were removed per operator 2026-05-24. */

/* ---------- Standard (non-full-width) sub-menu dropdowns ---------------- */
/* For top-level items WITHOUT the `full-width` class — Shoptimizer renders
   these as a simple CSS dropdown column. Restyle to match the dark chrome
   so Resources (now plain dropdown per spec) doesn't look like a stranded
   white panel. */

.main-navigation ul.menu > li.menu-item:not(.full-width) > .sub-menu-wrapper {
  background: var(--ksec-navy);
  border: 1px solid var(--ksec-navy-darker);
  border-bottom: 2px solid var(--ksec-gold);
  border-radius: 0 0 8px 8px;
  padding: 8px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
  min-width: 240px;
}

.main-navigation ul.menu > li.menu-item:not(.full-width) > .sub-menu-wrapper > .container {
  padding: 0;
}

.main-navigation ul.menu > li.menu-item:not(.full-width) > .sub-menu-wrapper > .container > ul.sub-menu {
  display: block;
  background: transparent;
  padding: 0;
  margin: 0;
}

.main-navigation ul.menu > li.menu-item:not(.full-width) ul.sub-menu > li {
  display: block;
  width: auto;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
}

.main-navigation ul.menu > li.menu-item:not(.full-width) ul.sub-menu > li > a {
  display: block;
  padding: 8px 18px;
  color: var(--ksec-dim-2);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
}

.main-navigation ul.menu > li.menu-item:not(.full-width) ul.sub-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ksec-cyan);
}

.main-navigation ul.menu > li.menu-item:not(.full-width) ul.sub-menu > li.heading > a,
.main-navigation ul.menu > li.menu-item:not(.full-width) ul.sub-menu > li.heading.nolink > span {
  color: var(--ksec-gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 18px 4px;
  pointer-events: none;
}

/* ---------- Top-bar: one 44px row (1.19.0 / MDP top-bar rebuild) ----------
   Until 1.19.0 the store opened with 107px of dark chrome: ksec-labs-ui's own
   54px EU band, a 1px white sliver, then this 53px widget row, all in the same
   navy and none of it aware of the rest. The band is gone (ksec-labs-ui 1.19.0
   injects its parts into this row instead), and these rules finish the job on
   the theme's side. Measured before: 54 + 1 + 53 = 107px. After: 44px. */

/* The sliver. `.topbar-wrapper` is white with a 1px #eee bottom border, which
   drew a hairline between the two old bands and now would draw one between
   this row and the header. The animated cyan gleam on `.top-bar::after`
   already supplies that edge, and has since 1.3.92. */
.col-full.topbar-wrapper {
  border-bottom: 0;
  background-color: var(--ksec-navy);
}

/* Shoptimizer re-pads the bar under its own 992px breakpoint:
   `@media (max-width: 992px) { .topbar-wrapper .top-bar { padding: 0.6rem 0 } }`
   in main.min.css. That is 9.6px top and bottom, which put the bar back to 63px
   on tablet while the row inside it was correctly 44px. The row sets its own
   min-height at every width, so the padding has nothing left to do. Specificity
   here is (0,3,0) against the parent's (0,2,0). The font-size clamp in that
   same parent rule is deliberately left alone: shrinking the type on a narrow
   screen is the right behaviour and is what keeps the notice readable once the
   ticker steps aside. */
@media (max-width: 992px) {
  .col-full.topbar-wrapper .top-bar {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Below 768px Shoptimizer stacks the four top-bar zones as centred blocks.
   The WCML dropdown is a 15.5em block inside that centred parent, and
   `text-align: center` does not centre a block box, so the currency switcher
   sat hard left under a centred notice and a centred chip. Auto margins fix
   the one element the theme's own rule cannot reach. */
@media (max-width: 768px) {
  .top-bar .wcml-dropdown {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile: TWO deliberate rows (1.21.0).

   Not the accidental three-block stack Shoptimizer gives below 768px, and not
   the single row 1.20.0 forced either. On a phone the row cannot hold the
   shipping notice, the ticker and a control at once: at 375px the notice alone
   wants ~285px of the ~355px available, so squeezing anything beside it
   truncated the notice, which is the operator's own copy and reads badly cut.

   So:
     row 1  the notice, full width, uncut
     row 2  the arrivals ticker, plus the currency switcher (labs) or the
            language switcher (eu)

   The ticker's product name ellipsis absorbs whatever row 2 is short of, which
   is the right thing to give up: a truncated product name still tells you a
   restock exists and the row is a link to the full list either way.

   This has to live in the CHILD THEME, not the plugin: main.min.css loads after
   the plugin's stylesheet, so an equal-specificity rule there loses. Selectors
   are one level deeper than Shoptimizer's to win on specificity, not order. */
@media (max-width: 768px) {
  .topbar-wrapper .top-bar .col-full {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 2px;
    column-gap: 10px;
    text-align: left;
    /* 6px, not the 10px used at desktop widths. Measured at 375px: the notice
       wants 358px and a 10px gutter leaves 355, so it truncated by three
       pixels. Four pixels back is the difference between the sentence reading
       and not. */
    padding-left: 6px;
    padding-right: 6px;
  }

  /* Row 1. */
  .top-bar .col-full .top-bar-center {
    order: 1;
    flex: 1 0 100%;
    min-width: 0;
    max-width: none;
    justify-content: center;
    text-align: center;
  }
  .top-bar .col-full .top-bar-center .textwidget,
  .top-bar .col-full .top-bar-center .textwidget p,
  .top-bar .col-full .top-bar-center .textwidget div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    /* Centred, which also matches eu, whose widget markup centres itself with
       its own inline style. labs' notice is a bare <p> and was inheriting the
       left alignment this block sets for the row. */
    text-align: center;
  }

  /* Row 2.

     `display` is set EXPLICITLY here, and that is the whole reason row two
     appeared empty on a phone. The Customizer emits, inline,
       `@media (max-width: 993px) { .top-bar-left.widget_text { display: none } }`
     to hide the side widget zones on mobile, which was the right call when
     those zones held nothing anyone needed. The ticker lives in the left zone
     and the currency switcher in the right, so both are now wanted. Setting
     order and flex without setting display left that rule untouched: the ticker
     reported `display: flex` with eight items loaded and never rendered, because
     its PARENT was `display: none`.

     Specificity is (0,3,0) against the Customizer's (0,2,0), so this wins
     without !important. */
  /* Row two is now its OWN BAND, not a second line of the same bar.

     With the currency switcher off the bar, the ticker is alone on row two, and
     alone on the same navy at the same size it read as a stray line of text
     rather than a component. A slightly lifted background and a hairline give
     it an edge to belong to.

     The negative margin cancels the row's 6px gutter so the band reaches both
     screen edges; the padding puts the content back where the gutter had it. */
  .top-bar .col-full .top-bar-left {
    display: flex !important;
    order: 2;
    flex: 1 0 100%;
    min-width: 0;
    max-width: none;
    align-items: center;
    background: var(--ksec-navy-2);
    border-top: 1px solid var(--ksec-line-dark);
    margin: 2px -6px 0;
    padding: 5px 10px;
  }
  /* The right zone is OFF on mobile.

     On labs it holds the currency switcher, which already appears in the mobile
     extra menu, so the bar was carrying a second copy of a control that has a
     home. On eu it holds the shim, whose only occupant (the language switcher)
     TranslatePress hides on mobile from its own inline style anyway, so the zone
     was an empty box either way.

     Row two is therefore the ticker alone, with the full width for the product
     name. This deliberately overrides the `display: flex !important` that 1.4.32
     needed to defeat the Customizer's mobile hide: that fight was about the LEFT
     zone, which holds the ticker and is wanted. */
  .top-bar .col-full .top-bar-right {
    display: none !important;
  }

  /* eu has no `.top-bar-left` widget, so its ticker is a DIRECT child of the
     row and never picked up the order above. Default order is 0, which sorts
     ahead of the notice's 1, so eu came out with the rows inverted: ticker on
     top, notice underneath. Same order and basis as the labs case. */
  /* Same band for eu, whose ticker is a direct row child. */
  .top-bar .col-full > .ksec-tbx-ticker {
    order: 2;
    flex: 1 0 100%;
    min-width: 0;
    max-width: none;
    background: var(--ksec-navy-2);
    border-top: 1px solid var(--ksec-line-dark);
    margin: 2px -6px 0;
    padding: 5px 10px;
  }

  /* The auto margins that centred the switcher while it was a stacked block
     would now push it away from its neighbour. */
  .top-bar .wcml-dropdown {
    margin-left: 0;
    margin-right: 0;
    width: auto;
    max-width: 100%;
  }

  /* The currency dropdown was opening off the right edge of the screen: it is
     absolutely positioned against the active-currency item, which sits hard
     against the viewport edge, and TRP-style `left: 0` pushed it further out.
     Anchor it to the right and let it size to its content instead. */
  .top-bar .wcml-dropdown .wcml-cs-submenu {
    left: auto;
    right: 0;
    min-width: 100%;
    width: max-content;
    max-width: calc(100vw - 20px);
  }
}

/* The shipping notice must never wrap. `.top-bar-left` holds the arrivals
   ticker and cannot shrink below its content, so on a tight row this is the
   element that gives, and wrapping it to two lines is what takes the bar from
   44px to 60px. Truncation is the better failure: the first half of "Shipping
   to 96+ countries" still reads, whereas a two-line bar is the defect this
   change removes. */
.top-bar-center {
  min-width: 0;
}
.top-bar-center .textwidget,
.top-bar-center .textwidget p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* WCML currency switcher: drop the box.
   The existing overrides further down this file reset WCML's white background
   on the active-currency LI but never its border, so `1px solid #cdcdcd` from
   wcml/style.css survived and drew a grey rectangle around the switcher on the
   navy bar. That box is what made the switcher read as a detached control
   rather than part of the row. Specificity here is (0,2,1) against WCML's
   (0,1,1), so this wins regardless of load order. The SUBMENU keeps its own
   border, which is set by the dropdown rules below. */
.top-bar .wcml-dropdown > ul > li,
.top-bar .wcml_currency_switcher > ul > li,
.top-bar-right.wcml-dropdown > ul > li {
  border: 0;
}
.top-bar .wcml-cs-active-currency > a {
  padding-left: 0;
}

/* ---------- Top-bar widget area ------------------------------------------ */
/* Shoptimizer's `.top-bar` widget zone (sits above .main-header). Contains
   the shipping notice + WCML currency switcher. Default chrome is white;
   restyle to navy for header continuity. */

.top-bar {
  background: var(--ksec-navy);
  color: var(--ksec-dim-2);
  font-size: 12px;
  /* border-bottom removed v1.3.92 — replaced by the animated cyan gleam
     hairline below (.top-bar::after), which supplies the bottom edge. */
}

/* v1.3.92 — A3-slowed: a 2px cyan-led gleam runs along the top-bar's bottom
   edge (~10s, low contrast) to add subtle motion and draw a clean line into
   the white main-header beneath. background-position animation (no transform,
   no overflow:hidden — must not clip the full-width ::before navy extender).
   Static gradient still shows under reduced-motion, just not moving. */
.top-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(2, 115, 138, 0.35),
    var(--ksec-cyan) 50%,
    rgba(2, 115, 138, 0.35));
  background-size: 200% 100%;
  animation: ksec-topbar-gleam 10s linear infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes ksec-topbar-gleam {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .top-bar::after { animation: none; }
}

/* DEV-330: the same gleam, moved by transform so it runs on the compositor.
   background-position is a paint property, so the rule above repaints the
   line on the main thread every frame for as long as the page is open
   (Lighthouse: non-composited animation). functions.php prints an empty
   span.ksec-topbar-gleam as the last child of .top-bar > .col-full; the span
   clips, so .top-bar itself still never gets overflow hidden. Its containing
   block is that .col-full (position relative from `.top-bar > *` above),
   which is the bar's own box: no padding and the same width on both stores.
   The ::before strip is 300% of the bar wide with the gradient tiled every
   66.6667% of it (two bar widths, as background-size 200% did) and moves
   0 to -66.6667% over the same 10s: the shift the old 0% to 200% made, so
   the line looks the same at every width and every moment.
   The ::after above stays as the fallback and is switched off only where
   the span is in the markup, so a page cached before the span shipped, or a
   critical CSS file built before it, keeps the old line. A browser without
   :has shows both lines in the same place. Reduced motion: static gradient,
   same as before. */
.top-bar:has(> .col-full > .ksec-topbar-gleam)::after {
  content: none;
  animation: none;
}
/* The span is a sibling of the notice, so it ends :only-child on eu (no left
   or right widget until footer.js runs). Restore that rule for the notice. */
.top-bar .col-full > .top-bar-center:first-child:nth-last-child(2):has(+ .ksec-topbar-gleam) {
  width: 100%;
  max-width: inherit;
  text-align: center;
}
.ksec-topbar-gleam {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.ksec-topbar-gleam::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 300%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(2, 115, 138, 0.35),
    var(--ksec-cyan) 50%,
    rgba(2, 115, 138, 0.35)) 0 0 / 66.6667% 100% repeat-x;
  will-change: transform;
  animation: ksec-topbar-gleam-t 10s linear infinite;
}
@keyframes ksec-topbar-gleam-t {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-66.6667%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ksec-topbar-gleam::before { animation: none; will-change: auto; }
}

/* 44px set on the row itself, 1.19.0. This used to be `padding: 6px 0`, and
   the bar's height was then the SUM of this padding, the text widget's own
   `padding: 6px 0` in ksecsp.css, and whatever line-height the tallest widget
   happened to have: 53px, and changing with its contents. A fixed min-height
   with the paddings zeroed means the row is 44px whatever is dropped into it,
   which matters now that four things share it. */
.top-bar .col-full {
  min-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  /* Horizontal gutter restored. main.min.css zeroes ALL padding on this row
     (`.top-bar .col-full { padding: 0 }`), which was invisible while the row
     held only a centred notice and a right-aligned switcher. The arrivals
     ticker starts at the row's left edge, so it ran flush into the side of the
     screen with its status dot half off it.
     10px because that is what `.col-full` uses everywhere else on the page:
     the header's logo sits at exactly 10px, so the ticker now lines up with it
     rather than sitting at an arbitrary inset of its own. */
  padding-left: 10px;
  padding-right: 10px;
  gap: 16px;
}

.top-bar a,
.top-bar p,
.top-bar .widget_text,
.top-bar .textwidget {
  color: var(--ksec-dim-2);
}

.top-bar a:hover {
  color: var(--ksec-cyan);
}

/* WCML currency switcher dropdown — simple white text on navy bar
   per operator 2026-05-24. Targets both the LI wrapper (default white
   bg from WCML) and the active-currency <a> inside it. */
.top-bar .wcml-cs-active-currency,
.top-bar-right.wcml-dropdown .wcml-cs-active-currency,
.top-bar .wcml-dropdown ul,
.top-bar .wcml_currency_switcher ul,
.top-bar .wcml_currency_switcher li {
  background: transparent;
  background-color: transparent;
}

.top-bar-right.wcml-dropdown .wcml-cs-active-currency > a,
.top-bar .wcml_currency_switcher > a,
.top-bar .wcml-dropdown .wcml-cs-active-currency > a,
.top-bar .wcml-cs-active-currency > a {
  color: #fff;
  background-color: transparent;
}

.top-bar .wcml_currency_switcher > a:hover,
.top-bar-right.wcml-dropdown .wcml-cs-active-currency > a:hover {
  color: var(--ksec-cyan);
}

/* The active-currency LI is the positioning context for the absolute
   submenu; give it a stacking context so the dropdown can sit above the
   white main-navigation bar below the top bar. */
.top-bar .wcml-cs-active-currency {
  position: relative;
  z-index: 1001;
}

/* Dropdown submenu when opened — keep readable on navy.
   Lift above the main-navigation bar (its own stacking context) so the
   open dropdown isn't clipped/painted-over on desktop.
   NOTE: selector must out-specify `.top-bar .wcml_currency_switcher ul`
   (the transparent-bg rule above, 0,2,1) — that ul type selector otherwise
   wins and leaves the panel see-through over the white nav bar, making the
   white item text unreadable. Match its specificity + 1 class. */
.top-bar .wcml_currency_switcher ul.wcml-cs-submenu,
.top-bar .wcml-dropdown ul.wcml-cs-submenu {
  background: var(--ksec-navy-2);
  border: 1px solid var(--ksec-line-dark);
  border-radius: 6px;
  position: absolute;
  z-index: 1001;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.top-bar .wcml_currency_switcher ul.wcml-cs-submenu li,
.top-bar .wcml-cs-submenu li a {
  color: var(--ksec-dim-2);
  background: transparent;
  border: 0;                 /* kill WCML default white item borders */
}

.top-bar .wcml-cs-submenu li a:hover {
  color: var(--ksec-cyan);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Secondary (utility) bar -------------------------------------- */
/* No background override — operator explicit instruction 2026-05-24: leave
   .secondary-navigation transparent so it inherits whatever parent zone
   places it in (header chrome decides). */

.secondary-navigation {
  color: var(--ksec-dim);
  font-size: 12px;
}

.secondary-navigation a {
  color: var(--ksec-dim-2);
  text-decoration: none;
  padding: 8px 14px;
  transition: color 0.15s;
}

.secondary-navigation a:hover {
  color: var(--ksec-cyan);
}

body.keyboard-active .secondary-navigation a:focus {
  outline: 2px solid var(--ksec-cyan);
  outline-offset: -2px;
  color: var(--ksec-cyan);
}

/* ---------- Search field (AWS-powered, visual only) ---------------------- */

.site-search .aws-container .aws-search-form {
  background: #fff;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.site-search .aws-container .aws-search-form:focus-within {
  box-shadow: 0 0 0 2px var(--ksec-cyan), 0 0 0 5px rgba(3, 196, 235, 0.12);
}

/* ---------- Mobile drawer ------------------------------------------------- */
/* Shoptimizer adds body.mobile-toggled when burger is tapped; the drawer is
   the .main-navigation rendered as an off-canvas panel. Breakpoint matches
   Shoptimizer's @media (min-width: 993px). */

@media (max-width: 992px) {

  /* Shoptimizer's .shoptimizer-primary-navigation.col-full enforces
     padding-left/right 2.617924em + text-align via Customizer — strip
     these on mobile. Needs the .col-full-nav ancestor prefix to beat
     Shoptimizer's Customizer-generated rule specificity. */
  .col-full-nav .shoptimizer-primary-navigation.col-full,
  .col-full-nav .shoptimizer-primary-navigation .col-full {
    padding: 0 !important;
    text-align: unset !important;
  }

  /* .col-full-nav itself ships white background by default — match to
     dark drawer chrome so the white block above the menu items goes. */
  .col-full-nav {
    background-color: var(--ksec-navy) !important;
  }

  /* Mobile WCML switcher — Shoptimizer renders it inside the mobile-extra
     / drawer area at mobile breakpoints, often as a separate widget
     with white default chrome. Match the dark drawer treatment so the
     active currency reads "Currency (£) - GBP" white on navy and the
     dropdown submenu inherits the dark style. */
  body.mobile-toggled .wcml-cs-active-currency,
  body.mobile-toggled .wcml-dropdown,
  body.mobile-toggled .wcml-dropdown ul,
  body.mobile-toggled .wcml_currency_switcher,
  body.mobile-toggled .wcml_currency_switcher ul,
  body.mobile-toggled .wcml_currency_switcher li {
    background: transparent !important;
    background-color: transparent !important;
  }

  body.mobile-toggled .wcml-cs-active-currency > a,
  body.mobile-toggled .wcml_currency_switcher > a,
  body.mobile-toggled .wcml-dropdown .wcml-cs-active-currency > a {
    color: #fff !important;
    background-color: transparent !important;
  }

  body.mobile-toggled .wcml-cs-submenu {
    background: var(--ksec-navy-2);
    border: 1px solid var(--ksec-line-dark);
    border-radius: 6px;
  }

  body.mobile-toggled .wcml-cs-submenu li a {
    color: var(--ksec-dim-2);
    background: transparent;
  }

  body.mobile-toggled .wcml-cs-submenu li a:hover {
    color: var(--ksec-cyan);
    background: rgba(255, 255, 255, 0.04);
  }

  /* Shoptimizer's massive mobile media-query rule forces color: #222
     on every menu link. Our drawer is dark navy — re-assert white. */
  body.mobile-toggled .main-navigation ul li a,
  body.mobile-toggled .menu-primary-menu-container > ul > li.nolink > span,
  body.mobile-toggled .main-navigation ul.menu > li.menu-item-has-children > span.caret::after,
  body.mobile-toggled .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li h6 a,
  body.mobile-toggled .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li.heading > a,
  body.mobile-toggled .main-navigation ul.menu li.menu-item-has-children.full-width > .sub-menu-wrapper li.menu-item-has-children > a,
  body.mobile-toggled .mobile-extra,
  body.mobile-toggled .mobile-extra h4,
  body.mobile-toggled .mobile-extra a:not(.button) {
    color: #fff;
  }

  /* Heading rows in mobile drawer keep gold accent (was being overridden
     by the white rule above otherwise) */
  body.mobile-toggled .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.heading > a {
    color: var(--ksec-gold);
  }

  /* Caret indicators (▾) next to parent items — Shoptimizer renders them
     as a pseudo with a dark background. Re-paint white on the dark drawer.
     !important required because Shoptimizer's matching rule has equal
     specificity and may win cascade order (Customizer inline CSS). */
  .main-navigation ul.menu li.menu-item-has-children span.caret::after {
    background-color: #fff !important;
  }

  body.mobile-toggled .main-navigation,
  body.mobile-toggled .main-navigation ul {
    background: var(--ksec-navy);
    color: #fff;
  }

  body.mobile-toggled .main-navigation ul.menu li.menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  body.mobile-toggled .main-navigation ul.menu li.menu-item > a {
    color: #fff;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 0;
  }

  body.mobile-toggled .main-navigation ul.menu li.menu-item.menu-item-has-children > a::after {
    color: var(--ksec-dim);
  }

  /* Mobile accordion: panels show only when li.dropdown-open is set */
  body.mobile-toggled .main-navigation ul.menu li.full-width > .sub-menu-wrapper {
    background: rgba(0, 0, 0, 0.20);
    padding: 14px;
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
  }

  body.mobile-toggled .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container {
    padding: 0;
  }

  body.mobile-toggled .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Mobile image-card cells: 110px square image + room below for the
     label text. Fixed width keeps cards uniform across panels; height
     auto with min-height allows the label inside .sub to render below
     the 110px image without being clipped. */
  body.mobile-toggled .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    width: 110px;
    height: auto;
    min-height: 110px;
  }

  /* Constrain the inner image specifically to 110px square so the
     surrounding LI/anchor can extend below for the label text. */
  body.mobile-toggled .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image .icon-wrapper,
  body.mobile-toggled .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image img,
  body.mobile-toggled .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image span.sub > img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    max-height: 110px;
  }

  body.mobile-toggled .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a {
    font-size: 11.5px;
    width: 100%;
  }

  /* Remove the ::after spacer on mobile — the 16px padding-bottom that
     gives Shop labels breathing room on desktop creates an awkward gap
     in the 110px fixed mobile card. */
  .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a::after {
    display: none;
  }

  /* "View all brands →" pill + other non-image grid items: shrink to
     fit the 110px mobile card width — original desktop padding leaks
     out and breaks alignment. */
  .main-navigation ul.menu li.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item:not(.menu-item-image):not(.heading):not(.res-col) > a {
    padding: 10px 5px;
    font-size: 11.5px;
    width: 100%;
  }

  /* AWS (Advanced Woo Search) results dropdown — Shoptimizer's default
     positions it under the input at native input width, which is too
     narrow on phones. Expand to near-full-viewport. */
  .aws-search-result {
    width: 95% !important;
  }

  /* Training panel (.main-navigation ul.menu li.full-width.ksec-training-panel): mobile stacks the 2 split
     cards in a single column at full width — they're "big blocks"
     (background image + overlaid text), not the 110px square treatment. */
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu {
    grid-template-columns: 1fr;
  }

  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image {
    width: 100%;
    height: 240px;
    min-height: 180px;
    max-width: none;
    max-height: 240px;
    justify-self: stretch;
  }

  /* Force the inner image to fill the Training block naturally.
     v1.3.19 had forced 100%×180 with min/max — that triggered overflow
     scrollbars in the sub-menu wrapper. Now just aspect-ratio: auto +
     object-fit: cover lets the image size to the LI's 180px height
     without fighting other constraints. */
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image .icon-wrapper,
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image img,
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image span.sub,
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image span.sub > img {
    aspect-ratio: auto;
    object-fit: cover;
  }

  /* Resources panel (li.full-width.ksec-res-panel) on mobile:
     - Image-card children (Forum, Training Courses) render 2-col
     - Text-column children (.res-col Learn / Get help) span full width
     This gives a hybrid layout: small image pills up top, full-width
     text lists below. */
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu {
    grid-template-columns: 1fr 1fr;
  }

  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.res-col {
    grid-column: 1 / -1;
  }

  /* Site-wide mobile horizontal padding — ksec-labs-ui shortcode wrappers
     (.ksec-tah__wrap) ship without horizontal padding by default, hugging
     the viewport edges. Add 15px gutter on mobile. */
  .ksec-tah__wrap {
    padding: 0 15px;
  }
}

/* ---------- Training panel: split-card overlay variant ------------------- */
/* Training top-level (.main-navigation ul.menu li.full-width.ksec-training-panel) has 2 image-card children
   that should render as the OS "Join Today" split pattern: image fills
   the card with text overlaid at bottom (eyebrow + title + CTA). Without
   this override, they render like Shop cards (image on top, small text
   label below) — too small for the "funnel to OnlySecurity" intent. */

.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu {
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
}

.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image {
  position: relative;
  min-height: 240px;
}

/* Training card layering — sized to fit the 600px panel cap with text overlay.
   DOM is: <a> > <span outer> > {TEXT "title", <span class="sub"> > <img>}.
   To layer image-behind-text reliably:
   - <a> is the positioned ancestor + overflow hidden + min-height 240px.
   - <a>::before paints the gradient at z:2 (above image, below text).
   - Outer span fills <a> via absolute inset:0 + flex column justify-end
     so the title text sits at the bottom — z:3 above the gradient.
   - .sub absolute inset:0 inside outer span fills it — z:-1 puts it
     BEHIND the (transparent-bg) outer span and the gradient, so the
     image is visible at the back of the stack but the text remains
     above the gradient. Negative margins on .sub compensate for the
     outer span's padding so the image fills the whole card edge-to-edge. */

.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image {
  max-height: none;
  min-height: 240px;
}

.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a {
  position: relative;
  display: block;
  min-height: 240px;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-radius: inherit;
}

.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,20,25,0.08) 30%, rgba(15,20,25,0.96) 100%);
  z-index: 2;
  pointer-events: none;
}

.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a > span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 26px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  z-index: 3;
  background: transparent;
}

/* Training title rich HTML: title is wrapped in <span class="t-title">,
   body in <span class="t-body">, CTA in <span class="t-cta"> (set via
   wp post update --post_title with HTML, preserved by Shoptimizer
   walker per memory shoptimizer-mega-menu). */
.main-navigation ul.menu li.full-width.ksec-training-panel .menu-item-image .t-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ksec-cyan);
  margin: 0 0 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.main-navigation ul.menu li.full-width.ksec-training-panel .menu-item-image .t-title {
  display: block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 8px;
}

.main-navigation ul.menu li.full-width.ksec-training-panel .menu-item-image .t-body {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 12px;
  max-width: 420px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.main-navigation ul.menu li.full-width.ksec-training-panel .menu-item-image .t-cta {
  display: inline-block;
  color: var(--ksec-cyan);
  font-size: 13.5px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.main-navigation ul.menu li.full-width.ksec-training-panel .menu-item-image .sub {
  position: absolute;
  inset: 0;
  margin: -22px -24px;     /* compensate outer span padding so image fills card */
  z-index: -1;             /* behind outer span text but visible through transparent bg */
  display: block;
  max-height: none;
  height: auto;
}

.main-navigation ul.menu li.full-width.ksec-training-panel .menu-item-image img,
.main-navigation ul.menu li.full-width.ksec-training-panel .menu-item-image .icon-wrapper {
  position: static;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

/* The generic desktop image-card cap (`@media ≥993px … li.menu-item-image img
   { height:200px; max-height:200px }` near the top of this file) carries a
   LONGER child-combinator chain than the `.ksec-training-panel .menu-item-image
   img` overrides above, so it out-specifies them and clamps the full-bleed
   training photos to 200px — leaving a dark strip under the CTA where the image
   should be. Re-assert the fill with the full chain + the panel class (and
   inside the same media query) so the photo covers the whole card edge-to-edge.
   Scoped to .ksec-training-panel: the square Shop category thumbnails keep the
   200px cap. */
@media (min-width: 993px) {
  .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image .sub {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }
  .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image .sub > img,
  .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image img,
  .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image .icon-wrapper {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }
}

.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image > a::after {
  display: none;
}

/* Training panel is 2 cards — make them larger than Shop cards (1100px max-width spec'd in the mockup) */
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu {
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
}

/* Training kits column (DEV-305): a custom # menu item with classes res-col train-col nolink,
   printed as a <span> heading, with the store's kit pages under it (title plus the menu item
   description, which the walker prints as span.sub). labs only: every rule needs li.train-col,
   and the three column grid applies only to a panel that holds one (:has), so eu's Training
   panel, which has no such item, keeps its two columns. res-col keeps the column out of the
   generic gold pill rule for full-width children. */
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col { background: transparent; border: 0; padding: 6px 4px; min-height: 0; max-height: none; display: block; align-self: start; width: 100%; max-width: none; justify-self: stretch; transform: none; box-shadow: none; }
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col > span { display: block; color: var(--ksec-gold); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 0 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--ksec-line-dark); }
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col > .caret { display: none !important; }
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col .sub-menu-wrapper,
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col ul.sub-menu { position: static; display: block; visibility: visible; opacity: 1; background: transparent; box-shadow: none; border: 0; padding: 0; margin: 0; max-height: none; min-height: 0; transform: none; grid-template-columns: none; width: auto; left: auto; }
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col .sub-menu-wrapper > .container { padding: 0; width: auto; max-width: none; }
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col ul.sub-menu > li { display: block; background: transparent; border: 0; padding: 0; margin: 0; min-height: 0; max-height: none; }
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col ul.sub-menu > li > a { display: block; width: auto; padding: 9px 4px; color: #eef1f4; font-size: 14.5px; font-weight: 600; line-height: 1.3; text-decoration: none; border-radius: 4px; border-bottom: 1px solid var(--ksec-line-dark); }
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col ul.sub-menu > li:last-child > a { border-bottom: 0; }
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col ul.sub-menu > li > a .sub { display: block; margin-top: 3px; color: var(--ksec-dim-2); font-size: 13px; font-weight: 400; line-height: 1.4; }
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col ul.sub-menu > li > a:hover,
.main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col ul.sub-menu > li > a:focus-visible { color: var(--ksec-cyan); background: rgba(255,255,255,.04); }
@media (min-width: 993px) {
  .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu:has(> li.train-col) { grid-template-columns: 1fr 1fr minmax(250px, .7fr); max-width: 1200px; }
  .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu:has(> li.train-col) > li.menu-item-image > a { height: 100%; }
}
@media (max-width: 992px) {
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col { grid-column: 1 / -1; padding: 14px 4px 4px; }
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col ul.sub-menu > li { width: 100% !important; }
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-training-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.train-col ul.sub-menu > li > a { min-height: 44px; }
}

/* ---------- Resources panel: image cards + text columns ----------------- */
/* Scoped to the `.ksec-res-panel` class (added to the Resources top-level
   menu item) rather than a hardcoded menu-item ID, so it works on every
   site that shares this theme (labs + eu). Structure: N image cards +
   N text columns. Text columns are rendered from heading menu items with
   the `res-col` class; their nested <ul.sub-menu> children render as text
   links beneath the heading. Legacy heading items (no `res-col`) stay
   hidden. Grid is auto-fit so panels with different column counts (labs
   Learn/Get-help vs eu Guides/RFID/Get-help) both lay out cleanly. */

.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  gap: 18px;
}

/* Hide legacy items: non-image, non-res-col. */
.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li:not(.menu-item-image):not(.res-col),
.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.menu-item-image:not(:has(img)) {
  display: none !important; /* !important: generic plain-link cell rule (line ~508)
                              has one more class-selector and would otherwise
                              re-show these legacy items; the old ID selector
                              used to win on specificity. */
}

/* Text column: heading + its nested sub-menu items as a stacked link list */
.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.res-col {
  background: transparent;
  border: 0;
  padding: 6px 4px;
  max-height: none;
  min-height: 0;
  display: block;
  grid-column: auto;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  align-self: start;
  flex: 1 1 auto;        /* in case Shoptimizer flex context leaks in */
  box-sizing: border-box;
}

.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.res-col > a,
.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.res-col.nolink > span {
  display: block;
  color: var(--ksec-gold);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 0 10px;
  pointer-events: none;
  border-bottom: 1px solid var(--ksec-line-dark);
  margin-bottom: 8px;
}

.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.res-col .sub-menu-wrapper,
.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.res-col ul.sub-menu {
  position: static;
  display: block;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
  max-height: none;
  visibility: visible;
  opacity: 1;
  grid-template-columns: none;
}

.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.res-col ul.sub-menu > li {
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  max-height: none;
  min-height: 0;
}

.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.res-col ul.sub-menu > li > a {
  display: block;
  padding: 6px 4px;
  color: var(--ksec-dim-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
}

.main-navigation ul.menu li.full-width.ksec-res-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.res-col ul.sub-menu > li > a:hover {
  color: var(--ksec-cyan);
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   BUSINESS MEGA PANEL (DEV-243). Scoped to li.full-width.ksec-biz-panel.
   Three link columns (KSEC Business, Wholesale and trade, Custom manufacturing),
   two image cards, and a KSEC group strip (rendered by ksec_biz_panel_group_strip()
   in functions.php). CSS only: no JS, no extra requests
   (icons are inline SVG masks). Motion is transform and opacity only, starts when
   the panel opens (hover or keyboard focus), and is off under reduced motion.
   ========================================================================== */

@media (min-width: 993px) {

  /* Panel chrome: navy with a faint cyan grid that fades out from the top right. */
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper {
    background:
      radial-gradient(ellipse 60% 90% at 88% 0%, rgba(3, 196, 235, 0.10), transparent 60%),
      radial-gradient(ellipse 50% 80% at 8% 100%, rgba(197, 165, 114, 0.08), transparent 65%),
      var(--ksec-navy);
    overflow: hidden;
    padding: 28px 0 0;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(3, 196, 235, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(3, 196, 235, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 80% 0%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 100% at 80% 0%, #000 10%, transparent 70%);
    pointer-events: none;
  }
  /* Cyan scan line that sweeps once along the top edge as the panel opens. */
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 36%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ksec-cyan), transparent);
    transform: translateX(-110%);
    pointer-events: none;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container {
    position: relative;
    z-index: 1;
  }

  /* Grid: three link columns, then a card column holding two stacked cards. */
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr);
    grid-template-rows: auto auto;
    gap: 14px 30px;
    max-width: 1240px;
    margin: 0 auto;
  }

  /* ---- Link columns ---- */
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col {
    grid-row: 1 / span 2;
    background: transparent;
    border: 0;
    padding: 2px 0 0;
    max-height: none;
    min-height: 0;
    display: block;
    width: 100%;
    max-width: none;
    align-self: start;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col > .caret { display: none !important; }

  /* Column heading: icon, gold eyebrow title, one-line description. A real link. */
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col > a {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    align-items: start;
    padding: 0 0 14px;
    margin: 0 0 10px;
    border-bottom: 1px solid var(--ksec-line-dark);
    text-decoration: none;
    pointer-events: auto;
    position: relative;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col > a::before {
    content: "";
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background:
      linear-gradient(135deg, rgba(3, 196, 235, 0.18), rgba(197, 165, 114, 0.14)),
      var(--ksec-navy-2);
    box-shadow: inset 0 0 0 1px rgba(3, 196, 235, 0.25);
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col > a::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 9px;
    width: 22px;
    height: 22px;
    background: var(--ksec-cyan);
    -webkit-mask: var(--biz-ico) center / contain no-repeat;
    mask: var(--biz-ico) center / contain no-repeat;
  }
  /* Icons: briefcase, stacked boxes, gear. Line art, drawn as masks. */
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col--business > a {
    --biz-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2M3 12h18M10 12v2h4v-2'/%3E%3C/svg%3E");
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col--trade > a {
    --biz-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14l4-2 4 2v5l-4 2-4-2zM11 14l4-2 4 2v5l-4 2-4-2zM7 7l4-2 4 2v5l-4 2-4-2z'/%3E%3C/svg%3E");
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col--make > a {
    --biz-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M2 12h3M19 12h3M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E");
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col > a > span {
    display: block;
    color: var(--ksec-gold);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
    padding-top: 3px;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col > a > span > .sub {
    display: block;
    margin-top: 6px;
    color: var(--ksec-dim-2);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.45;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col > a:hover > span,
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col > a:focus-visible > span {
    color: #fff;
  }

  /* Nested link lists (Shoptimizer wraps them in their own sub-menu-wrapper). */
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col .sub-menu-wrapper,
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu {
    position: static;
    display: block;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
    margin: 0;
    max-height: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    grid-template-columns: none;
    width: auto;
    overflow: visible;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col .sub-menu-wrapper::before,
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col .sub-menu-wrapper::after { content: none; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col .sub-menu-wrapper > .container { padding: 0; width: auto; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li {
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    max-height: none;
    min-height: 0;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a {
    position: relative;
    display: block;
    padding: 7px 22px 7px 10px;
    color: var(--ksec-dim-2);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    border-radius: 6px;
    transition: color 160ms ease, background-color 160ms ease, transform 200ms var(--ease-spring, ease);
  }
  /* Gold bar grows on the left, arrow slides in on the right. */
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: var(--ksec-gold);
    transform: scaleY(0);
    transition: transform 200ms var(--ease-spring, ease);
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a::after {
    content: "\2192";
    position: absolute;
    right: 6px;
    top: 50%;
    color: var(--ksec-cyan);
    opacity: 0;
    transform: translate(-6px, -50%);
    transition: opacity 160ms ease, transform 200ms var(--ease-spring, ease);
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a:hover,
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a:focus-visible {
    color: #fff;
    background: rgba(3, 196, 235, 0.07);
    transform: translateX(3px);
    border-bottom-color: transparent; /* the theme's gold hover underline; the left bar replaces it */
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a:hover > span,
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a:focus-visible > span { text-decoration: none; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a:hover::before,
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a:focus-visible::before { transform: scaleY(1); }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a:hover::after,
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
  /* The apply or quote link in each column reads as the call to action. */
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li.biz-cta > a { color: var(--ksec-cyan); font-weight: 600; }

  /* ---- Image cards ---- */
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-card {
    grid-column: 4;
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: stretch;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    max-height: none;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-card > a {
    position: relative;
    display: block;
    min-height: 128px;
    padding: 16px 18px;
    text-decoration: none;
    isolation: isolate;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card .sub {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0;
    padding: 0;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card .sub img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    transition: transform 600ms var(--ease-out, ease);
  }
  /* Dark wash for legibility, plus a diagonal gleam that crosses on hover. */
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card > a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 13, 17, 0.94) 0%, rgba(10, 13, 17, 0.78) 55%, rgba(10, 13, 17, 0.35) 100%);
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card > a::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    transform: translateX(-160%) skewX(-12deg);
    pointer-events: none;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card > a:hover::after,
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card > a:focus-visible::after {
    transform: translateX(420%) skewX(-12deg);
    transition: transform 700ms var(--ease-out, ease);
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card > a:hover .sub img,
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card > a:focus-visible .sub img { transform: scale(1.06); }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card > a > span { display: block; max-width: 72%; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card .t-eyebrow {
    display: block;
    color: var(--ksec-cyan);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card .t-title {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card .t-body {
    display: block;
    margin-top: 6px;
    color: var(--ksec-dim-2);
    font-size: 12.5px;
    line-height: 1.45;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card .t-cta {
    display: inline-block;
    margin-top: 10px;
    color: var(--ksec-cyan);
    font-size: 12.5px;
    font-weight: 600;
    transition: transform 200ms var(--ease-spring, ease);
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card > a:hover .t-cta { transform: translateX(4px); }

  /* ---- KSEC group strip, rendered under the grid ---- */
  .ksec-biz-eco {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    max-width: 1240px;
    margin: 22px auto 0;
    padding: 14px 0 16px;
    border-top: 1px solid var(--ksec-line-dark);
  }
  .ksec-biz-eco__lbl {
    margin-right: 6px;
    color: var(--ksec-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .ksec-biz-eco__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: var(--ksec-dim-2);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 200ms var(--ease-spring, ease);
  }
  .ksec-biz-eco__pill img { width: 22px; height: 22px; border-radius: 6px; }
  .ksec-biz-eco__pill:hover,
  .ksec-biz-eco__pill:focus-visible {
    color: #fff;
    background: rgba(3, 196, 235, 0.08);
    box-shadow: inset 0 0 0 1px rgba(3, 196, 235, 0.45);
    transform: translateY(-2px);
  }
}

/* ---- Level column headings: reserve the heading height so the dividing lines
   and link lists start level whichever description wraps furthest. 94px holds a
   two line title plus a three line description (993 to 1199px), 61px a one
   line title plus two lines (1200px and up). The floor is a custom property so a
   variant (the eu two column panel, longer translations) can set its own; a
   heading taller than the floor still grows, so check the widths after any
   description change. ---- */
@media (min-width: 993px) {
  .main-navigation ul.menu li.full-width.ksec-biz-panel { --biz-head-min: 94px; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-col > a > span { min-height: var(--biz-head-min); }
}
@media (min-width: 1200px) {
  .main-navigation ul.menu li.full-width.ksec-biz-panel { --biz-head-min: 61px; }
}

/* ---- Two column variant (eu: no KSEC Business column). Two link columns plus
   the card column, narrower so the columns do not stretch. The heading floor
   (--biz-head-min) is inherited; measured 2026-11-09 in en, fr, nl, de and es
   at 993 to 1440px, every heading fits it. ---- */
@media (min-width: 993px) {
  .main-navigation ul.menu li.full-width.ksec-biz-panel.ksec-biz-panel--two > .sub-menu-wrapper > .container > ul.sub-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.35fr);
    max-width: 1080px;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel.ksec-biz-panel--two > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-card { grid-column: 3; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel.ksec-biz-panel--two .ksec-biz-eco { max-width: 1080px; }
}

/* ---- Opening sequence: only for people who have not asked for reduced motion ---- */
@media (min-width: 993px) and (prefers-reduced-motion: no-preference) {
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) > .sub-menu-wrapper::after {
    animation: kbiz-scan 800ms cubic-bezier(0.22, 1, 0.36, 1) 80ms 1 both;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) > .sub-menu-wrapper > .container > ul.sub-menu > li,
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) .ksec-biz-eco > * {
    animation: kbiz-rise 340ms cubic-bezier(0.32, 0.72, 0, 1) both;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) > .sub-menu-wrapper > .container > ul.sub-menu > li:nth-child(1) { animation-delay: 40ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) > .sub-menu-wrapper > .container > ul.sub-menu > li:nth-child(2) { animation-delay: 100ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) > .sub-menu-wrapper > .container > ul.sub-menu > li:nth-child(3) { animation-delay: 160ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) > .sub-menu-wrapper > .container > ul.sub-menu > li.biz-card { animation-name: kbiz-slide; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) > .sub-menu-wrapper > .container > ul.sub-menu > li:nth-child(4) { animation-delay: 200ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) > .sub-menu-wrapper > .container > ul.sub-menu > li:nth-child(5) { animation-delay: 270ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) .ksec-biz-eco > *:nth-child(1) { animation-delay: 300ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) .ksec-biz-eco > *:nth-child(2) { animation-delay: 330ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) .ksec-biz-eco > *:nth-child(3) { animation-delay: 360ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) .ksec-biz-eco > *:nth-child(4) { animation-delay: 390ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) .ksec-biz-eco > *:nth-child(5) { animation-delay: 420ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) .ksec-biz-eco > *:nth-child(6) { animation-delay: 450ms; }
  /* Column icons power on with a short glow after their column lands. */
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) li.biz-col > a::after {
    animation: kbiz-power 600ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
  }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) li.biz-col--trade > a::after { animation-delay: 280ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) li.biz-col--make > a::after { animation-delay: 340ms; }
  .main-navigation ul.menu li.full-width.ksec-biz-panel:is(:hover, .visible, :focus-within) li.biz-col > a::before {
    animation: kbiz-halo 700ms ease-out 260ms both;
  }
}

@keyframes kbiz-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kbiz-slide {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kbiz-scan {
  from { transform: translateX(-110%); }
  to   { transform: translateX(300%); }
}
@keyframes kbiz-power {
  0%   { opacity: 0; transform: scale(0.55); }
  60%  { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes kbiz-halo {
  0%   { box-shadow: inset 0 0 0 1px rgba(3, 196, 235, 0.25), 0 0 0 0 rgba(3, 196, 235, 0.45); }
  100% { box-shadow: inset 0 0 0 1px rgba(3, 196, 235, 0.25), 0 0 0 10px rgba(3, 196, 235, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .main-navigation ul.menu li.full-width.ksec-biz-panel *,
  .main-navigation ul.menu li.full-width.ksec-biz-panel *::before,
  .main-navigation ul.menu li.full-width.ksec-biz-panel *::after { animation: none !important; transition: none !important; }
}

/* ---- Phone and tablet drawer (Shoptimizer accordion, 992px and below) ---- */
@media (max-width: 992px) {
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel > .sub-menu-wrapper > .container > ul.sub-menu {
    display: block;
  }
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col {
    padding: 4px 0 10px;
  }
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col > a > span {
    color: var(--ksec-gold);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col > a > span > .sub,
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card .sub,
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card .t-body,
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card .t-eyebrow { display: none; }
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel .ksec-biz-eco { display: none; }
  /* One accordion level only: the column links show straight under their heading. */
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col > .caret { display: none !important; }
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col > .sub-menu-wrapper {
    display: block !important;
    position: static;
    height: auto;
    max-height: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li > a {
    display: block;
    padding: 11px 0 11px 12px;
    font-size: 15px;
    color: var(--ksec-dim-2);
  }
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-col ul.sub-menu > li.biz-cta > a { color: var(--ksec-cyan); font-weight: 600; }
  /* The cards repeat links the columns already hold, so the drawer leaves them out. */
  body.mobile-toggled .main-navigation ul.menu li.full-width.ksec-biz-panel li.biz-card { display: none; }
}

/* ==========================================================================
   END LABS MEGA MENU
   ========================================================================== */

/* ==========================================================================
   404 + SEARCH RESULTS REDESIGN — v1.3.26
   Spec: wp-ad-s1.ksec.co.uk/docs/labs-404-search-render.html
   Targets: body.error404, body.search (search-results + search-no-results)
   Tokens mirror homepage / footer / mega-menu system (--ksec-navy / cyan / gold).
   Injection points: shoptimizer_content_top hook fills .archive-header > .col-full;
   shoptimizer_404_template hook renders the popular-products section beneath.
   ========================================================================== */

body.error404 .archive-header,
body.search .archive-header {
    background: linear-gradient(180deg, var(--ksec-navy, #0f1419) 0%, var(--ksec-navy-2, #1a2330) 100%);
    color: #fff;
    border-top: 1px solid var(--ksec-line-dark, rgba(255,255,255,0.08));
    border-bottom: 1px solid var(--ksec-line-dark, rgba(255,255,255,0.08));
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

body.error404 .archive-header::before,
body.search .archive-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 280px at 12% 0%, rgba(3,196,235,0.10), transparent 60%),
        radial-gradient(600px 240px at 88% 100%, rgba(197,165,114,0.08), transparent 60%);
    pointer-events: none;
}

body.error404 .archive-header > .col-full,
body.search .archive-header > .col-full {
    position: relative;
    padding-top: 72px;
    padding-bottom: 72px;
}

/* breadcrumb on dark */
body.error404 .archive-header .woocommerce-breadcrumb,
body.search .archive-header .woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--ksec-dim, rgba(255,255,255,0.65));
    margin-bottom: 24px;
    border: 0;
    padding: 0;
}
body.error404 .archive-header .woocommerce-breadcrumb a,
body.search .archive-header .woocommerce-breadcrumb a {
    color: var(--ksec-cyan, #03c4eb);
    text-decoration: none;
}
body.error404 .archive-header .woocommerce-breadcrumb a:hover,
body.search .archive-header .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}
body.error404 .archive-header .breadcrumb-separator,
body.search .archive-header .breadcrumb-separator {
    color: var(--ksec-line-dark, rgba(255,255,255,0.08));
    margin: 0 6px;
}

/* hero typography */
body.error404 .ksec-eyebrow,
body.search .ksec-eyebrow {
    display: inline-block;
    font: 600 12px/1 inherit;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ksec-cyan, #03c4eb);
    margin-bottom: 14px;
}
body.error404 .ksec-eyebrow::before,
body.search .ksec-eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--ksec-cyan, #03c4eb);
    vertical-align: middle;
    margin-right: 10px;
}
body.error404 .ksec-h1,
body.search .ksec-h1 {
    font: 700 clamp(28px, 4vw, 44px)/1.15 inherit;
    margin: 0 0 14px;
    color: #fff;
    letter-spacing: -0.01em;
}
body.error404 .ksec-h1 .accent,
body.search .ksec-h1 .accent {
    color: var(--ksec-gold, #c5a572);
}
body.error404 .ksec-lede,
body.search .ksec-lede {
    max-width: 640px;
    margin: 0 0 28px;
    color: var(--ksec-dim-2, rgba(255,255,255,0.82));
    font-size: 17px;
    line-height: 1.55;
}

/* inline search form */
body.error404 .ksec-inline-search,
body.search .ksec-inline-search {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin: 0 0 32px;
    border: 1px solid var(--ksec-line-dark, rgba(255,255,255,0.08));
    border-radius: 6px;
    overflow: hidden;
    background: var(--ksec-navy-darker, #0a0d11);
}
body.error404 .ksec-inline-search input[type="search"],
body.search .ksec-inline-search input[type="search"] {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    outline: none;
    min-width: 0;
    box-shadow: none;
}
body.error404 .ksec-inline-search input[type="search"]::placeholder,
body.search .ksec-inline-search input[type="search"]::placeholder {
    color: var(--ksec-dim, rgba(255,255,255,0.65));
}
body.error404 .ksec-inline-search button,
body.search .ksec-inline-search button {
    background: var(--ksec-btn-on-dark);
    color: var(--ksec-btn-on-dark-text);
    border: 0;
    padding: 0 22px;
    font: 600 14px/1 inherit;
    cursor: pointer;
    letter-spacing: 0.02em;
    border-radius: 4px;
    min-width: auto;
    height: auto;
}
body.error404 .ksec-inline-search button:hover,
body.search .ksec-inline-search button:hover {
    background: var(--ksec-btn-on-dark-hover);
    color: var(--ksec-btn-on-dark-text);
}

/* CTA chip row */
body.error404 .ksec-cta-row,
body.search .ksec-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
body.error404 .ksec-chip,
body.search .ksec-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--ksec-line-dark, rgba(255,255,255,0.08));
    border-radius: 999px;
    color: var(--ksec-dim-2, rgba(255,255,255,0.82));
    text-decoration: none;
    font-size: 13px;
    background: rgba(255,255,255,0.03);
    transition: 0.15s;
}
body.error404 .ksec-chip:hover,
body.search .ksec-chip:hover {
    border-color: var(--ksec-cyan, #03c4eb);
    color: var(--ksec-cyan, #03c4eb);
    background: rgba(3,196,235,0.06);
}
body.error404 .ksec-chip .arr,
body.search .ksec-chip .arr {
    color: var(--ksec-gold, #c5a572);
    font-size: 14px;
    line-height: 1;
}

/* 404 popular-products section under panel */
body.error404 .ksec-404-popular {
    padding: 48px 0 32px;
}
body.error404 .ksec-section-title {
    font: 700 22px/1.2 inherit;
    margin: 0 0 24px;
    color: #0f1419;
    display: flex;
    align-items: center;
    gap: 14px;
}
body.error404 .ksec-section-title::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 2px;
    background: var(--ksec-cyan, #03c4eb);
}
/* the [products] shortcode used in the 404 popular section renders without col-full wrap;
   constrain it to the same gutter as the rest of the page */
body.error404 .ksec-404-popular {
    max-width: 2000px;
    margin: 0 auto;
    padding-left: 2.617924em;
    padding-right: 2.617924em;
}

/* WC notice links — default theme renders white-on-white on checkout/cart white panels */
.woocommerce-error a,
.woocommerce-info a,
.woocommerce-message a,
.woocommerce-noreviews a,
p.no-comments a {
    color: #000;
    transition: color 0.2s;
}

/* Remove controls: a 44 by 44 px tap area, icon unchanged (UX to-do D4).
   Measured 2026-09-26 at 390 and 1440px: the cart block's button was 24 by 24
   and the mini cart's link 14 by 14, so 28% and 11% of a 44px square around
   the icon hit them. The cart block's area is a pseudo-element, so layout does
   not move; it ends 2px short of the quantity stepper at both widths. The mini
   cart cannot centre one: the list scrolls with overflow hidden, which clips
   anything left of the item, and the title starts 35px in. So the gutter is
   widened to 44px and the link fills it, the 14px icon centred at the same
   height, 10px further right; the title, price and stepper move 9px. */
.wc-block-cart .wc-block-cart-item__remove-link {
    position: relative;
}
.wc-block-cart .wc-block-cart-item__remove-link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}
.shoptimizer-mini-cart-wrap .widget_shopping_cart .product_list_widget li.mini_cart_item {
    padding-left: 44px;
}
.shoptimizer-mini-cart-wrap .widget_shopping_cart .product_list_widget li a.remove {
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

/* search empty-state — restyle the default WC no-products notice into a dark inset panel */
body.search-no-results .woocommerce-no-products-found {
    margin: 32px 0 24px;
}
body.search-no-results .woocommerce-no-products-found .woocommerce-info {
    background: linear-gradient(180deg, var(--ksec-navy, #0f1419) 0%, var(--ksec-navy-2, #1a2330) 100%);
    color: var(--ksec-dim-2, rgba(255,255,255,0.82));
    border-radius: 10px;
    padding: 36px 32px;
    border: 1px solid var(--ksec-line-dark, rgba(255,255,255,0.08));
    border-left: 3px solid var(--ksec-gold, #c5a572);
    font-size: 15px;
    line-height: 1.55;
}
body.search-no-results .woocommerce-no-products-found .woocommerce-info::before {
    display: none;
}

/* hide the empty woocommerce-products-header from Shoptimizer on search (avoids extra whitespace) */
body.search header.woocommerce-products-header:empty,
body.error404 header.woocommerce-products-header:empty {
    display: none;
}

/* hide the legacy "Explore All Products" h2 from the filter plugin on search hits — our hero supplies the title */
body.search .wpf-search-container > h2:first-of-type,
body.search .wpf-search-container > main > h2:first-of-type {
    display: none;
}

/* mobile */
@media (max-width: 720px) {
    body.error404 .archive-header > .col-full,
    body.search .archive-header > .col-full {
        padding-top: 52px;
        padding-bottom: 52px;
    }
    body.error404 .ksec-inline-search,
    body.search .ksec-inline-search {
        max-width: 100%;
    }
    body.search-no-results .woocommerce-no-products-found .woocommerce-info {
        padding: 28px 22px;
    }
}

/* === END 404 + SEARCH REDESIGN v1.3.26 === */


/* ==========================================================================
   MEGA MENU PRODUCT COUNTS — v1.3.28
   Hover-only product counts on Shop product_cat menu items.
   Span appended via nav_menu_item_title filter in functions.php; only
   present when count > 0 (no DOM clutter on empty taxa).
   ========================================================================== */

/* Subtle count pill sits inline after the label text. Shoptimizer's custom
   walker wraps the label in <span> with a sibling .sub for the description
   image, so the count lands between label text and .sub — render it as a
   small parenthesised pill that reads as part of the label.

   DOM (Shoptimizer mega-menu sub-menu item):
     <a class="cg-menu-link sub-menu-link">
       <span>Label <span class="ksec-menu-count">N</span><span class="sub"><img></span></span>
     </a>
*/
.main-navigation .ksec-menu-count {
  display: inline-block !important;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px !important;
  line-height: 1.5 !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--ksec-dim, rgba(255, 255, 255, 0.65));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  opacity: 0.7;
  transition: opacity 0.18s ease-out, color 0.18s ease-out, background 0.18s ease-out, border-color 0.18s ease-out;
  pointer-events: none;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Brighten on hover anywhere inside the menu item. Uses descendant combinator
   (not >) because the count is nested two levels inside <a> via the label
   <span>. Was cyan pre-v1.3.82; flipped to gold to match the gold underline
   on the parent menu link and the gold corner-chips inside image-card rows
   — keeps one accent across every hover state in the mega-menu. */
.main-navigation a:hover .ksec-menu-count,
.main-navigation a:focus-visible .ksec-menu-count,
.main-navigation li:hover .ksec-menu-count {
  opacity: 1;
  color: var(--ksec-gold, #c5a572);
  border-color: rgba(197, 165, 114, 0.35);
  background: rgba(197, 165, 114, 0.10);
}

/* Heading rows don't have a target; hide any stray badge. */
.main-navigation li.heading .ksec-menu-count {
  display: none !important;
}

/* Image-card rows (Shop mega-menu thumbnails) — Shoptimizer applies
   font-size:0 to the outer label <span> to hide the text label so only
   the image shows. Re-enable the count by absolutely positioning it as a
   corner badge over the image card. The link's outer <span> needs
   position:relative for this to anchor; force it. */
.main-navigation li.menu-item-image > a {
  position: relative;
}
.main-navigation li.menu-item-image > a > span {
  position: static;
}
.main-navigation li.menu-item-image .ksec-menu-count {
  position: absolute;
  top: 8px;
  right: 8px;
  margin-left: 0;
  z-index: 2;
  background: rgba(15, 20, 25, 0.78);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0.92;
}
.main-navigation li.menu-item-image a:hover .ksec-menu-count {
  background: var(--ksec-gold);
  color: var(--ksec-navy, #0f1419);
  border-color: var(--ksec-gold);
  opacity: 1;
}

/* Mobile drawer — solid pill for legibility on light backgrounds.
   Translucent styling reads poorly at small sizes under finger contrast. */
@media (max-width: 992px) {
  body.mobile-toggled .main-navigation .ksec-menu-count {
    color: #fff !important;
    background: var(--ksec-navy, #0f1419) !important;
    border-color: var(--ksec-navy, #0f1419) !important;
    opacity: 1 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    font-weight: 700;
    padding: 2px 9px;
  }
  /* Image cards in the mobile drawer keep the absolute-positioned corner badge
     style, but swap to the solid navy pill defined above. */
  body.mobile-toggled .main-navigation li.menu-item-image .ksec-menu-count {
    background: var(--ksec-navy, #0f1419) !important;
    color: #fff !important;
  }
  body.mobile-toggled .main-navigation a:hover .ksec-menu-count,
  body.mobile-toggled .main-navigation li.menu-item-image a:hover .ksec-menu-count {
    background: var(--ksec-gold) !important;
    color: var(--ksec-navy, #0f1419) !important;
    border-color: var(--ksec-gold) !important;
  }
}

/* === END MEGA MENU PRODUCT COUNTS v1.3.28 === */


/* ==========================================================================
   PDP CHROME REDESIGN — v1.3.34 (Slice 1: CSS-only chrome restyle)
   Spec: wp-ad-s1.ksec.co.uk/docs/labs-pdp-full-render.html

   Scope:
     - body.single-product chrome surfaces only
     - Reuses existing live markup; no new content blocks
     - Body content (gallery + summary) untouched
     - New-content surfaces (delivery ETA, last-shipped, payment sprite,
       trust strip, B2B banner restyle) ship in slices 2-3

   Targets:
     - body.single-product .archive-header     dark breadcrumb band
     - body.single-product .commercekit-atc-tabs  tabs nav with cyan underline
     - body.single-product .related-wrapper h2  section-title chrome
     - body.single-product .up-sells h2         section-title chrome
     - body.single-product .related h2          section-title chrome
     - body.single-product .wsr_main          Wiser widget restyle
     - body.single-product .ksec-community-comments  community two-state
     - body.single-product .ksec-product-brand-row  brand row layout
     - body.single-product .ksec-inline-currency-switcher  narrowed
     - body.single-product .ksec-b2b-apply-banner  restyle
     - body.single-product .commercekit_sticky-atc  sticky bar chrome
   ========================================================================== */

/* ---------- Breadcrumb band — LIGHT (B3, v1.3.93) ----------
   Product breadcrumb is a light content-wayfinding strip, NOT dark chrome.
   The dark menu above closes the header; a 2px gold top-border divides the two
   and carries the brand accent. This decouples the product crumb from the dark
   404/search HERO bands (those stay dark — different component). Solves the
   original "disconnected floating dark strip" complaint by making the crumb
   belong to the content. Bright --ksec-cyan fails contrast on light, so links
   use the darker cyan-dk; last crumb is dark-bold. */
body.single-product .archive-header {
    background: #f6f8fa;
    color: #1a1a1a;
    border-top: 2px solid var(--ksec-gold, #c5a572);
    border-bottom: 1px solid #e6e9ec;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}
body.single-product .archive-header::before {
    display: none;
}
/* Slimmer than 404/search hero — breadcrumb only, no headline.
   FIX (v1.3.36): existing rule `.single-product .site-content .col-full { background-color:#ffffff }`
   overrode our dark band wrap. Force transparent on the breadcrumb's inner col-full. */
body.single-product .archive-header > .col-full {
    position: relative;
    padding: 15px 24px;
    background-color: transparent !important;
}
@media (min-width: 993px) {
    body.single-product .archive-header > .col-full {
        padding-left: 2.617924em;
        padding-right: 2.617924em;
    }
}
body.single-product .archive-header .woocommerce-breadcrumb {
    font-size: 13px;
    color: #55606b;
    margin: 0;
    border: 0;
    padding: 0;
}
body.single-product .archive-header .woocommerce-breadcrumb a {
    color: var(--ksec-cyan-dk, #02738a);
    text-decoration: none;
}
body.single-product .archive-header .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}
body.single-product .archive-header .breadcrumb-separator {
    color: #aab2bb;
    margin: 0;
}
body.single-product .archive-header .breadcrumb_last {
    color: #1a1a1a;
    font-weight: 600;
}

/* ==========================================================================
   HEADER CHROME — B3 (v1.3.93, supersedes the short-lived B2 continuity pass)
   Decision: product breadcrumb went LIGHT (see the .archive-header block above)
   rather than stitching menu+band into one dark block. Consequences:
     - Primary nav stays flat navy (no gradient stitch needed) — handled by the
       base `.shoptimizer-primary-navigation { background: var(--ksec-navy) }`
       rule near the top of this file; B2's gradient override is removed.
     - 404/search archive-headers stay as their ORIGINAL dark HERO bands (they
       carry a headline; different component) — B2's border overrides on them
       are removed, so they fall back to the dark rules in the 404/SEARCH block.
   The A3 top-bar gleam is independent and unchanged.
   ========================================================================== */

/* ---------- WCML currency switcher narrowed ----------
   FIX (v1.3.42): display: flex (block-level row) so the switcher sits on its
   own line BELOW the points pill, not inline beside it. Was inline-flex which
   caused it to share a baseline with the wlr points pill. */
body.single-product .ksec-inline-currency-switcher {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    max-width: 200px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    font-size: 13px;
    color: #444;
    margin: 6px 0 14px;
    gap: 10px;
    cursor: pointer;
}

/* ---------- B2B apply banner restyle ----------
   Live markup: .ksec-b2b-apply-banner > p.ksec-b2b-headline + p.ksec-b2b-sub
   + div.ksec-b2b-actions. Stack vertically so headline is ABOVE sub. */
body.single-product .ksec-b2b-apply-banner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #f5f7fa;
    border: 1px solid #e6e8ec;
    border-left: 3px solid var(--ksec-navy, #0f1419);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0 0 16px;
}
body.single-product .ksec-b2b-apply-banner .ksec-b2b-headline {
    margin: 0;
    font-weight: 700;
    color: #111;
    font-size: 16px;
    line-height: 1.35;
}
body.single-product .ksec-b2b-apply-banner .ksec-b2b-sub {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.45;
}
body.single-product .ksec-b2b-apply-banner .ksec-b2b-actions {
    margin-top: 4px;
}
body.single-product .ksec-b2b-apply-banner a {
    color: var(--ksec-cyan-dk, #02738a);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Brand row two-card layout (.ksec-product-brand-row) ---------- */
body.single-product .ksec-product-brand-row {
    display: flex;
    gap: 14px;
    align-items: stretch;
    margin: 0 0 16px;
}
body.single-product .ksec-brand-block {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid #e6e8ec;
    border-radius: 6px;
    background: #fff;
}
body.single-product .ksec-brand-nudge {
    flex: 1 1 280px;
    min-width: 0;
    /* padding + border removed — the labs-snippets brands-front-end.php
       snippet already styles the Wiser nudge card. Layering another card
       chrome on top double-bordered it. */
    border-radius: 6px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 200px;
}
@media (max-width: 720px) {
    body.single-product .ksec-product-brand-row { flex-direction: column; }
    body.single-product .ksec-brand-block { flex-basis: auto; }
}

/* ---------- Tabs nav (cyan underline on active) ----------
   Live markup is <ul class="commercekit-atc-tab-links">
     <li id="cgkit-tab-X-title" class="active">
       <a class="commercekit-atc-tab" href="#" data-id="#cgkit-tab-X">…</a>
     </li>
   The CG-emitted ul is already display:flex so we just style padding/colour/border. */
body.single-product ul.commercekit-atc-tab-links {
    border-bottom: 1px solid #e6e8ec;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}
body.single-product ul.commercekit-atc-tab-links li {
    margin: 0;
    background: none;
    border: 0;
    padding: 0;
    list-style: none;
}
body.single-product ul.commercekit-atc-tab-links li a.commercekit-atc-tab {
    display: block;
    padding: 14px 22px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    background: transparent;
}
body.single-product ul.commercekit-atc-tab-links li a.commercekit-atc-tab:hover,
body.single-product ul.commercekit-atc-tab-links li a.commercekit-atc-tab:focus {
    color: var(--ksec-navy, #0f1419);
}
body.single-product ul.commercekit-atc-tab-links li.active > a.commercekit-atc-tab,
body.single-product ul.commercekit-atc-tab-links li.cgkit-tab-active > a.commercekit-atc-tab {
    color: var(--ksec-navy, #0f1419);
    border-bottom-color: var(--ksec-gold, #c5a572);
}
/* FIX (v1.3.36): Shoptimizer's stock rule emits an ::after underline on the active
   tab anchor — produces a double underline with our new border-bottom-color above.
   Hide their pseudo, ours wins. */
body.single-product ul.commercekit-atc-tab-links li.active > a.commercekit-atc-tab::after,
body.single-product ul.commercekit-atc-tab-links li.cgkit-tab-active > a.commercekit-atc-tab::after,
body.single-product .commercekit-atc-tab-links li.active a:after {
    visibility: hidden !important;
    display: none !important;
}
/* Native WC tabs fallback (rare on labs but covers Shoptimizer base templates) */
body.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e6e8ec;
    margin-bottom: 24px;
    padding: 0;
    list-style: none;
}
body.single-product .woocommerce-tabs ul.tabs li {margin: 0; background: none; border: 0; padding: 0}
body.single-product .woocommerce-tabs ul.tabs li a {
    display: block; padding: 14px 22px; color: #555;
    text-decoration: none; font-weight: 500; font-size: 13px;
    letter-spacing: 0.05em; text-transform: uppercase;
    border-bottom: 2px solid transparent; white-space: nowrap;
}
body.single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--ksec-navy, #0f1419);
    border-bottom-color: var(--ksec-gold, #c5a572);
}

/* ---------- Section-title chrome on related / upsells / wiser / community / faq ---------- */
body.single-product .related-wrapper > h2,
body.single-product .up-sells > h2,
body.single-product .upsells > h2,
body.single-product .related > h2,
body.single-product .ksec-community-comments .discourse-comments-title,
body.single-product .wsr_main > .wsr_main_title,
body.single-product .wsr_main > h2,
body.single-product [class*="hwff"] > h2,
body.single-product [class*="hwff"] > h3 {
    font: 700 22px/1.2 inherit;
    margin: 0 0 24px;
    color: var(--ksec-navy, #0f1419);
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.01em;
    position: relative;
}
body.single-product .related-wrapper > h2::before,
body.single-product .up-sells > h2::before,
body.single-product .upsells > h2::before,
body.single-product .related > h2::before,
body.single-product .ksec-community-comments .discourse-comments-title::before,
body.single-product .wsr_main > .wsr_main_title::before,
body.single-product .wsr_main > h2::before,
body.single-product [class*="hwff"] > h2::before,
body.single-product [class*="hwff"] > h3::before {
    content: "";
    display: inline-block;
    width: 36px;
    height: 2px;
    background: var(--ksec-cyan, #03c4eb);
    flex-shrink: 0;
}
body.single-product .related-wrapper > h2::after,
body.single-product .up-sells > h2::after,
body.single-product .upsells > h2::after,
body.single-product .related > h2::after,
body.single-product .ksec-community-comments .discourse-comments-title::after,
body.single-product .wsr_main > h2::after,
body.single-product [class*="hwff"] > h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(197,165,114,0.4), transparent);
    margin-left: 14px;
}

/* ---------- Discourse community — forum buttons ABOVE the thread ----------
   v1.3.55: live markup places .CommunityForumButtons inside .respond.comment-respond
   at the BOTTOM of the comments area (after the comment list). Reorder via
   flexbox so the action buttons (Ask question, Read full thread, etc.) sit
   above the comment list — clearer call-to-action position. */
body.single-product .ksec-community-comments .comments-area,
body.single-product .ksec-community-comments .discourse-comments-area {
    display: flex;
    flex-direction: column;
}
body.single-product .ksec-community-comments .respond.comment-respond {
    order: -1;
    margin-bottom: 18px;
}
body.single-product .ksec-community-comments .CommunityForumButtons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Discourse community (populated state — .discourse-comments-area) ---------- */
body.single-product .ksec-community-comments .discourse-comments-area {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
    overflow: hidden;
}
body.single-product .ksec-community-comments ol.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
body.single-product .ksec-community-comments ol.comment-list li.comment {
    padding: 18px 20px;
    border-bottom: 1px solid #eef0f3;
    margin: 0;
}
body.single-product .ksec-community-comments ol.comment-list li.comment:last-of-type {
    border-bottom: 0;
}
body.single-product .ksec-community-comments .comment-body {
    font-size: 13px;
    color: #333;
    line-height: 1.55;
}
body.single-product .ksec-community-comments .respond.comment-respond {
    padding: 14px 20px;
    background: #f9fafb;
    border-top: 1px solid #e6e8ec;
    display: block;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
body.single-product .ksec-community-comments .comment-reply-title a {
    background: var(--ksec-btn-primary);
    color: var(--ksec-btn-primary-text);
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-block;
}
body.single-product .ksec-community-comments .comment-reply-title a:hover {
    background: var(--ksec-btn-primary-hover);
}
body.single-product .ksec-community-comments .more-replies {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* ---------- Discourse community — populated comment header layout ----------
   wp-discourse's populated-thread markup (.discourse-comments-area, present
   when the shared forum topic carries a reply) floats .comment-meta left and
   .comment-content right. That collapses the .comment-body <article> to ~1px
   and stacks the avatar, author name, date and body on top of each other —
   the overlap seen on eu.ksec.co.uk product pages. Neutralise the floats and
   lay the comment out: avatar + author on a row with the date pushed right,
   comment text full-width below. The empty-thread state (.ksec-community-block)
   is styled separately above and is unaffected. */
body.single-product .ksec-community-comments .discourse-comments-area article.comment-body {
    display: block;
    position: relative;
}
body.single-product .ksec-community-comments .discourse-comments-area .comment-meta {
    float: none;
    display: flex;
    width: 100%; /* the footer.comment-meta shrinks to the avatar without this,
                    which (with the nowrap date below) pushes the date over the
                    avatar. Force full width so author-left / date-right holds. */
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}
body.single-product .ksec-community-comments .discourse-comments-area .comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
}
body.single-product .ksec-community-comments .discourse-comments-area .comment-author img.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 0;
    padding: 0;
    float: none;
    flex: 0 0 auto;
}
body.single-product .ksec-community-comments .discourse-comments-area .comment-author .fn {
    font-size: 13px;
    font-weight: 600;
    font-style: normal;
}
body.single-product .ksec-community-comments .discourse-comments-area .comment-author .fn a {
    color: #111;
    text-decoration: none;
}
body.single-product .ksec-community-comments .discourse-comments-area .comment-metadata {
    margin: 0 0 0 auto;
    flex: 0 0 auto;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}
body.single-product .ksec-community-comments .discourse-comments-area .comment-metadata time {
    color: inherit;
}
body.single-product .ksec-community-comments .discourse-comments-area .comment-content {
    float: none;
    clear: both;
    width: auto;
}
body.single-product .ksec-community-comments .discourse-comments-area .comment-content p {
    margin: 0;
}
/* Keep the "Join the discussion" respond block below the thread in the
   populated state. The order:-1 reorder above is only wanted for the
   empty-thread button block (.ksec-community-block). */
body.single-product .ksec-community-comments .discourse-comments-area .respond.comment-respond {
    order: 0;
}

/* ---------- Wiser .wsr_main widget restyle ---------- */
body.single-product .wsr_main {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 8px;
    padding: 24px;
}
/* Suppress the WiserReview wordmark inside the widget — labs has its own identity.
   Target only Wiser's branding wrap. Do NOT use img[src*="wiser"] / [class*="wiserreview"]:
   the lowercase-class selectors match nothing (Wiser emits Wisely-Fixed-Typone-* /
   Wsrspfapp-* classes), and img[src*="wiser"] also matches customer review photos
   served from embed.wiserreview.com, dimming them to 40%. */
body.single-product .wsr_main .Wsrspfapp-braNd-wrap,
body.single-product .wsr_main .Wisely-Fixed-Typone-Brand {
    opacity: 0.4;
    font-size: 10px !important;
    letter-spacing: 0.04em;
}

/* ---------- Commercekit sticky ATC bar (fixed-positioned state) ---------- */
/* Shoptimizer clones the cart form into a div.commercekit-sticky-add-to-cart
   that toggles position:fixed at bottom on scroll. Style only that state. */
body.single-product .commercekit-sticky-add-to-cart,
body.single-product .shoptimizer-sticky-add-to-cart {
    background: linear-gradient(180deg, var(--ksec-navy-2, #1a2330) 0%, var(--ksec-navy, #0f1419) 100%) !important;
    color: #fff !important;
    border-top: 2px solid var(--ksec-gold, #c5a572) !important;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}
body.single-product .commercekit-sticky-add-to-cart .commercekit-pdp-sticky-inner,
body.single-product .shoptimizer-sticky-add-to-cart .col-full {
    color: #fff;
}
body.single-product .commercekit-sticky-add-to-cart .price,
body.single-product .commercekit-sticky-add-to-cart .amount,
body.single-product .shoptimizer-sticky-add-to-cart .price,
body.single-product .shoptimizer-sticky-add-to-cart .amount {
    color: var(--ksec-cyan, #03c4eb) !important;
    font-weight: 700;
}
body.single-product .commercekit-sticky-add-to-cart .button,
body.single-product .commercekit-sticky-add-to-cart button[type="submit"],
body.single-product .shoptimizer-sticky-add-to-cart .button,
body.single-product .shoptimizer-sticky-add-to-cart button[type="submit"] {
    background: var(--ksec-btn-on-dark) !important;
    color: var(--ksec-btn-on-dark-text) !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}
body.single-product .commercekit-sticky-add-to-cart .button:hover,
body.single-product .shoptimizer-sticky-add-to-cart .button:hover {
    background: var(--ksec-btn-on-dark-hover) !important;
    color: var(--ksec-btn-on-dark-text) !important;
}
body.single-product .commercekit-sticky-add-to-cart .product-title,
body.single-product .commercekit-sticky-add-to-cart .commercekit-pdp-sticky-title,
body.single-product .shoptimizer-sticky-add-to-cart .product-title {
    color: #fff !important;
}

/* === END PDP CHROME REDESIGN v1.3.34 === */


/* ==========================================================================
   PDP ESTIMATED DELIVERY DATE — v1.3.37 (Slice 2)
   Renders below the ATC form via woocommerce_after_add_to_cart_form hook
   in ksec-labs-snippets/front-end/estimated-delivery.php.
   ========================================================================== */
body.single-product .ksec-delivery-eta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e6e8ec;
    background: #f5fbf6;
    border-left: 3px solid #16a34a;
    border-radius: 4px;
    margin: 14px 0;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}
body.single-product .ksec-delivery-eta .ksec-eta-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.single-product .ksec-delivery-eta .ksec-eta-icon svg {
    width: 20px;
    height: 20px;
}
body.single-product .ksec-delivery-eta .ksec-eta-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
body.single-product .ksec-delivery-eta .ksec-eta-headline {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}
body.single-product .ksec-delivery-eta .ksec-eta-headline strong {
    color: #111;
    font-weight: 700;
}
body.single-product .ksec-delivery-eta .ksec-eta-cutdown {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}
body.single-product .ksec-delivery-eta .ksec-eta-cutdown strong {
    color: #16a34a;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
body.single-product .ksec-delivery-eta.is-expired .ksec-eta-cutdown {
    color: #999;
}
body.single-product .ksec-delivery-eta .ksec-eta-country {
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: auto;
    white-space: nowrap;
}
/* === END PDP ESTIMATED DELIVERY v1.3.37 === */


/* ==========================================================================
   PDP STOCK PROGRESS BAR — v1.3.42 (Slice 2.7)
   WC's <p class="stock in-stock"> wrapped via woocommerce_get_stock_html
   filter in ksec-labs-snippets to add a progress bar visualisation with
   per-status colours. CK's competing .commercekit-inventory bar is hidden.
   ========================================================================== */

/* Hide CG's competing inventory bar (duplicates the stock line, uses hype copy) */
body.single-product .commercekit-inventory {
    display: none !important;
}

/* Restyled WC stock line — light card with progress bar beneath */
body.single-product p.stock {
    margin: 8px 0 14px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #111;
    font-size: 13px;
    font-weight: 600;
}
/* Suppress WC/Shoptimizer's default ::before checkmark — our custom
   .ksec-stock-dot replaces it. The default tick rendered above the dot. */
body.single-product p.stock::before,
body.single-product p.stock.in-stock::before {
    content: none !important;
    display: none !important;
}
body.single-product p.stock .ksec-stock-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
body.single-product p.stock .ksec-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #16a34a;
}
body.single-product p.stock .ksec-stock-bar {
    display: block;
    height: 5px;
    background: #eef0f3;
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
    max-width: 280px;
}
body.single-product p.stock .ksec-stock-bar-fill {
    display: block;
    height: 100%;
    background: #16a34a;
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* In-stock high (default green) */
body.single-product p.stock.in-stock .ksec-stock-dot { background: #16a34a; }
body.single-product p.stock.in-stock .ksec-stock-bar-fill { background: #16a34a; }

/* Low stock — amber */
body.single-product p.stock.in-stock.ksec-stock-low .ksec-stock-dot,
body.single-product p.stock.ksec-stock-low .ksec-stock-dot {
    background: #FF9900;
}
body.single-product p.stock.in-stock.ksec-stock-low .ksec-stock-bar-fill,
body.single-product p.stock.ksec-stock-low .ksec-stock-bar-fill {
    background: #FF9900;
}

/* Critical (1-2 left) — amber, same hue as low.
   Red is reserved for out of stock and means "you cannot have this". A product
   with 2 left is still buyable, and when backorders are on the line literally
   reads "Only 2 left in stock (More available on order)", so red there told the
   shopper the opposite of the words next to it. The 1-2 band keeps its own class
   and its pulse, so the urgency signal survives without the wrong colour. */
body.single-product p.stock.ksec-stock-critical .ksec-stock-dot {
    background: #FF9900;
    animation: ksec-stock-pulse 1.6s infinite;
}
body.single-product p.stock.ksec-stock-critical .ksec-stock-bar-fill {
    background: #FF9900;
}
@keyframes ksec-stock-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Out of stock — red. This is the one state the shopper cannot buy, so it is
   the one state that earns red. Was grey, which read as "disabled" rather than
   "unavailable" and left red doing a job it should not have had. */
body.single-product p.stock.out-of-stock .ksec-stock-dot { background: #dc2626; }
body.single-product p.stock.out-of-stock .ksec-stock-bar-fill { background: #dc2626; width: 0 !important; }

/* On backorder — blue accent */
body.single-product p.stock.available-on-backorder .ksec-stock-dot { background: #1d4ed8; }
body.single-product p.stock.available-on-backorder .ksec-stock-bar-fill { background: #1d4ed8; }

/* === END PDP STOCK PROGRESS BAR v1.3.42 === */


/* ==========================================================================
   PDP LAST-SHIPPED PASSIVE PROOF — v1.3.52 (Slice 3)
   Small grey line below stock bar: "Last shipped to Germany · 4 hours ago".
   Server-rendered with 30-min transient cache. Cache-safe.
   ========================================================================== */
body.single-product .ksec-last-shipped {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 14px;
    padding: 0;
    font-size: 11px;
    color: #888;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
body.single-product .ksec-last-shipped::before {
    content: "→";
    color: var(--ksec-cyan-dk, #02738a);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}
body.single-product .ksec-last-shipped .where {
    color: #333;
    font-weight: 600;
}
body.single-product .ksec-last-shipped .when {
    color: #999;
}
/* === END PDP LAST-SHIPPED v1.3.52 === */


/* ==========================================================================
   STICKY TABS BAR — STUCK STATE ENHANCEMENT — v1.3.43 (Slice 2.7)
   When CG adds .commercekit-atc-stuck on scroll, switch to dark navy chrome
   and reveal the product-info row (thumb + title + cat·brand + price).
   Tab labels hide in stuck state — sticky surface focuses on buy CTA, not
   re-navigation.
   The .ksec-sticky-info <li> is JS-injected by pdp-stock-and-sticky.php from
   a <template> in the footer with all values escaped server-side.
   ========================================================================== */

/* Default state: hide injected product info, show tabs as before */
.commercekit-atc-sticky-tabs .ksec-sticky-info {
    display: none !important;
}

/* STUCK state — dark chrome, show info, hide tab labels */
.commercekit-atc-sticky-tabs.commercekit-atc-stuck {
    background: linear-gradient(180deg, var(--ksec-navy-2, #1a2330) 0%, var(--ksec-navy, #0f1419) 100%) !important;
    border-bottom: 2px solid var(--ksec-gold, #c5a572);
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
}
/* Show product info when stuck */
.commercekit-atc-sticky-tabs.commercekit-atc-stuck .ksec-sticky-info {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 14px;
    color: #fff;
}
/* Hide tab labels in stuck state — but KEEP the Add to basket button li visible */
.commercekit-atc-sticky-tabs.commercekit-atc-stuck ul.commercekit-atc-tab-links li:not(.ksec-sticky-info):not(#cgkit-tab-commercekit-sticky-atc-title) {
    display: none !important;
}
/* Force-show the ATC button li in stuck state (CG hides it by default at mobile
   then shows via desktop-only media rule. We want it on every breakpoint when stuck.) */
.commercekit-atc-sticky-tabs.commercekit-atc-stuck ul.commercekit-atc-tab-links #cgkit-tab-commercekit-sticky-atc-title {
    display: list-item !important;
}
/* Center the ATC button vertically — remove the CG default padding-top
   that pushed it below the tab labels' baseline. Applies in BOTH stuck
   and non-stuck states (operator request 2026-05-25). */
#cgkit-tab-commercekit-sticky-atc-title {
    padding-top: 0 !important;
    margin: 0 0 0 auto !important;
}
/* Layout the tabs ul as a flex row in stuck state */
.commercekit-atc-sticky-tabs.commercekit-atc-stuck ul.commercekit-atc-tab-links {
    display: flex;
    align-items: center;
    border-bottom: 0;
    background: transparent;
}

/* Product-info row internals */
.commercekit-atc-sticky-tabs .ksec-sticky-info .ksec-sticky-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}
.commercekit-atc-sticky-tabs .ksec-sticky-info .ksec-sticky-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.commercekit-atc-sticky-tabs .ksec-sticky-info .ksec-sticky-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}
.commercekit-atc-sticky-tabs .ksec-sticky-info .ksec-sticky-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.commercekit-atc-sticky-tabs .ksec-sticky-info .ksec-sticky-sub {
    font-size: 11px;
    color: var(--ksec-dim, rgba(255,255,255,0.65));
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.commercekit-atc-sticky-tabs .ksec-sticky-info .ksec-sticky-price {
    flex: 0 0 auto;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.commercekit-atc-sticky-tabs .ksec-sticky-info .ksec-sticky-price del {
    color: var(--ksec-dim, rgba(255,255,255,0.55));
    font-weight: 500;
    font-size: 13px;
    margin-right: 6px;
}
.commercekit-atc-sticky-tabs .ksec-sticky-info .ksec-sticky-price ins {
    /* v1.3.57: green sale price matches WC product-page convention (#28a745).
       <ins> only renders on sale items — non-sale prices stay white. */
    color: #28a745;
    text-decoration: none;
    font-weight: 700;
}

/* ATC button in stuck top tabs bar — v1.3.79: white-on-dark primary, gold hover */
.commercekit-atc-sticky-tabs.commercekit-atc-stuck .sticky-atc_button.button {
    background: var(--ksec-btn-on-dark) !important;
    color: var(--ksec-btn-on-dark-text) !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    padding: 10px 22px !important;
}
.commercekit-atc-sticky-tabs.commercekit-atc-stuck .sticky-atc_button.button:hover {
    background: var(--ksec-btn-on-dark-hover) !important;
    color: var(--ksec-btn-on-dark-text) !important;
}

/* === END STICKY TABS STUCK ENHANCEMENT v1.3.43 === */


/* ==========================================================================
   MOBILE BOTTOM STICKY ATC — v1.3.46 (Slice 2.8)
   On mobile (<=992px), the top sticky tabs bar is HIDDEN in stuck state and
   CG's #cgkit-mobile-commercekit-sticky-atc bar takes over at the bottom of
   viewport (native mobile commerce pattern). JS injects product thumb +
   title + price; we style with dark navy chrome.
   ========================================================================== */

/* v1.3.62 mobile flicker fix: override the BASE class (not just .stuck) so
   the element is never sticky on mobile either. Mirrors the v1.3.56 desktop
   fix. Previously only the .stuck rule was `position: static !important`,
   which caused the same observer feedback loop as desktop: CG observer
   detected scroll past threshold -> added .stuck -> element became static ->
   element returned to normal flow position -> observer no longer saw it past
   threshold -> removed .stuck -> CG restored position:sticky -> cycle
   restarted -> visible mobile screen shake during scroll. */
@media (max-width: 992px) {
    .commercekit-atc-sticky-tabs,
    .commercekit-atc-sticky-tabs.commercekit-atc-stuck {
        position: static !important;
        background: transparent !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
    }
    /* The tabs themselves still render at their natural position further
       down the page. CG's bottom #cgkit-mobile-commercekit-sticky-atc bar
       (or our v1.0.54 OOS sticky bar) carries the mobile sticky surface. */
}

/* v1.3.55: kill the top sticky stuck behaviour on DESKTOP now that the
   bottom sticky ATC bar is always visible there (Slice 4). The top tabs
   stuck state with our injected product info was redundant.

   v1.3.56 flicker fix: override the BASE class (not just .stuck) so the
   element is never sticky on desktop. Previously only the .stuck rule was
   `position: static !important`, which caused a feedback loop: CG observer
   detected scroll past threshold → added .stuck → element became static
   → element returned to normal flow position → observer no longer saw it
   past threshold → removed .stuck → CG restored position:sticky → cycle
   restarted → visible flicker. */
@media (min-width: 993px) {
    .commercekit-atc-sticky-tabs,
    .commercekit-atc-sticky-tabs.commercekit-atc-stuck {
        position: static !important;
        background: #fff !important;
        border-bottom: 1px solid #e6e8ec !important;
        box-shadow: none !important;
    }
    /* Hide our desktop-injected info row + the top-bar ATC button (the
       bottom sticky bar carries those now). Show normal tabs. */
    .commercekit-atc-sticky-tabs .ksec-sticky-info,
    .commercekit-atc-sticky-tabs #cgkit-tab-commercekit-sticky-atc-title {
        display: none !important;
    }
    .commercekit-atc-sticky-tabs ul.commercekit-atc-tab-links li:not(.ksec-sticky-info):not(#cgkit-tab-commercekit-sticky-atc-title) {
        display: list-item !important;
    }
}

/* CG bottom sticky bar — dark navy chrome + injected product info.
   v1.3.54: shown on BOTH desktop and mobile, always-visible (not scroll-triggered).
   Desktop uses this bar as a quick-buy CTA; mobile uses it as the native sticky
   commerce pattern. Top sticky tabs bar still appears on scroll for nav. */
#cgkit-mobile-commercekit-sticky-atc {
    background: linear-gradient(180deg, var(--ksec-navy-2, #1a2330) 0%, var(--ksec-navy, #0f1419) 100%) !important;
    color: #fff !important;
    border-top: 2px solid var(--ksec-gold, #c5a572) !important;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.22) !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
    /* Always visible — bypass CG's scroll-triggered show/hide */
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 100 !important;
    max-width: none !important;
    margin: 0 !important;
}
@media (min-width: 993px) {
    /* Desktop centered with cap to match site col-full max */
    #cgkit-mobile-commercekit-sticky-atc {
        padding: 12px 24px !important;
    }
}

/* Mobile sticky info row (injected) */
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-info--mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
}
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-thumb {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
    /* CommerceKit's commercekit-sticky-atc.css centres the bar; keep the price under the name. */
    text-align: left;
}
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-title {
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* v1.3.54: price WHITE not cyan — better contrast on the dark navy bar */
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-price {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    white-space: normal;
    font-variant-numeric: tabular-nums;
}
/* The block may wrap so a long VAT note ('excl. btw') drops under the price
   instead of running under the button; the amount and the note each stay on
   one line. */
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-price .woocommerce-Price-amount,
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-price .woocommerce-price-suffix {
    white-space: nowrap;
}
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-price .woocommerce-price-suffix {
    font-size: 11px;
}
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-price del {
    color: var(--ksec-dim, rgba(255,255,255,0.55));
    font-weight: 500;
    font-size: 12px;
    margin-right: 4px;
}
#cgkit-mobile-commercekit-sticky-atc .ksec-sticky-price ins {
    /* v1.3.57: green sale price matches WC product-page (#28a745). */
    color: #28a745;
    text-decoration: none;
    font-weight: 700;
}

/* The CG button — v1.3.54: WHITE bg + navy text for better contrast on the
   dark navy bar. Was cyan before but operator flagged cyan-on-navy as
   reading as "light blue on dark blue" with poor contrast. */
#cgkit-mobile-commercekit-sticky-atc .sticky-atc_button.button {
    background: var(--ksec-btn-on-dark) !important;
    color: var(--ksec-btn-on-dark-text) !important;
    border: 0 !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    padding: 10px 14px !important;
    border-radius: 4px !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    box-sizing: content-box !important;
    /* 44px touch target: content box, so 24px plus 2 x 10px padding. */
    min-height: 24px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible !important;
    margin: 0 !important;
}
#cgkit-mobile-commercekit-sticky-atc .sticky-atc_button.button:hover {
    background: var(--ksec-btn-on-dark-hover) !important;
    color: var(--ksec-btn-on-dark-text) !important;
}

/* Push the WPLoyalty "Rewards Hub" launcher above the bottom sticky bar on
   single-product pages (both desktop + mobile since v1.3.54 — desktop now
   also shows the bottom sticky bar always). Sticky bar height (~62px) +
   original 16px gap = 78px clearance. Since UX Batch OB (2026-10-11) the
   buy and restock bars measure 66px on phones (71px with a two-line restock
   label) and 70px on desktop, so 78px now leaves 7 to 12px. */
body.single-product .wll-launcher-button-container {
    bottom: 78px !important;
}
/* === END MOBILE BOTTOM STICKY ATC v1.3.46 === */


/* ==========================================================================
   STICKY PRIMARY NAVIGATION FIX — v1.3.38

   Shoptimizer's sticky-nav CSS in main.css (line 3289-3306) targets
   `body:not(.header-4).sticky-d .shoptimizer-primary-navigation.is_stuck`
   for `position: sticky`. But Shoptimizer's own sticky-nav JS adds the
   `.is_stuck` class to the PARENT `.col-full-nav`, not to the inner
   `.shoptimizer-primary-navigation` child. The CSS selector never matches
   so the nav never sticks.

   Fix: replicate the parent rule against the actual element the JS targets.
   Site-wide (every page), not just PDP.
   ========================================================================== */

@media (min-width: 993px) {
    body:not(.header-4).sticky-d .col-full-nav.is_stuck {
        position: sticky !important;
        top: 0;
        z-index: 15;
        box-shadow: 0 15px 10px -15px rgba(0, 0, 0, 0.1);
    }
    body:not(.header-4).sticky-d.admin-bar .col-full-nav.is_stuck {
        top: 32px;
    }
}
/* === END STICKY NAV FIX v1.3.38 === */


/* ==========================================================================
   PDP MOBILE REFLOW — v1.3.40
   Breadcrumb + tabs nav need to reflow on mobile so all content is visible
   without horizontal scroll.
   ========================================================================== */

@media (max-width: 992px) {
    /* Breadcrumb: allow wrap across multiple lines. Yoast ships nowrap by
       default which forces overflow on long PDP crumb chains. */
    body.single-product .archive-header .woocommerce-breadcrumb {
        white-space: normal;
        line-height: 1.6;
    }
    body.single-product .archive-header .woocommerce-breadcrumb,
    body.single-product .archive-header .woocommerce-breadcrumb span {
        word-break: normal;
        overflow-wrap: anywhere;
    }

    /* Tabs nav: wrap onto multiple rows instead of horizontal scroll so all
       tab labels are visible. ATC button (last child .commercekit-atc-button-li)
       sits on its own row at the right. */
    body.single-product ul.commercekit-atc-tab-links {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }
    body.single-product ul.commercekit-atc-tab-links li {
        flex: 0 0 auto;
    }
    body.single-product ul.commercekit-atc-tab-links li a.commercekit-atc-tab {
        padding: 12px 16px;
        font-size: 12px;
    }
    /* Ensure the floating "Add to basket" button stays on its own row */
    body.single-product ul.commercekit-atc-tab-links li.commercekit-atc-button-li {
        flex: 1 1 100%;
        order: 99;
        margin-top: 6px;
    }
}

/* Smaller mobile (≤480px): tighter padding, smaller font */
@media (max-width: 480px) {
    body.single-product ul.commercekit-atc-tab-links li a.commercekit-atc-tab {
        padding: 10px 12px;
        font-size: 11px;
        letter-spacing: 0.04em;
    }
    body.single-product .archive-header > .col-full {
        padding: 12px 16px;
    }
    body.single-product .archive-header .woocommerce-breadcrumb {
        font-size: 12px;
    }
}
/* === END PDP MOBILE REFLOW v1.3.40 === */

/* ==========================================================================
   PDP BODY SLICE (a) — related + up-sells card alignment — v1.3.65

   Brings the .related and .up-sells product grids into the same card spec
   as the homepage [ksec_picks_row] / archive picks rails so the PDP cross-
   sell rails feel like part of the same visual system.

   The existing :not() rule in ksec-labs-ui/assets/style.css (line ~888) already
   catches `.products.columns-6` on PDPs and gives it 6/3/2 cadence. We only
   need to:
     - widen the inter-card gap from 14px → 20px to match picks-grid
     - normalise image wrapper to square with contain-fit + white bg
     - equalise loop-title heights at 50px so rows align across mixed
       product photo aspect ratios

   Scoped to body.single-product so it cannot bleed into any other
   `.related .products` surface (e.g. checkout cross-sells).
   ========================================================================== */

/* Gap rules dropped in v1.3.66 — the picks-grid plugin rule at
   ksec-labs-ui/assets/style.css:888 already gives related/up-sells
   .columns-6 grids the 14/12/10 cadence we want (matches archive density).
   Image normalisation + title alignment below are the actual wins. */

body.single-product .related .woocommerce-image__wrapper,
body.single-product .related .shoptimizer-plp-image-wrapper,
body.single-product .up-sells .woocommerce-image__wrapper,
body.single-product .up-sells .shoptimizer-plp-image-wrapper {
    aspect-ratio: 1 / 1 !important;
    background: #fff;
    position: relative;
    overflow: hidden;
}
body.single-product .related .woocommerce-image__wrapper img,
body.single-product .related .shoptimizer-plp-image-wrapper img,
body.single-product .up-sells .woocommerce-image__wrapper img,
body.single-product .up-sells .shoptimizer-plp-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 10px;
    box-sizing: border-box;
}

body.single-product .related .woocommerce-loop-product__title,
body.single-product .up-sells .woocommerce-loop-product__title {
    min-height: 50px;
}
/* === END PDP BODY SLICE (a) — RELATED + UP-SELLS CARD ALIGNMENT v1.3.65 === */

/* ==========================================================================
   PRODUCT-LOOP IMAGE BOX — dead-strip fix — v1.4.7

   Parent Shoptimizer renders .woocommerce-image__wrapper ~18px taller than
   non-square product images fill, leaving a dead white strip below the image
   and above the .ksec-loop-brand bar. Same normalisation the related/up-sells
   block above already applies on PDPs — extended here to the homepage product
   rows (.ksec-tah-row__grid) and the shop/category archives (ul.products) so
   the wrapper hugs a square image. Picks-rail (.ksec-tah-picks-grid) already
   has its own identical rule in ksec-labs-ui; this is additive and harmless.
   ====================================================================== */

ul.products .woocommerce-image__wrapper,
ul.products .shoptimizer-plp-image-wrapper,
.ksec-tah-row__grid .woocommerce-image__wrapper,
.ksec-tah-row__grid .shoptimizer-plp-image-wrapper {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    background: #fff;
    position: relative;
    overflow: hidden;
    /* v1.4.18: Shoptimizer reserves ~22px padding-bottom on
       .shoptimizer-plp-image-wrapper for its PLP carousel pagination dots.
       Inside the 1/1 box that leaves the img box 160x138 (non-square), so square
       product photos letterbox (white side bars) and never reach the absolute
       stock-status ribbon pinned to the bottom of the square. Zero it so the
       image fills the square edge-to-edge and the ribbon overlays its bottom,
       matching the hero featured card (fixed in ksec-labs-ui 1.4.87). */
    padding-bottom: 0 !important;
}
ul.products .woocommerce-image__wrapper img,
ul.products .shoptimizer-plp-image-wrapper img,
.ksec-tah-row__grid .woocommerce-image__wrapper img,
.ksec-tah-row__grid .shoptimizer-plp-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Drop the brand-bar offset that compensated for the old strip. !important
   because the live top:-13px lives in Customizer Additional CSS, which prints
   after theme styles in wp_head. The dead Customizer line can be removed the
   next time that block is edited. */
.woocommerce-card__header .ksec-loop-brand {
    position: static !important;
    top: auto !important;
}

/* Mobile PLP carousel pagination dots were sitting too low. */
@media (max-width: 992px) {
    .shoptimizer-plp-carousel--pagination {
        bottom: 20px;
    }
}

/* Loop-card compaction (v1.4.8). Plain rules: padding-top overrides the
   parent-Shoptimizer 12px default; title min-height applies to the main grid
   while the picks-rail keeps its higher-specificity 50px. */
.woocommerce-card__header {
    padding-top: 5px;
}
/* Header-scoped (0,2,0) to outweigh the Customizer .woocommerce-loop-product__title
   min-height:71px rule, which ties on specificity and would otherwise win on
   load order. */
.woocommerce-card__header .woocommerce-loop-product__title {
    min-height: 45px;
}

/* Rounded loop image corners — 10px (v1.4.10). The wrapper carries overflow:hidden
   (v1.4.7), so the radius must be on the wrapper to be visible; img matches. */
body ul.products li.product .woocommerce-image__wrapper,
.ksec-tah-row__grid .woocommerce-image__wrapper {
    border-radius: 10px;
}
body ul.products li.product .woocommerce-image__wrapper img {
    border-radius: 10px;
}

/* Picks-rail images flush to the square — remove labs-ui's 10px padding inset.
   Body-prefixed (0,2,2) to outweigh the plugin's .ksec-tah-picks-grid …img rule;
   !important as belt-and-braces since the plugin loads after the theme. */
body .ksec-tah-picks-grid .woocommerce-image__wrapper img,
body .ksec-tah-picks-grid .shoptimizer-plp-image-wrapper img {
    padding: 0 !important;
}
/* === END PRODUCT-LOOP IMAGE BOX — dead-strip fix v1.4.7 / compaction v1.4.8-9 / corners+inset v1.4.10 === */

/* ==========================================================================
   EU SITE-TITLE WORDMARK — v1.4.11

   eu.ksec.co.uk renders the blogname "KSEC EU" as a text .site-title.
   The wordmark reads "KSEC® EU" since 2026-09-28 (operator decision, to match
   the site title, Google's site name and the legal entity KSEC EU SRL).
   (labs/UK uses the image/wordmark logo, so it has NO .site-title — this
   selector is therefore eu-only; b2b runs a different child theme.)
   Add the ® after KSEC and size the wordmark to 22px. The ® can't be inserted
   mid-string via CSS, so hide the anchor text and re-render it via ::after;
   the real blogname stays in the DOM for SEO / screen readers.
   ====================================================================== */
.site-branding .site-title a.custom-logo-link {
    font-size: 0;
}
.site-branding .site-title a.custom-logo-link::after {
    content: "KSEC® EU";
    font-size: 22px;
}
/* === END EU SITE-TITLE WORDMARK v1.4.11 === */

/* ==========================================================================
   CHECKOUT CHROME RESTYLE — slice (2) — v1.3.66

   Brings labs /checkout/ into the dark+cyan+gold visual identity established
   by homepage / PDP chrome / mega menu / footer. Page background stays WHITE
   (Shoptimizer default preserved); only accents and the Place Order CTA
   carry the brand colours. Same principle as PDP body slice (a) — chrome
   does the identity lift, body stays light for legibility on dense form text.

   IMPORTANT — what this does NOT touch:
     - XL NextMove stepper LOGIC (visual restyle only)
     - The 165 lines of xlwcty_* rules in Customizer post 5690 — those style
       XL's THANK-YOU template, NOT this checkout stepper (which is
       Shoptimizer's `.checkout-bar` convention). Slice (3) will rebuild the
       thank-you page and invalidate post 5690's block.
     - Payment-method registration / AJAX / validation — gateway plugins own.
     - Per-method icons that are already provided by their gateway (Klarna
       pink K, Wise cyan logo, CoinGate Bitcoin B). Only adding a sprite
       fallback for methods missing icons.
     - Cart page (separate surface, deferred).

   Selector strategy: single `body.woocommerce-checkout` scope at the top,
   keeps the block easy to find / easy to remove if slice (4) ships block
   checkout. Tokens: --ksec-cyan, --ksec-cyan-dk, --ksec-gold, --ksec-navy
   (defined in megamenu block at top of file).
   ========================================================================== */

/* ---------- Stepper (.checkout-bar) ------------------------------------ */
/* Shoptimizer/snippet convention, NOT XL. Replaces the XL-green #01cc68
   text with cyan-active / navy-inactive. Connector line darkened to navy. */

body.woocommerce-checkout .checkout-wrap {
    margin: 24px 0 8px;
}
body.woocommerce-checkout ul.checkout-bar {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    position: relative;
}
body.woocommerce-checkout ul.checkout-bar li {
    flex: 1 1 0;
    text-align: center;
    position: relative;
    padding: 0;
    margin: 0;
}
body.woocommerce-checkout ul.checkout-bar li a,
body.woocommerce-checkout ul.checkout-bar li > span {
    color: var(--ksec-navy);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.02em;
}
body.woocommerce-checkout ul.checkout-bar li.active a,
body.woocommerce-checkout ul.checkout-bar li.active > span {
    color: var(--ksec-cyan-dk);
}
body.woocommerce-checkout ul.checkout-bar li:not(.active):not(.visited) a,
body.woocommerce-checkout ul.checkout-bar li:not(.active):not(.visited) > span {
    color: rgba(15, 20, 25, 0.45);
}

/* v1.3.67 — stepper visual polish (connectors + active circle).
   The `<li>::before` is the numbered circle, `<li>::after` is the
   connector line going right from that step toward the next. XL/snippet
   defaults paint the connector green #01cc68 and the circle dark grey.
   Override both to the brand cyan / navy system. */
body.woocommerce-checkout ul.checkout-bar li::after {
    background-color: rgba(15, 20, 25, 0.15) !important;
}
body.woocommerce-checkout ul.checkout-bar li.active::after,
body.woocommerce-checkout ul.checkout-bar li.visited::after {
    background-color: var(--ksec-cyan) !important;
}
body.woocommerce-checkout ul.checkout-bar li.active::before {
    background-color: var(--ksec-cyan) !important;
    color: #fff !important;
}
body.woocommerce-checkout ul.checkout-bar li.visited::before {
    background-color: var(--ksec-cyan-dk) !important;
    color: #fff !important;
}

/* v1.3.69 — hide ul::before entirely (was the global progress-fill bar).
   We now let the per-li::after connectors be the only stepper paint —
   they're more informative (per-leg cyan vs grey) and the stacking of
   two bars was visually noisy. v1.3.68 recoloured this layer to cyan;
   v1.3.69 just drops it. */
body.woocommerce-checkout ul.checkout-bar::before {
    display: none !important;
}

/* ---------- Form inputs — cyan focus ring, navy text ------------------- */
body.woocommerce-checkout form.checkout input[type="text"],
body.woocommerce-checkout form.checkout input[type="email"],
body.woocommerce-checkout form.checkout input[type="tel"],
body.woocommerce-checkout form.checkout input[type="number"],
body.woocommerce-checkout form.checkout input[type="password"],
body.woocommerce-checkout form.checkout textarea,
body.woocommerce-checkout form.checkout select,
body.woocommerce-checkout form.checkout .select2-selection {
    color: var(--ksec-navy);
    border-color: rgba(15, 20, 25, 0.18);
    transition: border-color .15s ease, box-shadow .15s ease;
}
body.woocommerce-checkout form.checkout input[type="text"]:focus,
body.woocommerce-checkout form.checkout input[type="email"]:focus,
body.woocommerce-checkout form.checkout input[type="tel"]:focus,
body.woocommerce-checkout form.checkout input[type="number"]:focus,
body.woocommerce-checkout form.checkout input[type="password"]:focus,
body.woocommerce-checkout form.checkout textarea:focus,
body.woocommerce-checkout form.checkout select:focus,
body.woocommerce-checkout form.checkout .select2-container--focus .select2-selection {
    border-color: var(--ksec-cyan);
    box-shadow: 0 0 0 3px rgba(3, 196, 235, 0.15);
    outline: none;
}

/* ---------- Section headings (Billing details / Your order / Payment) -- */
body.woocommerce-checkout h3#order_review_heading,
body.woocommerce-checkout #customer_details h3,
body.woocommerce-checkout .woocommerce-additional-fields h3 {
    color: var(--ksec-navy);
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ksec-cyan);
    display: inline-block;
    margin-bottom: 20px;
}

/* ---------- Loyalty banner (orange star → gold) ------------------------ */
/* The WPLoyalty plugin renders <i class="wlr-..."> with its own colour;
   the star icon is an SVG whose fill is set via the icon-font glyph colour.
   Override panel chrome + star colour to brand tokens. */
body.woocommerce-checkout .wlr-message-info.wlr_points_rewards_earn_points {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-left: 4px solid var(--ksec-gold);
    border-radius: 4px;
    color: var(--ksec-navy);
    padding: 14px 18px;
}
body.woocommerce-checkout .wlr-message-info.wlr_points_rewards_earn_points i,
body.woocommerce-checkout .wlr-message-info.wlr_points_rewards_earn_points svg {
    color: var(--ksec-gold) !important;
    fill: var(--ksec-gold) !important;
}

/* ---------- Discount accordion ---------------------------------------- */
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-left: 4px solid var(--ksec-cyan);
    color: var(--ksec-navy);
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
    color: var(--ksec-cyan);
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle a.showcoupon {
    color: var(--ksec-cyan-dk);
    font-weight: 600;
}

/* ---------- "Free Shipping Available" notice -------------------------- */
body.woocommerce-checkout .ksec-free-shipping,
body.woocommerce-checkout #order_review .woocommerce-info {
    color: var(--ksec-navy);
}
/* v1.3.69 — dropped the blanket `#order_review strong { color: cyan-dk }`
   rule. It was catching the Free Shipping notice's bold phrases AND every
   other <strong> in the right column (ksec-savings-badge, CommerceKit
   notices, etc.) making bold text universally cyan. Let <strong> stay
   inherited; brand accents come from headings, borders, totals, focus. */

/* ---------- Payment method list --------------------------------------- */
body.woocommerce-checkout ul.wc_payment_methods {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
}
body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
    border-bottom: 1px solid rgba(15, 20, 25, 0.08);
    padding: 14px 18px;
    margin: 0;
    transition: background-color .15s ease;
}
body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method:last-child {
    border-bottom: 0;
}
body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method:hover {
    background-color: rgba(3, 196, 235, 0.04);
}
body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method > input[type="radio"]:checked + label {
    color: var(--ksec-navy);
    font-weight: 600;
}
/* Radio dot — cyan when checked. */
body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method input[type="radio"] {
    accent-color: var(--ksec-cyan);
}

/* v1.3.67 — Request a Quote: text-only label is fine; the navy box added
   in v1.3.66 rendered as an empty rectangle without content. Dropped. */

/* ---------- Shipping methods (preserve :has() badges in post 5690) ----- */
body.woocommerce-checkout ul#shipping_method li input[type="radio"] {
    accent-color: var(--ksec-cyan);
}
body.woocommerce-checkout ul#shipping_method li label {
    color: var(--ksec-navy);
}

/* ---------- Order summary table — accent Total row -------------------- */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total {
    background: rgba(3, 196, 235, 0.04);
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    border-top: 2px solid var(--ksec-cyan);
    color: var(--ksec-navy);
    font-weight: 700;
    padding-top: 14px;
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr.order-total .amount {
    color: var(--ksec-cyan-dk);
    font-size: 18px; /* v1.3.70 — was 22px, too dominant; 18px reads strong without shouting */
}

/* ---------- Place Order button — black primary, near-black hover ------ */
body.woocommerce-checkout #place_order {
    background: var(--ksec-btn-primary);
    color: var(--ksec-btn-primary-text);
    border: 2px solid var(--ksec-btn-primary);
    border-radius: 4px;
    transition: background-color .15s ease, border-color .15s ease;
}
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus {
    background: var(--ksec-btn-primary-hover);
    border-color: var(--ksec-btn-primary-hover);
    color: var(--ksec-btn-primary-text);
    outline: none;
}

/* ---------- Stripe Elements input chrome ------------------------------ */
body.woocommerce-checkout .StripeElement,
body.woocommerce-checkout .wc-stripe-elements-field,
body.woocommerce-checkout .wc-stripe-iban-element-field {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.18);
    border-radius: 4px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
body.woocommerce-checkout .StripeElement--focus,
body.woocommerce-checkout .wc-stripe-elements-field--focus {
    border-color: var(--ksec-cyan);
    box-shadow: 0 0 0 3px rgba(3, 196, 235, 0.15);
}

/* ---------- Terms checkbox ------------------------------------------- */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    accent-color: var(--ksec-cyan);
}

/* ---------- v1.3.69 — page outer padding + tightened column gap ------ */
/* Shoptimizer's default .col-full container ran flush to the viewport
   edges on /checkout/ (form column starting ~15px in, summary column
   flush right). Add 24-32px outer padding so the page breathes at the
   edges, and tighten the inter-column gap by the same amount so total
   content width stays balanced. Scoped to checkout so other surfaces
   (which already have their own padding rules) are unaffected. */
body.woocommerce-checkout .col-full,
body.woocommerce-checkout .container,
body.woocommerce-checkout .site-content > .col-full {
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
    box-sizing: border-box;
}
/* Tighten the two-column gap on the checkout grid (Shoptimizer uses
   floated columns or a flex 60/40 split). Reduce the inter-column gutter
   to compensate for the outer padding so content density stays similar. */
@media (min-width: 992px) {
    body.woocommerce-checkout #customer_details {
        padding-right: 24px;
        box-sizing: border-box;
    }
    body.woocommerce-checkout #order_review_heading,
    body.woocommerce-checkout #order_review {
        padding-left: 24px;
        box-sizing: border-box;
    }
}
/* === END CHECKOUT CHROME RESTYLE v1.3.66 (patched v1.3.67, v1.3.68, v1.3.69) === */

/* ==========================================================================
   CHECKOUT v1.3.70 — pill alignment fix + Free Shipping block polish
   ========================================================================== */

/* ---------- v1.3.70 — shipping label pill alignment fix ---------------
   Customizer post 5690 (lines 547-627) attaches "Most Popular" /
   "Free for £35+ orders" / "Complementory for £150+ orders" badges via
   `label::after { content: "..."; margin-left: 6px; }` — an INLINE
   trailing element. The v1.0.55 ETA snippet wraps a `<span class="ksec-
   shipping-eta">` inside the label as `display: block`, which pushes the
   `::after` pseudo onto its OWN line below the ETA. Visually the pill
   was inline next to the label text before the ETA addition.

   Fix: position the pill ABSOLUTELY at top-right of the relatively-
   positioned `<li>` so the ETA span and description `<p>` can flow
   naturally below the label without bumping the pill. Margin-left
   override needed because the absolute position makes margin-left a
   no-op anyway, but resetting it keeps the rule explicit. */
body.woocommerce-checkout #shipping_method li {
    position: relative;
    padding-right: 0 !important; /* v1.3.71 — padding-right moved to label */
}
/* v1.3.71 — padding-right on the LI wasn't bounding the label text (label
   defaults to display:inline and doesn't honour parent padding for its
   single-line title content). Put padding-right on the label itself so the
   title text wraps cleanly inside the pill-reserved zone. */
body.woocommerce-checkout #shipping_method li label {
    display: block !important;
    padding-right: 140px !important;
    box-sizing: border-box !important;
    word-wrap: break-word;
}
body.woocommerce-checkout #shipping_method li label::after {
    position: absolute !important;
    top: 2px !important;
    right: 0 !important;
    margin-left: 0 !important;
    z-index: 2;
}

/* v1.3.72 — "Fastest" pill for Next Day Delivery (Mon-Fri).
   Driven by the data-ksec-rate-type marker emitted by the snippet plugin's
   `checkout-shipping-method-overrides.php` filter. Uses :has() (already
   relied on by the existing Customizer pill rules at post 5690 line 613).
   Robust across DOM-order changes — pill follows the classified rate. */
body.woocommerce-checkout ul#shipping_method li:has(.ksec-rate-marker[data-ksec-rate-type="fastest"]) label::after {
    content: "Fastest" !important;
    color: #fff !important;
    background: var(--ksec-cyan-dk) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase;
}

/* v1.3.72 — Saturday rate description styling. The cutoff explainer span
   we append in the PHP filter shares `.shipping-method-description` so
   it picks up the v1.3.70 typography (12px / 70% navy / 1.45 line-height).
   This rule just tightens spacing under the rewritten "Saturday Delivery"
   label so the explainer reads as a continuation. */
body.woocommerce-checkout #shipping_method li .shipping-method-description.ksec-saturday-cutoff {
    margin-top: 6px;
    display: block;
}
body.woocommerce-checkout #shipping_method li .shipping-method-description.ksec-saturday-cutoff strong {
    color: var(--ksec-cyan-dk);
    font-weight: 700;
}
/* Style my ETA span to read as a continuation of the description
   (same colour + size) so the two info lines feel like one block. */
body.woocommerce-checkout #shipping_method li .ksec-shipping-eta {
    margin-top: 6px;
}
body.woocommerce-checkout #shipping_method li .shipping-method-description {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(15, 20, 25, 0.7);
    font-weight: 400;
    line-height: 1.45;
}
body.woocommerce-checkout #shipping_method li .shipping-method-description strong {
    color: rgba(15, 20, 25, 0.9);
    font-weight: 600;
}

/* ---------- v1.3.70 — Free Shipping notice (top of order summary) -----
   Source: ksec-labs-snippets/front-end/cart-checkout.php:600 emits
   `<div class="ksec-free-shipping-notice commercekit-order-bump active">`
   with inline styles + .ckobp-title heading + flex wrapper + 50px image.
   Never been brand-styled. Bring it into the checkout palette while
   preserving the existing strong tags (they no longer pick up the
   cyan-bold rule dropped in v1.3.69). */
body.woocommerce-checkout .ksec-free-shipping-notice.commercekit-order-bump {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-left: 4px solid var(--ksec-cyan);
    border-radius: 4px;
    padding: 14px 18px;
}
body.woocommerce-checkout .ksec-free-shipping-notice .ckobp-title {
    color: var(--ksec-navy);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(15, 20, 25, 0.08);
}
body.woocommerce-checkout .ksec-free-shipping-notice .ckobp-image img {
    filter: grayscale(20%);
    opacity: 0.85;
}
body.woocommerce-checkout .ksec-free-shipping-notice .ckobp-name {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ksec-navy);
}
body.woocommerce-checkout .ksec-free-shipping-notice .ckobp-name strong {
    color: var(--ksec-cyan-dk);
    font-weight: 700;
}
/* === END CHECKOUT v1.3.70 PILL ALIGNMENT + FREE SHIPPING POLISH === */

/* ==========================================================================
   ORDER RECEIVED (THANK-YOU) — slice 3 — v1.3.73

   Replaces XL NextMove Lite's hijacked thank-you template. Template lives
   at themes/ksec-store-sp-labs/woocommerce/checkout/thankyou.php; XL Lite
   plugin is deactivated. CSS rules below are all `.ty-*` namespaced so
   they cannot bleed into other surfaces, and the outer scope is
   `body.woocommerce-order-received` for double-isolation.

   Spec: wp-ad-s1.ksec.co.uk/docs/labs-thankyou-render.html (rev 3 after design-check)
   ========================================================================== */

body.woocommerce-order-received .ty-shell {
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(24px, 3vw, 48px) clamp(20px, 3vw, 48px) 0; /* v1.3.75 — was 64px bottom; flushes support strip into the site footer below */
    color: var(--ksec-navy);
    line-height: 1.55;
    font-size: 15px;
}
body.woocommerce-order-received .ty-shell a { color: var(--ksec-cyan-dk); text-decoration: none; }
body.woocommerce-order-received .ty-shell a:hover { color: var(--ksec-cyan); text-decoration: underline; }

/* --- Section 1 — Header chrome --- */
.ty-header {
    padding: 18px 0 20px;
    border-bottom: 1px solid rgba(15, 20, 25, 0.1);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.ty-header__brand {
    font-family: 'SpyAgency', sans-serif;
    font-size: 22px;
    letter-spacing: 0.08em;
    color: var(--ksec-navy);
    text-transform: uppercase;
}
.ty-header__title {
    font-size: 14px;
    color: rgba(15, 20, 25, 0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Section 2 — Confirmation hero --- */
.ty-hero {
    background: linear-gradient(135deg, var(--ksec-navy) 0%, #1a2330 100%);
    color: #fff;
    padding: 40px 36px;
    border-radius: 8px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.ty-hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 4px; height: 100%;
    background: var(--ksec-cyan);
}
.ty-hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--ksec-cyan);
    border-radius: 50%;
    margin-bottom: 18px;
}
.ty-hero__check svg { color: var(--ksec-navy); }
.ty-hero__h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
    color: #fff;
}
.ty-hero__lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 24px;
    max-width: 560px;
}
.ty-hero__meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ty-hero__meta-item .label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 600;
}
.ty-hero__meta-item .value { font-size: 17px; color: #fff; font-weight: 700; }
.ty-hero__meta-item .value.gold { color: var(--ksec-gold); }

/* --- Section 3 — Status + map --- */
.ty-status-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
@media (max-width: 860px) { .ty-status-row { grid-template-columns: 1fr; } }
/* Nothing to ship (DEV-282): no map card, so the timeline takes the row. */
.ty-status-row--single { grid-template-columns: 1fr; }
.ty-card {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-radius: 8px;
    padding: 26px 28px;
}
.ty-card > h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ksec-navy);
    margin: 0;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ksec-cyan);
    display: inline-block;
}
.ty-card-body { margin-top: 20px; }

.ty-timeline { margin: 0; padding: 0; list-style: none; }
.ty-timeline li { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; position: relative; }
.ty-timeline li + li::before {
    content: ""; position: absolute;
    left: 13px; top: -10px;
    width: 2px; height: 20px;
    background: rgba(15, 20, 25, 0.1);
}
.ty-timeline li.done + li::before { background: var(--ksec-cyan); }
.ty-timeline__dot {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(15, 20, 25, 0.06);
    border: 2px solid rgba(15, 20, 25, 0.1);
    display: flex; align-items: center; justify-content: center;
    color: transparent;
}
.ty-timeline li.done .ty-timeline__dot { background: var(--ksec-cyan); border-color: var(--ksec-cyan); color: #fff; }
.ty-timeline li.current .ty-timeline__dot {
    background: #fff;
    border-color: var(--ksec-cyan);
    box-shadow: 0 0 0 3px rgba(3, 196, 235, 0.18);
}
.ty-timeline__text { flex-grow: 1; }
.ty-timeline__label { font-size: 14px; font-weight: 600; color: var(--ksec-navy); margin: 0 0 2px; }
.ty-timeline__meta { font-size: 12px; color: rgba(15, 20, 25, 0.45); margin: 0; }
.ty-timeline li.done .ty-timeline__meta { color: var(--ksec-cyan-dk); }

.ty-eta-callout {
    background: rgba(3, 196, 235, 0.06);
    border: 1px solid rgba(3, 196, 235, 0.2);
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--ksec-navy);
}
.ty-eta-callout svg { color: var(--ksec-cyan-dk); flex-shrink: 0; }
.ty-eta-callout strong { font-weight: 700; }

.ty-map-wrap { padding: 0; }
.ty-map-wrap > h2 { margin: 26px 28px 0; }
.ty-map-wrap .ty-card-body { margin-top: 0; }
.ty-map {
    height: 320px;
    margin-top: 18px;
    border-radius: 0;
    overflow: hidden;
    background: #f5f5f5;
}
/* Google Maps Static image. The container is half a two-column card on desktop
   and full width on mobile, so the fixed 640x320 render is cropped to fit
   rather than letterboxed. */
.ty-map__static {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ty-map-address {
    padding: 18px 28px;
    border-top: 1px solid rgba(15, 20, 25, 0.06);
    background: rgba(15, 20, 25, 0.02);
    border-radius: 0 0 8px 8px;
}
.ty-map-address__label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(15, 20, 25, 0.45); margin: 0 0 4px; font-weight: 600; }
.ty-map-address__value { font-size: 14px; color: var(--ksec-navy); margin: 0; line-height: 1.5; font-style: normal; }

/* --- Section 4 — Order items --- */
.ty-items {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-radius: 8px;
    padding: 26px 28px;
    margin-bottom: 32px;
}
.ty-items > h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ksec-navy);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ksec-cyan);
    display: inline-block;
    font-weight: 700;
}
.ty-items-table { width: 100%; border-collapse: collapse; }
.ty-items-table th, .ty-items-table td { padding: 14px 0; text-align: left; vertical-align: top; }
.ty-items-table thead th {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
    color: rgba(15, 20, 25, 0.45); font-weight: 600;
    border-bottom: 1px solid rgba(15, 20, 25, 0.1);
}
.ty-items-table tbody tr { border-bottom: 1px solid rgba(15, 20, 25, 0.06); }
.ty-items-table tbody tr:last-child { border-bottom: 0; }
.ty-items-table td.qty, .ty-items-table th.qty { text-align: right; width: 60px; }
.ty-items-table td.price, .ty-items-table th.price { text-align: right; width: 110px; }
.ty-items-product { display: flex; gap: 14px; align-items: center; }
.ty-items-product img {
    width: 56px; height: 56px; object-fit: contain;
    border: 1px solid rgba(15, 20, 25, 0.1); border-radius: 4px;
    padding: 4px; background: #fff;
    flex-shrink: 0;
}
.ty-items-product .name { font-weight: 600; color: var(--ksec-navy); }
.ty-items-product .meta { font-size: 12px; color: rgba(15, 20, 25, 0.45); }

.ty-items-table tfoot td { padding: 8px 0; border-top: 1px solid rgba(15, 20, 25, 0.06); }
.ty-items-table tfoot tr:first-child td { border-top: 1px solid rgba(15, 20, 25, 0.1); padding-top: 14px; }
.ty-items-table tfoot tr.total td { padding-top: 12px; border-top: 2px solid var(--ksec-cyan); }
.ty-items-table tfoot tr.total .label { font-weight: 700; color: var(--ksec-navy); font-size: 15px; }
.ty-items-table tfoot tr.total .amount { font-weight: 700; color: var(--ksec-cyan-dk); font-size: 18px; }

/* --- Section 5 — Customer info --- */
.ty-customer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
@media (max-width: 860px) { .ty-customer { grid-template-columns: 1fr; } }
/* Nothing to ship (DEV-282): no Shipping card, so Billing takes the row.
   Must stay after .ty-customer, which has the same specificity. */
.ty-customer--single { grid-template-columns: 1fr; }
.ty-customer address { font-style: normal; font-size: 14px; line-height: 1.55; color: var(--ksec-navy); }
.ty-customer__row {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid rgba(15, 20, 25, 0.06);
    font-size: 13px;
}
.ty-customer__row span:first-child { color: rgba(15, 20, 25, 0.45); }

/* --- Section 6 — Loyalty + account (conditional) --- */
.ty-loyalty-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.ty-loyalty-row--single { grid-template-columns: 1fr; max-width: 720px; }
@media (max-width: 860px) { .ty-loyalty-row { grid-template-columns: 1fr; } }
.ty-loyalty {
    background: linear-gradient(135deg, #fff 0%, rgba(3, 196, 235, 0.06) 100%);
    border: 1px solid rgba(3, 196, 235, 0.2);
    border-left: 4px solid var(--ksec-gold);
}
.ty-loyalty__big {
    font-size: 36px;
    font-weight: 800;
    color: var(--ksec-gold-dk);
    margin: 8px 0 4px;
    line-height: 1;
}
.ty-loyalty__earned {
    font-size: 13px;
    color: rgba(15, 20, 25, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.ty-account {
    background: var(--ksec-navy);
    color: #fff;
    border-radius: 8px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ty-account > h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 10px;
    font-weight: 700;
    padding-bottom: 0;
    border-bottom: 0;
    display: block;
}
.ty-account__h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.ty-account__p { font-size: 13px; color: rgba(255, 255, 255, 0.72); margin: 0 0 16px; line-height: 1.55; }
.ty-account__cta {
    display: inline-block;
    background: var(--ksec-btn-on-dark);
    color: var(--ksec-btn-on-dark-text) !important;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    align-self: flex-start;
    transition: background-color .15s;
}
.ty-account__cta:hover { background: var(--ksec-btn-on-dark-hover); color: var(--ksec-btn-on-dark-text) !important; }

/* --- Section 7 — Community forum invite (mirrors PDP .CommunityForumButtons) --- */
.ty-community {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-radius: 8px;
    padding: 26px 28px;
    margin-bottom: 32px;
}
.ty-community__head { margin-bottom: 18px; }
.ty-community__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ksec-cyan-dk);
    font-weight: 700;
    margin: 0 0 6px;
}
.ty-community__h2 { font-size: 22px; font-weight: 700; color: var(--ksec-navy); margin: 0 0 6px; }
.ty-community__lead { font-size: 14px; color: rgba(15, 20, 25, 0.7); margin: 0; max-width: 640px; }
.ty-community__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.ty-community__card {
    display: block;
    padding: 18px 16px;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    text-decoration: none !important;
    color: inherit;
}
.ty-community__card:hover {
    border-color: var(--ksec-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 165, 114, 0.18);
}
.ty-community__card svg { color: var(--ksec-gold); margin-bottom: 10px; }
.ty-community__card .title { font-weight: 700; color: var(--ksec-navy); font-size: 14px; margin: 0 0 4px; display: block; }
.ty-community__card .desc { font-size: 12px; color: rgba(15, 20, 25, 0.7); margin: 0; line-height: 1.45; }

/* --- Section 8 — Trust band + support strip --- */
.ty-trust {
    background: var(--ksec-navy);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 32px;
}
.ty-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 720px) { .ty-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.ty-trust__item { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.7); }
.ty-trust__item strong { display: block; color: var(--ksec-gold); font-size: 22px; font-weight: 800; margin-bottom: 2px; }

/* v1.3.76 — reverted v1.3.74 navy-merged variant. Operator confirmed
   the mockup intent: support strip is black text on white background,
   separated below the trust band by the original 32px gap. Trust band
   keeps its standard rounded corners + margin-bottom; support strip is
   a plain centered block.
   v1.3.77 — explicit white bg + element changed from <footer> to <div>
   in the template; Shoptimizer styles the `footer` tag with rgb(17,17,17)
   site-wide which was bleeding into our support strip. */
body.woocommerce-order-received .ty-support {
    text-align: center;
    padding: 24px 0 0;
    background: #fff !important;
    border-top: 1px solid rgba(15, 20, 25, 0.1);
    color: rgba(15, 20, 25, 0.7) !important;
    font-size: 14px;
}
body.woocommerce-order-received .ty-support a { font-weight: 600; color: var(--ksec-cyan-dk); }
body.woocommerce-order-received .ty-support__title { font-size: 16px; font-weight: 700; color: var(--ksec-navy) !important; margin: 0 0 6px; }

/* Suppress Shoptimizer's own .woocommerce-order block when our template
   renders — we own the entire order-received chrome now. */
body.woocommerce-order-received .woocommerce-order > * { display: none; }
body.woocommerce-order-received .woocommerce-order > .ty-shell { display: block; }
body.woocommerce-order-received .woocommerce-notices-wrapper { display: block; } /* keep error notices visible */
/* === END ORDER RECEIVED (THANK-YOU) SLICE 3 v1.3.73 === */

/* ==========================================================================
   ORDER RECEIVED — status-aware variants — v1.3.78

   Hero variants for unpaid (.ty-hero--unpaid) and failed (.ty-hero--failed)
   orders, plus the "Complete your payment" instructions panel that gets
   hoisted between hero and the status/map row when status is pending /
   on-hold / failed AND the gateway has thankyou content (BACS bank
   details, Wise pay button, CoinGate redirect, Cheque mail-to, etc.).
   ========================================================================== */

/* Hero variant — unpaid (gold accent strip instead of cyan; clock icon bg) */
body.woocommerce-order-received .ty-hero--unpaid::before { background: var(--ksec-gold); }
body.woocommerce-order-received .ty-hero--unpaid .ty-hero__check { background: var(--ksec-gold); }

/* Hero variant — failed (warning red accent) */
body.woocommerce-order-received .ty-hero--failed::before { background: #c53030; }
body.woocommerce-order-received .ty-hero--failed .ty-hero__check { background: #c53030; color: #fff; }
body.woocommerce-order-received .ty-hero--failed .ty-hero__check svg { color: #fff; }

/* Payment instructions panel — prominent, gold-accent, sits right under hero */
body.woocommerce-order-received .ty-payment-instructions {
    background: linear-gradient(135deg, #fffaf3 0%, #fff 100%);
    border: 1px solid rgba(197, 165, 114, 0.4);
    border-left: 4px solid var(--ksec-gold);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 32px;
}
body.woocommerce-order-received .ty-payment-instructions__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(197, 165, 114, 0.25);
}
body.woocommerce-order-received .ty-payment-instructions__head svg { color: var(--ksec-gold-dk); flex-shrink: 0; margin-top: 2px; }
body.woocommerce-order-received .ty-payment-instructions__head h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ksec-navy);
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    display: block;
}
body.woocommerce-order-received .ty-payment-instructions__head p {
    font-size: 14px;
    color: rgba(15, 20, 25, 0.7);
    margin: 0;
    line-height: 1.55;
}
body.woocommerce-order-received .ty-payment-instructions__body {
    font-size: 14px;
    color: var(--ksec-navy);
    line-height: 1.55;
}
body.woocommerce-order-received .ty-payment-instructions__body ul,
body.woocommerce-order-received .ty-payment-instructions__body ol {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-radius: 4px;
    padding: 16px 22px;
    margin: 14px 0;
    list-style: none;
}
body.woocommerce-order-received .ty-payment-instructions__body li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(15, 20, 25, 0.06);
    font-size: 14px;
}
body.woocommerce-order-received .ty-payment-instructions__body li:last-child { border-bottom: 0; }
body.woocommerce-order-received .ty-payment-instructions__body strong { color: var(--ksec-navy); }
body.woocommerce-order-received .ty-payment-instructions__body p:first-child { margin-top: 0; }
body.woocommerce-order-received .ty-payment-instructions__body details {
    margin-top: 18px;
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-radius: 4px;
    padding: 14px 18px;
}
body.woocommerce-order-received .ty-payment-instructions__body details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ksec-cyan-dk);
}

/* Timeline failed-step variant */
body.woocommerce-order-received .ty-timeline li.current.ty-timeline__failed .ty-timeline__dot {
    background: #c53030 !important;
    border-color: #c53030 !important;
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.18);
}
body.woocommerce-order-received .ty-timeline li.current.ty-timeline__failed .ty-timeline__label { color: #c53030; }
/* === END ORDER RECEIVED status-aware variants v1.3.78 === */

/* === LABS CONTENT PAGES v1.3.85 === */
/* Shared light-surface system for the owned content pages. Page markup is
   semantic core blocks (group / heading / list / button); all identity
   styling lives here, driven by the :root tokens. Scoped to .ksec-cpage so
   it never leaks to WooCommerce or archive surfaces.
   Pages: 29638 Reviews, 7230 Recycling, 53027 Delivery Protection,
   3103 Customer Support, 26338 Returns Policy. */

.ksec-cpage {
    padding: 72px 20px 88px;
    background: #fff;
    color: var(--ksec-navy);
}

/* Page header (eyebrow + title + lede) */
.ksec-cpage__intro {
    text-align: center;
    margin: 0 auto 56px;
}
.ksec-cpage__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 13px;
    font-weight: 600;
    color: var(--ksec-cyan-dk);
    margin: 0 0 12px;
}
.ksec-cpage__title {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 18px;
    color: var(--ksec-navy);
}
.ksec-cpage__intro .ksec-cpage__title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--ksec-gold);
    margin: 18px auto 0;
}
.ksec-cpage__lede {
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
    margin: 0 auto;
    max-width: 680px;
}

/* Body typography for policy / long-form pages */
.ksec-cpage h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 14px;
    color: var(--ksec-navy);
}
.ksec-cpage h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--ksec-navy);
}
.ksec-cpage p,
.ksec-cpage li {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}
.ksec-cpage a { color: var(--ksec-cyan-dk); }
.ksec-cpage a:hover { color: var(--ksec-gold-dk); }

/* Card — richer-UX container for grouped sections (Returns, Delivery) */
.ksec-cpage__card {
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.1);
    border-left: 3px solid var(--ksec-gold);
    border-radius: 6px;
    padding: 24px 28px;
    margin: 0 0 20px;
    box-shadow: 0 1px 3px rgba(15, 20, 25, 0.05);
}
.ksec-cpage__card > :first-child { margin-top: 0; }
.ksec-cpage__card > :last-child { margin-bottom: 0; }
/* Feature card — the "at a glance" highlight box (Returns overview) */
.ksec-cpage__card--feature {
    background: #fbfaf7;
    border-left-width: 4px;
    padding: 28px 32px;
    margin-bottom: 40px;
}
.ksec-cpage__card--feature h2 { margin-top: 0; font-size: 20px; }

/* "Last updated" stamp under the page title */
.ksec-cpage__updated {
    font-size: 13px;
    color: #64748b;
    margin: 14px 0 0;
}

/* Responsive card grid for coverage / feature columns.
   Specificity bumped so it overrides core .wp-block-columns flex layout. */
.ksec-cpage .ksec-cpage__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}
.ksec-cpage .ksec-cpage__grid > .wp-block-column { flex-basis: auto; }
.ksec-cpage .ksec-cpage__grid .ksec-cpage__card { height: 100%; margin: 0; }

/* CTA buttons use the primary (black/gold) token */
.ksec-cpage .wp-block-button__link,
.ksec-cpage .wp-element-button {
    background: var(--ksec-btn-primary);
    color: var(--ksec-btn-primary-text);
    border-radius: 4px;
    font-weight: 600;
}
.ksec-cpage .wp-block-button__link:hover,
.ksec-cpage .wp-element-button:hover {
    background: var(--ksec-btn-primary-hover);
    color: var(--ksec-btn-primary-text);
}
.ksec-cpage .wp-block-buttons { gap: 14px; margin-top: 22px; }
/* Secondary (outline) button: black border, fills gold on hover */
.ksec-cpage .is-style-outline .wp-block-button__link,
.ksec-cpage .is-style-outline .wp-element-button {
    background: transparent;
    color: var(--ksec-btn-primary);
    border: 1px solid var(--ksec-btn-primary);
}
.ksec-cpage .is-style-outline .wp-block-button__link:hover,
.ksec-cpage .is-style-outline .wp-element-button:hover {
    background: var(--ksec-btn-primary);
    color: var(--ksec-btn-primary-text);
    border-color: var(--ksec-btn-primary);
}
/* Support page: labs /faq/ (post 3103) and eu /contact/ (page 13), UX Batch
   FQ, 2026-10-10. Task tiles, FAQ cards with the stock-label disclosure, and
   the "Still need help?" card. The restock list styles its own key, jump
   links and brand cards (ksec-backorder-manager restock-status.css). Core's
   layout adds a 32px block gap to every flow child and centres constrained
   children with !important, so the grids reset child margins and the
   sections in the content are flow groups, which keeps 70ch paragraphs
   left-aligned. */
.ksec-cpage--support h2 {
    font-size: 26px;
    margin-bottom: 12px;
    text-wrap: balance;
}
/* The space goes on the section, because core zeroes the top margin of a
   flow group's first child and each section opens with its H2 */
.ksec-cpage--support > section { margin-top: 64px; }
.ksec-cpage--support .ksec-cpage__title { text-wrap: balance; }
.ksec-cpage--support .ksec-cpage__lede { text-wrap: pretty; }
.ksec-cpage--support p:not(.ksec-cpage__lede):not(.ksec-help-hours) { max-width: 70ch; }
/* Section and brand anchors land clear of the sticky header (54px desktop
   nav, 50px phone masthead) */
.ksec-cpage--support [id] { scroll-margin-top: 80px; }

/* Task tiles under the page header */
.ksec-cpage--support .ksec-help-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 900px;
    margin-top: -24px;
}
.ksec-cpage--support .ksec-help-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.14);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 20, 25, 0.05);
    text-decoration: none;
}
.ksec-cpage--support .ksec-help-tile:hover { border-color: var(--ksec-gold); }
.ksec-cpage--support .ksec-help-tile:focus-visible,
.ksec-cpage--support .ksec-faq-card a:focus-visible,
.ksec-cpage--support .ksec-faq-details summary:focus-visible,
.ksec-cpage--support .ksec-contact-forum a:focus-visible {
    outline: 2px solid var(--ksec-cyan-dk);
    outline-offset: 2px;
}
.ksec-cpage--support .ksec-help-tile__t {
    font-size: 17px;
    font-weight: 700;
    color: var(--ksec-navy);
}
.ksec-cpage--support .ksec-help-tile__d {
    font-size: 14px;
    line-height: 1.45;
    color: #475569;
}
.ksec-cpage--support .ksec-help-hours {
    margin-top: 14px;
    font-size: 14px;
    color: #475569;
    text-align: center;
}

/* FAQ: category cards, two columns */
.ksec-cpage--support .ksec-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.ksec-cpage--support .ksec-faq-grid > * { margin: 0; }
.ksec-cpage--support .ksec-faq-card {
    padding: 18px 22px;
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.12);
    border-radius: 8px;
}
.ksec-cpage--support .ksec-faq-card h3 { margin: 0 0 6px; font-size: 17px; }
.ksec-cpage--support .ksec-faq-card > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ksec-cpage--support .ksec-faq-card > ul > li {
    margin: 0;
    padding: 0;
    line-height: 1.45;
}
.ksec-cpage--support .ksec-faq-card > ul > li > a {
    display: block;
    padding: 7px 0;
    text-decoration: none;
}
.ksec-cpage--support .ksec-faq-card > ul > li > a:hover { text-decoration: underline; }

/* New-tab cue on links that open the Help Center or the forum; the link
   also carries a screen-reader "(opens in a new tab)" */
.ksec-faq-card a[target="_blank"]::after,
.ksec-help-tile[target="_blank"] .ksec-help-tile__t::after,
.ksec-contact-forum a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    background-color: currentColor;
    opacity: 0.75;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5h5v5M9.5 2.5 3 9' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5h5v5M9.5 2.5 3 9' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "What the stock labels on product pages mean" inside the Stock &
   backorders card */
.ksec-cpage--support .ksec-faq-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 20, 25, 0.1);
}
.ksec-cpage--support .ksec-faq-details summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--ksec-navy);
}
.ksec-cpage--support .ksec-faq-details ul {
    margin-top: 8px;
    padding-left: 20px;
    list-style: disc;
}
/* ul > li ties the old "ul.wp-block-list li { padding: 2px 0 }" still held in
   labs' per-URL critical CSS for /faq/, and wins it by source order */
.ksec-cpage--support .ksec-faq-details ul > li { margin: 6px 0; padding: 0; font-size: 15px; }

/* "Still need help?": breathing room above the card, forum as a text link */
.ksec-cpage--support > .ksec-cpage__card { margin-top: 52px; }
.ksec-cpage--support .ksec-contact-forum { margin-top: 14px; font-size: 15px; }

/* 44px touch targets */
@media (pointer: coarse) {
    .ksec-cpage--support .ksec-faq-card > ul > li > a,
    .ksec-cpage--support .ksec-faq-details summary { padding: 11px 0; }
    .ksec-cpage--support .ksec-contact-forum a { display: inline-block; padding: 11px 0; }
}
@media (max-width: 760px) {
    .ksec-cpage--support h2 { font-size: 23px; }
    .ksec-cpage--support > section { margin-top: 48px; }
    .ksec-cpage--support .ksec-help-tiles {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: -32px;
    }
    .ksec-cpage--support .ksec-help-hours { text-align: left; }
    .ksec-cpage--support .ksec-faq-grid { grid-template-columns: 1fr; }
}

/* Reviews wall */
.ksec-cpage--reviews .wiser_review { margin-top: 8px; }
/* === END LABS CONTENT PAGES v1.3.85 === */


/* ==========================================================================
   EU MOBILE LANGUAGE SWITCHER — v1.4.13
   Floating TranslatePress switcher becomes desktop-only; the in-menu switcher
   (server-injected as .ksec-eu-menu-ls in the Shoptimizer mobile drawer)
   shows only at mobile widths. Both selectors are eu-only in practice — labs
   has no TranslatePress — so these rules are inert on the UK store.
   Breakpoint 992px matches Shoptimizer's desktop/mobile nav switch (its own
   CSS hides .shoptimizer-mobile-menu at min-width:993px).
   ========================================================================== */
.ksec-eu-menu-ls { display: none; }

@media (max-width: 992px) {
    /* Floating switcher is desktop-only. */
    .trp-floating-switcher { display: none !important; }

    /* Language switcher at the foot of the mobile drawer. */
    .ksec-eu-menu-ls {
        display: block;
        padding: 14px 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        margin-top: 6px;
    }
    .ksec-eu-menu-ls .trp-language-switcher { width: 100%; }
}

/* Desktop floater position (v1.4.14): pin it flush to the right edge. TP writes
   --right inline on the nav, which shadows any stylesheet --right, so we set the
   final `right` property with !important to win over TP's inline value. Scoped to
   desktop since the floater is hidden <=992px anyway. */
@media (min-width: 993px) {
    nav.trp-floating-switcher { right: 0 !important; }
}
/* === END EU MOBILE LANGUAGE SWITCHER === */

/* ---------- Backorder ETA badge — mobile wrap (v1.4.17) ----------
   The backorder-manager ETA pill (.ksec-bo-badge, "En Route · Arriving <date>")
   is a fixed nowrap span ~165px wide. On the 2-column mobile product grid the
   card is only ~148px, and the card's overflow:hidden clips the pill ("…Arriving
   4 Au"). Let it wrap to two lines and cap it to the card width so the full ETA
   shows. Overriding here (theme, not ksec-backorder-manager) keeps the badge CSS
   fix out of that plugin's deploy path. */
@media (max-width: 600px) {
    ul.products li.product .ksec-bo-badge {
        white-space: normal;
        max-width: calc(100% - 14px);
        line-height: 1.25;
    }
}

/* ---------- Product description link hub (v1.4.19) ----------
   Reusable button-grid + callout for long product descriptions, so a page can
   point at upstream documentation instead of restating it. First used on the
   Proxmark 3 Easy (labs product 6461), which links into the RfidResearchGroup
   docs tree. Markup lives in post_content, so these class names are a contract:
   do not rename them without sweeping the product descriptions that use them.
   Ghost/secondary button styling per the v1.3.84 button token system (white at
   rest, gold border on hover), since these are reference links and must not
   compete with the Add to basket primary CTA. */

.ksec-linkhub {
    display: grid;
    /* Cap at 4 columns. The product description column runs ~1560px on desktop,
       which a plain minmax(210px,1fr) auto-fit fills with 7 tracks, stranding a
       single orphan tile on row 2 of an 8-tile hub. Forcing each track to be at
       least a quarter of the row (minus the 3 gaps) caps the count at 4, so the
       hubs land 4+2, 4+4 and 4. Below ~880px it falls back to the 210px floor
       and steps down to 3, then 2, then 1. */
    grid-template-columns: repeat(auto-fit, minmax(max(210px, (100% - 30px) / 4), 1fr));
    gap: 10px;
    margin: 1.1em 0 1.7em;
    padding: 0;
    list-style: none;
}

.ksec-linkhub > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ksec-linkhub > li::before { content: none; }

.ksec-linkhub a {
    display: block;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ksec-linkhub a:hover,
.ksec-linkhub a:focus-visible {
    border-color: var(--ksec-gold, #c5a572);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    color: #1a1a1a;
    text-decoration: none;
}

.ksec-linkhub a strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.ksec-linkhub a span {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: rgba(0, 0, 0, 0.58);
}

/* Off-site marker. Driven off the real target attribute so it can never drift
   out of step with where the link actually goes. */
.ksec-linkhub a[target="_blank"] strong::after {
    content: " \2197";
    font-weight: 400;
    opacity: 0.5;
}

/* Callout for the product-specific caveats that are NOT in the upstream docs. */
.ksec-note {
    margin: 1.2em 0 1.6em;
    padding: 14px 16px;
    border-left: 3px solid var(--ksec-gold, #c5a572);
    background: rgba(197, 165, 114, 0.07);
    border-radius: 0 6px 6px 0;
}

.ksec-note > p { margin-bottom: 0.7em; }
.ksec-note > p:last-child { margin-bottom: 0; }

.ksec-note code,
.ksec-linkhub code {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.92em;
}
/* === END PRODUCT DESCRIPTION LINK HUB === */

/* ---------- Community CTA banner (v1.4.20) ----------
   Dark-surface banner for a long product description to recommend one external
   community. First used on the Proxmark 3 Easy (labs product 6461) to point at
   the Iceman RFID Discord. Reusable: any product whose ecosystem has a single
   obvious community home.
   The button uses --ksec-btn-on-dark (white solid, ink text, gold on hover) per
   the v1.3.84 token system, NOT the community's own brand colour, so the tile
   cannot read as a second Add to basket. The brand colour is carried by the
   accent rule only, set per instance with --ksec-cta-banner-accent. */

.ksec-cta-banner {
    --ksec-cta-banner-accent: var(--ksec-gold, #c5a572);
    position: relative;
    margin: 1.6em 0 1.9em;
    padding: 20px 22px 20px 25px;
    background: var(--ksec-navy, #0f1419);
    border-radius: 10px;
    overflow: hidden;
}

.ksec-cta-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--ksec-cta-banner-accent);
}

.ksec-cta-banner__eyebrow {
    margin: 0 0 3px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ksec-cta-banner-accent);
}

.ksec-cta-banner__title {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}

.ksec-cta-banner__text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ksec-dim-2, rgba(255, 255, 255, 0.82));
}

.ksec-cta-banner__actions { margin: 14px 0 0; }

.ksec-cta-banner__btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--ksec-btn-on-dark, #fff);
    color: var(--ksec-btn-on-dark-text, #1a1a1a);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ksec-cta-banner__btn:hover,
.ksec-cta-banner__btn:focus-visible {
    background: var(--ksec-btn-on-dark-hover, #c5a572);
    color: var(--ksec-btn-on-dark-text, #1a1a1a);
    text-decoration: none;
}

@media (max-width: 480px) {
    .ksec-cta-banner { padding: 17px 16px 17px 19px; }
    .ksec-cta-banner__btn { display: block; text-align: center; }
}
/* Light "value / what's included" variant (v1.4.22). Same component, inverted
   for use on the light content surface, so the dark navy banner stays reserved
   for the one community CTA and a page can carry both without two dark slabs
   competing. Used on the RDV4.01 pages for the in-the-box breakdown. */
.ksec-cta-banner--value {
    background: rgba(197, 165, 114, 0.07);
    border: 1px solid rgba(197, 165, 114, 0.35);
}

.ksec-cta-banner--value .ksec-cta-banner__title { color: #1a1a1a; }
.ksec-cta-banner--value .ksec-cta-banner__text  { color: rgba(0, 0, 0, 0.72); }

.ksec-cta-banner--value .ksec-cta-banner__list {
    margin: 10px 0 0;
    padding: 0 0 0 1.1em;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.72);
}

.ksec-cta-banner--value .ksec-cta-banner__list li { margin: 2px 0; }

.ksec-cta-banner--value .ksec-cta-banner__btn {
    background: var(--ksec-btn-primary, #1a1a1a);
    color: var(--ksec-btn-primary-text, #fff);
}

.ksec-cta-banner--value .ksec-cta-banner__btn:hover,
.ksec-cta-banner--value .ksec-cta-banner__btn:focus-visible {
    background: var(--ksec-btn-primary-hover, #000);
    color: var(--ksec-btn-primary-text, #fff);
}
/* === END COMMUNITY CTA BANNER === */

/* ---------- .ksec-linkhub tile icons (v1.4.23) ----------
   Driven off the link DESTINATION, not off markup, for the same reason the off-site
   arrow is: an icon chosen by hand in post_content drifts the moment a link is
   repointed, and it would have to be added to every tile on every page already
   published. Host matching applies retroactively to all of them for free.

   Drawn as CSS masks rather than <img> or background-image so the glyph inherits
   currentColor and follows the tile's own hover state. Inline data URIs keep it to
   zero extra requests.

   Deliberately generic shapes rather than the services' brand marks: a page can
   carry eight of these at once and a row of competing corporate logos reads as
   noise, quite apart from the trademark question.

   Override per tile with data-icon="repo|docs|video|download|app|fix|ours|chat"
   when the host mapping guesses wrong. The override rules sit last so they win.
   ------------------------------------------------------------------------- */

.ksec-linkhub a {
    padding-left: 44px;
    position: relative;
}

.ksec-linkhub a::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 14px;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    opacity: 0.5;
    transition: opacity 0.15s ease;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4.5%205.2A2.2%202.2%200%200%201%206.7%203H19.5v14.2H6.7a2.2%202.2%200%200%200-2.2%202.2z'/%3E%3Cpath%20d='M4.5%2019.4a2.2%202.2%200%200%201%202.2-2.2H19.5'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4.5%205.2A2.2%202.2%200%200%201%206.7%203H19.5v14.2H6.7a2.2%202.2%200%200%200-2.2%202.2z'/%3E%3Cpath%20d='M4.5%2019.4a2.2%202.2%200%200%201%202.2-2.2H19.5'/%3E%3C/svg%3E");
}

.ksec-linkhub a:hover::before,
.ksec-linkhub a:focus-visible::before { opacity: 0.85; }

/* Host mapping, least specific first. */
.ksec-linkhub a[href*="github.com"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8.5%206%203.5%2012l5%206M15.5%206l5%206-5%206'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8.5%206%203.5%2012l5%206M15.5%206l5%206-5%206'/%3E%3C/svg%3E"); }

/* A wiki, a docs tree or a markdown file on GitHub is documentation, not source. */
.ksec-linkhub a[href*="/wiki"]::before,
.ksec-linkhub a[href*="/doc/"]::before,
.ksec-linkhub a[href*="/docs/"]::before,
.ksec-linkhub a[href$=".md"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4.5%205.2A2.2%202.2%200%200%201%206.7%203H19.5v14.2H6.7a2.2%202.2%200%200%200-2.2%202.2z'/%3E%3Cpath%20d='M4.5%2019.4a2.2%202.2%200%200%201%202.2-2.2H19.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4.5%205.2A2.2%202.2%200%200%201%206.7%203H19.5v14.2H6.7a2.2%202.2%200%200%200-2.2%202.2z'/%3E%3Cpath%20d='M4.5%2019.4a2.2%202.2%200%200%201%202.2-2.2H19.5'/%3E%3C/svg%3E"); }

.ksec-linkhub a[href*="Troubleshooting"]::before,
.ksec-linkhub a[href*="troubleshooting"]::before,
.ksec-linkhub a[href*="bootloader-fix"]::before,
.ksec-linkhub a[href*="Restore"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3.4'/%3E%3Cpath%20d='M5.8%205.8%209.6%209.6M18.2%205.8%2014.4%209.6M5.8%2018.2%209.6%2014.4M18.2%2018.2%2014.4%2014.4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3.4'/%3E%3Cpath%20d='M5.8%205.8%209.6%209.6M18.2%205.8%2014.4%209.6M5.8%2018.2%209.6%2014.4M18.2%2018.2%2014.4%2014.4'/%3E%3C/svg%3E"); }

.ksec-linkhub a[href*="youtube.com"]::before,
.ksec-linkhub a[href*="youtu.be"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Cpath%20d='M10.2%208.4%2016%2012l-5.8%203.6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Cpath%20d='M10.2%208.4%2016%2012l-5.8%203.6z'/%3E%3C/svg%3E"); }

.ksec-linkhub a[href*="apps.apple.com"]::before,
.ksec-linkhub a[href*="play.google.com"]::before,
.ksec-linkhub a[href*="flathub.org"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='6.8'%20y='2.6'%20width='10.4'%20height='18.8'%20rx='2.2'/%3E%3Cpath%20d='M10.9%2018.4h2.2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='6.8'%20y='2.6'%20width='10.4'%20height='18.8'%20rx='2.2'/%3E%3Cpath%20d='M10.9%2018.4h2.2'/%3E%3C/svg%3E"); }

.ksec-linkhub a[href*="proxmarkbuilds.org"]::before,
.ksec-linkhub a[href*="/releases"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203.4v10.9M8%2011l4%204%204-4M4.2%2019.6h15.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203.4v10.9M8%2011l4%204%204-4M4.2%2019.6h15.6'/%3E%3C/svg%3E"); }

.ksec-linkhub a[href*="reddit.com"]::before,
.ksec-linkhub a[href*="forum."]::before,
.ksec-linkhub a[href*="discord"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2014.8a2.2%202.2%200%200%201-2.2%202.2H8.2L4%2021V6.2A2.2%202.2%200%200%201%206.2%204h11.6A2.2%202.2%200%200%201%2020%206.2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2014.8a2.2%202.2%200%200%201-2.2%202.2H8.2L4%2021V6.2A2.2%202.2%200%200%201%206.2%204h11.6A2.2%202.2%200%200%201%2020%206.2z'/%3E%3C/svg%3E"); }

/* Ours last so a KSEC resource always wins over a generic host match. */
.ksec-linkhub a[href*="ksec.co.uk"]::before,
.ksec-linkhub a[href*="tagbase"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m12%203.3%202.7%205.5%206.1.9-4.4%204.3%201%206.1L12%2017.2%206.6%2020.1l1-6.1-4.4-4.3%206.1-.9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m12%203.3%202.7%205.5%206.1.9-4.4%204.3%201%206.1L12%2017.2%206.6%2020.1l1-6.1-4.4-4.3%206.1-.9z'/%3E%3C/svg%3E"); }

.ksec-linkhub a[href*="forum.ksec.co.uk"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2014.8a2.2%202.2%200%200%201-2.2%202.2H8.2L4%2021V6.2A2.2%202.2%200%200%201%206.2%204h11.6A2.2%202.2%200%200%201%2020%206.2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2014.8a2.2%202.2%200%200%201-2.2%202.2H8.2L4%2021V6.2A2.2%202.2%200%200%201%206.2%204h11.6A2.2%202.2%200%200%201%2020%206.2z'/%3E%3C/svg%3E"); }

/* ---------- .ksec-linkhub tile icons, extended set (v1.4.24) ----------
   The v1.4.23 mapping leaned too hard on the book fallback: on the Proxmark page
   it was carrying the four OS install guides, the build options, the verification
   walkthrough AND the cheat sheet, which are four different kinds of destination
   wearing one glyph. Eight more icons split those out.

   Order is the whole design here. Rules are least to most specific, because a
   later rule of equal specificity wins: the generic host match lands first, the
   path keyword refines it, and the KSEC and data-icon rules override everything.
   Moving a block up or down changes what renders.
   --------------------------------------------------------------------------- */

/* Terminal: anything you do at a shell. Install, compile, run a client. */
.ksec-linkhub a[href*="Installation_Instructions"]::before,
.ksec-linkhub a[href*="-Installation-"]::before,
.ksec-linkhub a[href*="Compilation"]::before,
.ksec-linkhub a[href*="compilation-parameters"]::before,
.ksec-linkhub a[href*="termux"]::before,
.ksec-linkhub a[href*="payloadstudio"]::before,
.ksec-linkhub a[href$="/cli"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='2.8'%20y='4'%20width='18.4'%20height='16'%20rx='2.2'/%3E%3Cpath%20d='M7%209.5%2010%2012l-3%202.5M12.5%2015h4.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='2.8'%20y='4'%20width='18.4'%20height='16'%20rx='2.2'/%3E%3Cpath%20d='M7%209.5%2010%2012l-3%202.5M12.5%2015h4.5'/%3E%3C/svg%3E"); }

/* Checklist: a sequence you follow once and tick off. */
.ksec-linkhub a[href*="Validation"]::before,
.ksec-linkhub a[href*="Configuration-and-Verification"]::before,
.ksec-linkhub a[href*="quickstart"]::before,
.ksec-linkhub a[href*="quack-start"]::before,
.ksec-linkhub a[href*="hello-world"]::before,
.ksec-linkhub a[href*="First-time"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%204.5h7.8A2.2%202.2%200%200%201%2019%206.7v12.6a2.2%202.2%200%200%201-2.2%202.2H7.2A2.2%202.2%200%200%201%205%2019.3V6.7A2.2%202.2%200%200%201%207.2%204.5H9z'/%3E%3Cpath%20d='M9%203.4h6v2.6H9z'/%3E%3Cpath%20d='m8.8%2012%202%202%204-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%204.5h7.8A2.2%202.2%200%200%201%2019%206.7v12.6a2.2%202.2%200%200%201-2.2%202.2H7.2A2.2%202.2%200%200%201%205%2019.3V6.7A2.2%202.2%200%200%201%207.2%204.5H9z'/%3E%3Cpath%20d='M9%203.4h6v2.6H9z'/%3E%3Cpath%20d='m8.8%2012%202%202%204-4'/%3E%3C/svg%3E"); }

/* Reference: a table you come back to, not prose you read once. */
.ksec-linkhub a[href*="cheatsheet"]::before,
.ksec-linkhub a[href*="cheat-sheet"]::before,
.ksec-linkhub a[href*="quick-reference"]::before,
.ksec-linkhub a[href*="commands.md"]::before,
.ksec-linkhub a[href*="Commands-and-Features"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3.4'%20y='3.8'%20width='17.2'%20height='16.4'%20rx='2.2'/%3E%3Cpath%20d='M8.2%208.4h8M8.2%2012h8M8.2%2015.6h5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3.4'%20y='3.8'%20width='17.2'%20height='16.4'%20rx='2.2'/%3E%3Cpath%20d='M8.2%208.4h8M8.2%2012h8M8.2%2015.6h5'/%3E%3C/svg%3E"); }

/* Chip: the device itself. Hardware, firmware, wire protocol, whitepaper. */
.ksec-linkhub a[href*="hardware"]::before,
.ksec-linkhub a[href*="firmware"]::before,
.ksec-linkhub a[href*="Firmware"]::before,
.ksec-linkhub a[href*="protocol"]::before,
.ksec-linkhub a[href*="whitepaper"]::before,
.ksec-linkhub a[href*="attack-modes"]::before,
.ksec-linkhub a[href*="data-sheet"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='7'%20y='7'%20width='10'%20height='10'%20rx='1.6'/%3E%3Cpath%20d='M10%203.4v3.6M14%203.4v3.6M10%2017v3.6M14%2017v3.6M3.4%2010H7M3.4%2014H7M17%2010h3.6M17%2014h3.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='7'%20y='7'%20width='10'%20height='10'%20rx='1.6'/%3E%3Cpath%20d='M10%203.4v3.6M14%203.4v3.6M10%2017v3.6M14%2017v3.6M3.4%2010H7M3.4%2014H7M17%2010h3.6M17%2014h3.6'/%3E%3C/svg%3E"); }

/* Third-party tooling that is not the vendor's own docs. */
.ksec-linkhub a[href*="zigbee2mqtt"]::before,
.ksec-linkhub a[href*="Z-Stack"]::before,
.ksec-linkhub a[href*="ti.com"]::before,
.ksec-linkhub a[href*="Sniffle"]::before,
.ksec-linkhub a[href*="-Tools"]::before,
.ksec-linkhub a[href*="-payloads"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14.4%206.6a3.9%203.9%200%200%200%205.1%205.1l-8%208a2.3%202.3%200%200%201-3.2-3.2z'/%3E%3Cpath%20d='M19.5%2011.7%2021%2010.2a5.4%205.4%200%200%200-7.2-7.2l1.6%201.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14.4%206.6a3.9%203.9%200%200%200%205.1%205.1l-8%208a2.3%202.3%200%200%201-3.2-3.2z'/%3E%3Cpath%20d='M19.5%2011.7%2021%2010.2a5.4%205.4%200%200%200-7.2-7.2l1.6%201.6'/%3E%3C/svg%3E"); }

.ksec-linkhub a[href*="faq"]::before,
.ksec-linkhub a[href*="FAQ"]::before,
.ksec-linkhub a[href*="FAQs"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Cpath%20d='M9.6%209.4a2.5%202.5%200%201%201%203.3%202.4c-.6.2-.9.8-.9%201.4v.5'/%3E%3Cpath%20d='M12%2016.9h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Cpath%20d='M9.6%209.4a2.5%202.5%200%201%201%203.3%202.4c-.6.2-.9.8-.9%201.4v.5'/%3E%3Cpath%20d='M12%2016.9h.01'/%3E%3C/svg%3E"); }

.ksec-linkhub a[href*="patreon"]::before,
.ksec-linkhub a[href*="sponsors"]::before,
.ksec-linkhub a[href*="donate"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020.3s-7.4-4.6-7.4-9.5a4.2%204.2%200%200%201%207.4-2.7%204.2%204.2%200%200%201%207.4%202.7c0%204.9-7.4%209.5-7.4%209.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020.3s-7.4-4.6-7.4-9.5a4.2%204.2%200%200%201%207.4-2.7%204.2%204.2%200%200%201%207.4%202.7c0%204.9-7.4%209.5-7.4%209.5z'/%3E%3C/svg%3E"); }

/* Ours, then our own PRODUCTS, which are a cart rather than a reference. */
.ksec-linkhub a[href*="ksec.co.uk/product/"]::before,
.ksec-linkhub a[href*="product-category"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.2%204.4h2.4l2.2%2010.4h9.6l2-7.6H6.6'/%3E%3Ccircle%20cx='9.4'%20cy='19'%20r='1.5'/%3E%3Ccircle%20cx='16.6'%20cy='19'%20r='1.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.2%204.4h2.4l2.2%2010.4h9.6l2-7.6H6.6'/%3E%3Ccircle%20cx='9.4'%20cy='19'%20r='1.5'/%3E%3Ccircle%20cx='16.6'%20cy='19'%20r='1.5'/%3E%3C/svg%3E"); }

/* Re-assert troubleshooting AFTER the keyword blocks above.
   Troubleshooting.md lives under .../Installation_Instructions/, so the terminal
   rule matches it too and would otherwise win on source order. A page telling you
   what to do when it broke is not a page about installing it. */
.ksec-linkhub a[href*="Troubleshooting"]::before,
.ksec-linkhub a[href*="troubleshooting"]::before,
.ksec-linkhub a[href*="common-issues"]::before,
.ksec-linkhub a[href*="bootloader-fix"]::before,
.ksec-linkhub a[href*="Restore"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3.4'/%3E%3Cpath%20d='M5.8%205.8%209.6%209.6M18.2%205.8%2014.4%209.6M5.8%2018.2%209.6%2014.4M18.2%2018.2%2014.4%2014.4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3.4'/%3E%3Cpath%20d='M5.8%205.8%209.6%209.6M18.2%205.8%2014.4%209.6M5.8%2018.2%209.6%2014.4M18.2%2018.2%2014.4%2014.4'/%3E%3C/svg%3E"); }

/* Explicit per-tile override, wins over every host rule above. */
.ksec-linkhub a[data-icon="repo"]::before     { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8.5%206%203.5%2012l5%206M15.5%206l5%206-5%206'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8.5%206%203.5%2012l5%206M15.5%206l5%206-5%206'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="docs"]::before     { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4.5%205.2A2.2%202.2%200%200%201%206.7%203H19.5v14.2H6.7a2.2%202.2%200%200%200-2.2%202.2z'/%3E%3Cpath%20d='M4.5%2019.4a2.2%202.2%200%200%201%202.2-2.2H19.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4.5%205.2A2.2%202.2%200%200%201%206.7%203H19.5v14.2H6.7a2.2%202.2%200%200%200-2.2%202.2z'/%3E%3Cpath%20d='M4.5%2019.4a2.2%202.2%200%200%201%202.2-2.2H19.5'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="video"]::before    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Cpath%20d='M10.2%208.4%2016%2012l-5.8%203.6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Cpath%20d='M10.2%208.4%2016%2012l-5.8%203.6z'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="download"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203.4v10.9M8%2011l4%204%204-4M4.2%2019.6h15.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%203.4v10.9M8%2011l4%204%204-4M4.2%2019.6h15.6'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="app"]::before      { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='6.8'%20y='2.6'%20width='10.4'%20height='18.8'%20rx='2.2'/%3E%3Cpath%20d='M10.9%2018.4h2.2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='6.8'%20y='2.6'%20width='10.4'%20height='18.8'%20rx='2.2'/%3E%3Cpath%20d='M10.9%2018.4h2.2'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="fix"]::before      { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3.4'/%3E%3Cpath%20d='M5.8%205.8%209.6%209.6M18.2%205.8%2014.4%209.6M5.8%2018.2%209.6%2014.4M18.2%2018.2%2014.4%2014.4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='3.4'/%3E%3Cpath%20d='M5.8%205.8%209.6%209.6M18.2%205.8%2014.4%209.6M5.8%2018.2%209.6%2014.4M18.2%2018.2%2014.4%2014.4'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="ours"]::before     { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m12%203.3%202.7%205.5%206.1.9-4.4%204.3%201%206.1L12%2017.2%206.6%2020.1l1-6.1-4.4-4.3%206.1-.9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m12%203.3%202.7%205.5%206.1.9-4.4%204.3%201%206.1L12%2017.2%206.6%2020.1l1-6.1-4.4-4.3%206.1-.9z'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="chat"]::before     { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2014.8a2.2%202.2%200%200%201-2.2%202.2H8.2L4%2021V6.2A2.2%202.2%200%200%201%206.2%204h11.6A2.2%202.2%200%200%201%2020%206.2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2014.8a2.2%202.2%200%200%201-2.2%202.2H8.2L4%2021V6.2A2.2%202.2%200%200%201%206.2%204h11.6A2.2%202.2%200%200%201%2020%206.2z'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="terminal"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='2.8'%20y='4'%20width='18.4'%20height='16'%20rx='2.2'/%3E%3Cpath%20d='M7%209.5%2010%2012l-3%202.5M12.5%2015h4.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='2.8'%20y='4'%20width='18.4'%20height='16'%20rx='2.2'/%3E%3Cpath%20d='M7%209.5%2010%2012l-3%202.5M12.5%2015h4.5'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="checklist"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%204.5h7.8A2.2%202.2%200%200%201%2019%206.7v12.6a2.2%202.2%200%200%201-2.2%202.2H7.2A2.2%202.2%200%200%201%205%2019.3V6.7A2.2%202.2%200%200%201%207.2%204.5H9z'/%3E%3Cpath%20d='M9%203.4h6v2.6H9z'/%3E%3Cpath%20d='m8.8%2012%202%202%204-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9%204.5h7.8A2.2%202.2%200%200%201%2019%206.7v12.6a2.2%202.2%200%200%201-2.2%202.2H7.2A2.2%202.2%200%200%201%205%2019.3V6.7A2.2%202.2%200%200%201%207.2%204.5H9z'/%3E%3Cpath%20d='M9%203.4h6v2.6H9z'/%3E%3Cpath%20d='m8.8%2012%202%202%204-4'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="reference"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3.4'%20y='3.8'%20width='17.2'%20height='16.4'%20rx='2.2'/%3E%3Cpath%20d='M8.2%208.4h8M8.2%2012h8M8.2%2015.6h5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3.4'%20y='3.8'%20width='17.2'%20height='16.4'%20rx='2.2'/%3E%3Cpath%20d='M8.2%208.4h8M8.2%2012h8M8.2%2015.6h5'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="chip"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='7'%20y='7'%20width='10'%20height='10'%20rx='1.6'/%3E%3Cpath%20d='M10%203.4v3.6M14%203.4v3.6M10%2017v3.6M14%2017v3.6M3.4%2010H7M3.4%2014H7M17%2010h3.6M17%2014h3.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='7'%20y='7'%20width='10'%20height='10'%20rx='1.6'/%3E%3Cpath%20d='M10%203.4v3.6M14%203.4v3.6M10%2017v3.6M14%2017v3.6M3.4%2010H7M3.4%2014H7M17%2010h3.6M17%2014h3.6'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="question"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Cpath%20d='M9.6%209.4a2.5%202.5%200%201%201%203.3%202.4c-.6.2-.9.8-.9%201.4v.5'/%3E%3Cpath%20d='M12%2016.9h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='8.8'/%3E%3Cpath%20d='M9.6%209.4a2.5%202.5%200%201%201%203.3%202.4c-.6.2-.9.8-.9%201.4v.5'/%3E%3Cpath%20d='M12%2016.9h.01'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="heart"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020.3s-7.4-4.6-7.4-9.5a4.2%204.2%200%200%201%207.4-2.7%204.2%204.2%200%200%201%207.4%202.7c0%204.9-7.4%209.5-7.4%209.5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020.3s-7.4-4.6-7.4-9.5a4.2%204.2%200%200%201%207.4-2.7%204.2%204.2%200%200%201%207.4%202.7c0%204.9-7.4%209.5-7.4%209.5z'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="cart"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.2%204.4h2.4l2.2%2010.4h9.6l2-7.6H6.6'/%3E%3Ccircle%20cx='9.4'%20cy='19'%20r='1.5'/%3E%3Ccircle%20cx='16.6'%20cy='19'%20r='1.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3.2%204.4h2.4l2.2%2010.4h9.6l2-7.6H6.6'/%3E%3Ccircle%20cx='9.4'%20cy='19'%20r='1.5'/%3E%3Ccircle%20cx='16.6'%20cy='19'%20r='1.5'/%3E%3C/svg%3E"); }
.ksec-linkhub a[data-icon="tool"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14.4%206.6a3.9%203.9%200%200%200%205.1%205.1l-8%208a2.3%202.3%200%200%201-3.2-3.2z'/%3E%3Cpath%20d='M19.5%2011.7%2021%2010.2a5.4%205.4%200%200%200-7.2-7.2l1.6%201.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14.4%206.6a3.9%203.9%200%200%200%205.1%205.1l-8%208a2.3%202.3%200%200%201-3.2-3.2z'/%3E%3Cpath%20d='M19.5%2011.7%2021%2010.2a5.4%205.4%200%200%200-7.2-7.2l1.6%201.6'/%3E%3C/svg%3E"); }

@media (max-width: 480px) {
    .ksec-linkhub a { padding-left: 40px; }
    .ksec-linkhub a::before { left: 13px; }
}
/* === END LINKHUB TILE ICONS === */

/* ==========================================================================
   SINGLE POST

   Before this block the child theme had ZERO rules matching single-post,
   body.blog or article.post, against 271 uses of var(--ksec-*) elsewhere. The
   storefront was designed and the post was stock Shoptimizer, which is the
   whole of why a guide "looked basic". Everything here is measured, not
   guessed; the numbers in the comments are what the live page returned.

   Cascade: this file loads at stylesheet index 45, against Shoptimizer's
   blog.min.css at 38 and shoptimizer-dynamic-style-inline-css at 40, so equal
   specificity wins and nothing here needs !important.

   LiteSpeed note: critical CSS is on (optm-css_async=1) and its frozen blob is
   index 4, carrying the OLD .entry-content type. These rules still win the
   cascade, but the first frame after deploy paints the old values until CCSS
   regenerates, and mobile is a separate cache entry. Purge by tag, not URL.
   ========================================================================== */

/*
 * 1. Reading measure.
 *
 * shoptimizer_layout_singlepost is "singlepost-layout-two", which puts
 * .post-l2 on the body, and Shoptimizer then hides the sidebar with
 * .single-post.post-l2 #secondary { display: none }. The sidebar was the ONLY
 * thing constraining the column, and nothing replaced it, so prose measured
 * 1708px at 1728px viewport: 189 characters per line against a comfortable 45
 * to 75. Going back to Layout One would fix the width by restoring a sidebar
 * nobody wants on a guide, so constrain the prose instead.
 *
 * ch rather than px deliberately: it resolves against the font, so the measure
 * holds whatever the container does. Same pattern as .ksec-rp-willbe at 34ch.
 */
@media (min-width: 769px) {
	.single-post .entry-header,
	.single-post .entry-content > * {
		max-width: var(--kk-measure);
		margin-left: 0;
		margin-right: auto;
	}

	/* Lists keep their bullet indent inside the measure. */
	.single-post .entry-content > ul,
	.single-post .entry-content > ol {
		padding-left: 1.3rem;
	}

	/* Product grids are a comparison set, so they get room the prose does not. */
	.single-post .entry-content > .woocommerce {
		max-width: 1100px;
		margin-left: 0;
	}
}

/*
 * 2. Body links.
 *
 * shoptimizer_color_general_links is #05c687, which is 2.23:1 on white and
 * fails AA for body text at 4.5:1. It is Shoptimizer demo green, it appears
 * nowhere in the KSEC palette, and a guide shows it 50-plus times. Not changed
 * in the Customizer because that setting is site-wide and would repaint the
 * storefront; scoped to post prose instead.
 */
.single-post .entry-content p a,
.single-post .entry-content li a {
	color: var(--ksec-brass-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.single-post .entry-content p a:hover,
.single-post .entry-content li a:hover {
	color: var(--ksec-navy);
	text-decoration-color: var(--ksec-gold);
}

/*
 * 3. Heading hierarchy, which inverted on mobile.
 *
 * H2 carries a clamp under 768px and H3 has no responsive rule at all, so H2
 * shrank past a fixed 24px H3 at about 664px. Additional CSS also sets a global
 * h2 { font-weight: 500 } while H3 keeps 600, so H3 was HEAVIER than its own
 * parent at every width. Measured at 375px: H2 22px/500, H3 24px/600.
 */
.single-post .entry-content h2 {
	font-weight: 600;
}

@media (max-width: 768px) {
	.single-post .entry-content h2 {
		font-size: clamp(1.5rem, 1.3409rem + 0.5085vw, 1.75rem);
	}

	.single-post .entry-content h3 {
		font-size: 19px;
		line-height: 1.4;
	}
}

/*
 * 4. Vertical rhythm.
 *
 * Measured: p margin-bottom 19.45px on a 24px line-height, which is 0.81 of a
 * line. H3 had margin-top 0, so a subheading sat CLOSER to the paragraph above
 * it than a paragraph does, grouping it with the wrong block. List items had
 * margin-bottom 0 at every breakpoint.
 */
.single-post .entry-content p {
	margin-bottom: 1.5rem;
}

.single-post .entry-content h2 {
	margin-top: 3rem;
	margin-bottom: 0.75rem;
}

.single-post .entry-content h3 {
	margin-top: 2.25rem;
	margin-bottom: 0.5rem;
}

.single-post .entry-content li {
	margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
	.single-post .entry-content p,
	.single-post .entry-content li {
		line-height: 1.62;
	}
}

/*
 * 5. Product grids read as a block, not a full-bleed slab.
 *
 * Shoptimizer zeroes the bottom margin of a .woocommerce that is followed by an
 * h2 (@media min-width 993px, :has(+ h2)), so every grid butted into the next
 * heading and read as belonging to the section BELOW it. The :has line below
 * undoes exactly that.
 *
 * background-color, not the background shorthand, per house habit.
 *
 * Colours are reused rather than invented: #e6e8ec is already this file's
 * border grey in nine other places, and #f6f8f9 is the ground ksec-collections
 * uses, so a guide and the My Kit page it links to sit on the same surface.
 */
.single-post .entry-content > .woocommerce {
	margin: 2.5rem 0 3rem;
	padding: 1.5rem 1.5rem 0.5rem;
	background-color: #f6f8f9;
	border: 1px solid #e6e8ec;
	border-radius: 4px;
}

.single-post .entry-content > .woocommerce:has(+ h2) {
	margin-bottom: 3rem;
}

/*
 * 5b. A columns-1 grid is Shoptimizer's floated ASIDE, not a comparison block.
 *
 * blog.min.css already carries, above 769px:
 *   .single-post ul.products.columns-1 { float: right; max-width: 300px;
 *     margin-left: 50px; padding-left: 20px; border-left: 1px solid #e2e2e2 }
 * a deliberate in-prose recommendation rail that columns="4" bypasses entirely.
 *
 * The panel treatment in rule 5 would wrap that float in a bordered grey box
 * and defeat it, so a wrapper holding a columns-1 list opts out of all of it
 * and gets out of the float's way.
 */
.single-post .entry-content > .woocommerce:has(ul.products.columns-1) {
	max-width: var(--kk-measure);
	margin: 0 auto;
	padding: 0;
	background-color: transparent;
	border: 0;
}

/* A floated rail must not be cleared by the heading that follows its section. */
.single-post .entry-content > .woocommerce:has(ul.products.columns-1) + * {
	clear: none;
}

/*
 * 6. Featured image, capped.
 *
 * shoptimizer_post_thumbnail_no_link calls the_post_thumbnail('full') with no
 * wrapper, and the guide featured images are 1000x1000 square product shots, so
 * uncapped it is a 1000px slab above the first paragraph. Cover-crop to a band.
 */
.single-post .post > img.wp-post-image {
	display: block;
	width: 100%;
	max-width: var(--kk-measure);
	height: 320px;
	object-fit: cover;
	object-position: center;
	margin: 0 0 2rem;
	border-radius: 4px;
}

/*
 * 7. Title aligns with its prose.
 *
 * The generated inline CSS centres h1.entry-title. Centred over a 48rem measure
 * is defensible, but a left-aligned title sits with the copy beneath it and
 * matches how every other KSEC surface sets a page title.
 *
 * The h1 is named EXPLICITLY, not left to inherit from .entry-header. Measured
 * after 1.4.41 shipped: the header computed to left while the h1 stayed
 * centred, because h1.entry-title (0,1,1) sets text-align itself and beats
 * inheritance from a parent. A rule that silently does nothing is worse than
 * either outcome.
 */
.single-post .entry-header,
.single-post .entry-header h1.entry-title {
	text-align: left;
}

/*
 * 8. Side gutter, at every width.
 *
 * The measure above centres the prose but adds no breathing room at the
 * edges, and the only gutter the theme gives is .col-full's 10px on desktop
 * and 15px on mobile. 15px is not enough on a phone, which is the width where
 * the reader is closest to the glass.
 *
 * Padding goes on the CONTAINER and the measure stays on the children, so the
 * two do not fight: padding inside a max-width box would narrow the text
 * instead of insetting it. Ungated by media query on purpose, because mobile
 * is the width that needs it most and the rules above deliberately skip it.
 */
.single-post .content-area {
	padding-left: clamp(1.25rem, 4vw, 3rem);
	padding-right: clamp(1.25rem, 4vw, 3rem);
}

/*
 * The measure, defined ONCE as a root-relative length.
 *
 * It was 72ch, and ch resolves against each element's OWN font-size, so the
 * fluid body type in rule 9 (16px to 17px) silently widened the paragraphs'
 * measure to 772px while .entry-header, which sits outside .entry-content and
 * stayed at 16px, kept 727px. The title ended up inset 23px from the prose it
 * heads. Measured on the deployed page, not visible in the diff.
 *
 * 48rem is 768px, roughly 71 characters at 17px Inter, and resolves to the same
 * number on every element regardless of its own type size.
 */
.single-post {
	--kk-measure: 52rem;
}

/*
 * 9. Fluid body type, because Shoptimizer's own rule is dead code here.
 *
 * blog.min.css carries
 *   article.post .entry-content { font-size: clamp(0.875rem, ...) }
 * but content-single.php wraps the post in a <div id="post-N">, not an
 * <article>. Measured: document.querySelectorAll('article').length === 0 on a
 * single post. So the clamp never fires and body copy is a flat 16px desktop
 * with a hard step to 15px under 768px. Written directly here instead.
 *
 * Nudged up rather than reproducing the parent's range: 16px to 17px on a
 * long guide, since the constrained measure now gives the line somewhere to go.
 */
.single-post .entry-content {
	font-size: clamp(1rem, 0.955rem + 0.14vw, 1.0625rem);
}

/*
 * 10. Anchors clear the sticky nav.
 *
 * .col-full-nav is position: sticky at 54px and html had scroll-padding-top:
 * auto, so any in-page anchor landed 54px underneath it. Set now so a table of
 * contents can be added later without this being a hidden prerequisite.
 */
.single-post {
	scroll-padding-top: 74px;
}

/*
 * 11. Cap the post row so the two columns read as one article.
 *
 * With the sidebar enabled and content width at the theme default 76, measured
 * at a 1920 viewport: sidebar 323px hard against the left edge at x=10, a 133px
 * gap, then a 1444px content column with the 768px prose stranded in the middle
 * of it behind 338px of dead space each side. Three disconnected things rather
 * than a two column article.
 *
 * Capping the ROW rather than the paragraph is what fixes it, and it is the
 * honest answer to "can the content be wider": the page gets narrower, the
 * measure stays put, and the width that is left goes to the sidebar.
 *
 * Scoped to .shoptimizer-archive > .col-full because there are SEVEN .col-full
 * elements on the page, wrapping the top bar, header, nav, archive header,
 * footer and this row. Only this one holds #primary and #secondary.
 */
.single-post .shoptimizer-archive > .col-full {
	max-width: none;
	/*
	 * The row carries the OUTER gutter now the cap is gone. .col-full ships
	 * with padding: 0 10px, which left the sidebar 10px off the browser edge
	 * and reading as cramped rather than full width. .content-area keeps its
	 * own padding because that is what makes the gap between the two columns,
	 * so the two are doing different jobs and both are needed.
	 */
	padding-left: clamp(1.25rem, 3vw, 3.5rem);
	padding-right: clamp(1.25rem, 3vw, 3.5rem);
}

/*
 * 12. The sidebar, which is stock widget markup and looks it.
 *
 * Sticky because a guide runs to 5000px and a rail that scrolls away after the
 * first screen may as well be at the bottom of the page, which is where it
 * literally was before the content width was fixed.
 */
@media (min-width: 993px) {
	.single-post #secondary {
		position: sticky;
		top: 74px;
		align-self: start;
	}
}

.single-post #secondary .widget {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e6e8ec;
}

.single-post #secondary .widget:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.single-post #secondary .widget-title {
	display: block;
	margin-bottom: 0.85rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ksec-brass-text);
}

.single-post #secondary .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-post #secondary .widget li {
	margin-bottom: 0.7rem;
	line-height: 1.45;
	font-size: 0.9375rem;
}

.single-post #secondary .widget li:last-child {
	margin-bottom: 0;
}

/* DEV-330: Complianz cookie bar on desktop. Complianz's generated sheet
   (banner-2-optin.css) gives the banner a two column grid at 1024px and up,
   and its children span three columns, so the third track is implicit and
   the grid is wider than the 640px bar that labs caps it to (Complianz custom
   CSS, 601px and up). The content overflowed, the bar scrolled sideways and
   the message was cut off on the left. One column of block children fits any
   width, with the buttons side by side as on phones. Wording, logo, Deny and
   the button sizes are untouched. Only a banner Complianz is showing gets
   display set, so its own hidden and dismissed rules still win. The transform
   is cleared because below 1024px Complianz keeps its translateX(-50%) while
   the custom CSS pins the bar at left 10px, which pushed it off screen. */
@media (min-width: 601px) {
  .cmplz-cookiebanner.cmplz-bottom.cmplz-show:not(.cmplz-hidden) {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    transform: none !important;
  }
  .cmplz-cookiebanner.cmplz-bottom > * {
    width: auto !important;
    min-width: 0 !important;
    grid-column: auto !important;
  }
  .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
  }
  .cmplz-cookiebanner.cmplz-bottom .cmplz-buttons .cmplz-btn {
    flex: 1 1 0 !important;
  }
}
