:root {
    --ksc-theme-header-bg: var(--global-palette4, #1f2933);
    --ksc-theme-header-contrast: var(--global-palette7, #ffffff);
    --ksc-theme-site-bg: var(--global-palette5, #ffffff);
    --ksc-button-bg: var(--global-palette-btn-bg, var(--global-palette1, #242415));
    --ksc-button-bg-hover: var(--global-palette-btn-bg-hover, var(--global-palette2, var(--ksc-button-bg)));
    --ksc-button-text: var(--global-palette-btn, var(--global-palette7, #ffffff));
    --ksc-button-text-hover: var(--global-palette-btn-hover, var(--ksc-button-text));
    --ksc-accent: var(--ksc-button-bg);
    --ksc-on-accent: var(--ksc-button-text);
    --ksc-radius: 6px;
    --ksc-transition: 160ms ease;
    --ksc-faq-transition: 230ms cubic-bezier(0.2, 0.7, 0.2, 1);
    --ksc-sticky-space: 84px;
}


/* Content images use the fixed /go/ route through JavaScript; no href is inserted into article HTML. */
.entry-content img[data-ksc-go-image="1"],
main article .post-content img[data-ksc-go-image="1"] {
    cursor: pointer;
    transform-origin: center;
    transition: scale 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

@media (hover: hover) and (pointer: fine) {
    .entry-content img[data-ksc-go-image="1"]:hover,
    main article .post-content img[data-ksc-go-image="1"]:hover {
        scale: 1.045;
    }
}

.entry-content img[data-ksc-go-image="1"]:focus-visible,
main article .post-content img[data-ksc-go-image="1"]:focus-visible {
    outline: 3px solid var(--ksc-accent);
    outline-offset: 4px;
    scale: 1.025;
}

/* FAQ: compact rows, native H3 typography and no decorative card chrome. */
.ksc-faq,
.ksc-faq__item,
.ksc-faq__question,
.ksc-faq__answer,
.ksc-faq__answer-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.ksc-faq {
    display: grid;
    gap: 5px;
    margin-block: 14px 24px;
    overflow-x: clip;
}

.ksc-faq__item {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.ksc-faq__question {
    position: relative;
    display: block;
    margin: 0;
    padding: 6px 42px 6px 14px;
    border: 0;
    border-radius: 0;
    background: var(--ksc-theme-header-bg);
    color: var(--ksc-theme-header-contrast);
    box-shadow: none;
    cursor: pointer;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
    transition: background-color var(--ksc-faq-transition), color var(--ksc-faq-transition);
}

.ksc-faq__question:hover,
.ksc-faq__question:focus,
.ksc-faq__question:active {
    background: var(--ksc-theme-header-bg);
    color: var(--ksc-theme-header-contrast);
    box-shadow: none;
}

.ksc-faq__question-title {
    display: block;
    margin: 0;
    padding: 0;
    color: inherit;
}

.ksc-faq__question-label {
    font-size: 85%;
}

.ksc-faq__question::-webkit-details-marker,
.ksc-faq__question::marker {
    display: none;
    content: '';
}

.ksc-faq__question::before,
.ksc-faq__question::after {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    content: '';
    background: currentColor;
    transform-origin: center;
    transition: transform var(--ksc-faq-transition), opacity var(--ksc-faq-transition);
}

.ksc-faq__question::before {
    transform: translateY(-50%);
}

.ksc-faq__question::after {
    transform: translateY(-50%) rotate(90deg);
}

.ksc-faq__item[open] > .ksc-faq__question::after {
    opacity: 0;
    transform: translateY(-50%) rotate(180deg);
}

.ksc-faq__answer {
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    opacity: 1;
    overflow: hidden;
    overflow-wrap: anywhere;
    transition: height var(--ksc-faq-transition), opacity 180ms ease;
}

.ksc-faq__answer-inner {
    padding: 9px 0 2px;
}

/* Keep a visible gap between an expanded answer and the following question. */
.ksc-faq__item[open] > .ksc-faq__answer > .ksc-faq__answer-inner {
    padding-bottom: 12px;
}

/* Sticky positioning plus shared Kadence Base Button colours. */
.ksc-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 9998;
    max-width: 680px;
    margin-inline: auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--ksc-transition), transform var(--ksc-transition);
}

.ksc-sticky-cta[hidden] {
    display: none !important;
}

.ksc-sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ksc-sticky-cta__button.button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 18px;
    font-weight: 800;
    border-color: var(--ksc-button-bg) !important;
    background: var(--ksc-button-bg) !important;
    color: var(--ksc-button-text) !important;
    cursor: pointer;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    animation: ksc-pulse 2.35s ease-in-out infinite;
    transform-origin: center bottom;
}

.ksc-sticky-cta__button.button:hover,
.ksc-sticky-cta__button.button:focus-visible,
.ksc-sticky-cta__button.button:active {
    border-color: var(--ksc-button-bg-hover) !important;
    background: var(--ksc-button-bg-hover) !important;
    color: var(--ksc-button-text-hover) !important;
}

body.ksc-sticky-visible {
    padding-bottom: calc(var(--ksc-sticky-space) + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .ksc-sticky-cta:not([data-ksc-desktop="1"]) {
        display: none !important;
    }
}

/* Localized article CTA: larger, centred, bold and compositor-only pulse. */
.entry-content .ksc-article-cta.button,
main article .ksc-article-cta.button {
    display: block;
    width: fit-content;
    min-width: min(280px, 100%);
    max-width: 100%;
    min-height: 54px;
    margin: 30px auto;
    padding: 15px 34px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 800;
    border-color: var(--ksc-button-bg) !important;
    background: var(--ksc-button-bg) !important;
    color: var(--ksc-button-text) !important;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    animation: ksc-pulse 2.35s ease-in-out infinite;
    transform-origin: center;
}

.entry-content .ksc-article-cta.button:hover,
.entry-content .ksc-article-cta.button:focus-visible,
.entry-content .ksc-article-cta.button:active,
main article .ksc-article-cta.button:hover,
main article .ksc-article-cta.button:focus-visible,
main article .ksc-article-cta.button:active {
    border-color: var(--ksc-button-bg-hover) !important;
    background: var(--ksc-button-bg-hover) !important;
    color: var(--ksc-button-text-hover) !important;
}

@keyframes ksc-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

/* Kadence desktop/mobile header buttons are rendered server-side. */
.ksc-header-auth {
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
    white-space: nowrap;
}

.ksc-header-auth__button {
    flex: 0 0 auto;
    min-height: 42px;
    margin: 0 !important;
    line-height: 1.2;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-align: center;
    cursor: pointer;
}

.ksc-header-auth__button--login {
    border: 2px solid var(--ksc-button-bg) !important;
    border-radius: var(--ksc-radius) !important;
    background: transparent !important;
    color: var(--ksc-button-bg) !important;
    box-shadow: none !important;
}

.ksc-header-auth__button--login:hover,
.ksc-header-auth__button--login:focus-visible,
.ksc-header-auth__button--login:active {
    border-color: var(--ksc-button-bg-hover) !important;
    background: var(--ksc-button-bg-hover) !important;
    color: var(--ksc-button-text-hover) !important;
}

.ksc-header-auth__button--register {
    border-color: var(--ksc-button-bg) !important;
    background: var(--ksc-button-bg) !important;
    color: var(--ksc-button-text) !important;
}

.ksc-header-auth__button--register:hover,
.ksc-header-auth__button--register:focus-visible,
.ksc-header-auth__button--register:active {
    border-color: var(--ksc-button-bg-hover) !important;
    background: var(--ksc-button-bg-hover) !important;
    color: var(--ksc-button-text-hover) !important;
}

@media (max-width: 767px) {
    .ksc-faq__question {
        padding: 6px 38px 6px 12px;
    }

    .ksc-faq__question::before,
    .ksc-faq__question::after {
        right: 12px;
        width: 16px;
    }

    .ksc-faq__answer-inner {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .ksc-sticky-cta {
        left: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
    }

    .ksc-header-auth--mobile {
        gap: 5px;
        width: auto;
        max-width: 100%;
    }

    .ksc-header-auth--mobile .ksc-header-auth__button {
        flex: 0 0 auto;
        min-width: 0;
        padding-inline: clamp(7px, 2.2vw, 12px);
        font-size: clamp(11px, 3vw, 15px);
        letter-spacing: normal;
    }

    .entry-content .ksc-article-cta.button,
    main article .ksc-article-cta.button {
        min-width: min(250px, calc(100% - 20px));
        padding-inline: 22px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ksc-faq__question,
    .ksc-faq__question::before,
    .ksc-faq__question::after,
    .ksc-faq__answer,
    .ksc-sticky-cta,
    .ksc-sticky-cta__button,
    .ksc-article-cta,
    .entry-content img[data-ksc-go-image="1"],
    main article .post-content img[data-ksc-go-image="1"] {
        transition: none !important;
        animation: none !important;
        scale: none !important;
        will-change: auto !important;
    }
}

@media screen and (max-width: 767px) {
    .entry-content table th,
    .entry-content table td,
    .entry-content .wp-block-table th,
    .entry-content .wp-block-table td {
        font-size: 75% !important;
        line-height: 1.35;
    }
}