/**********
    GLOBAL VARIABLES
**********/

:root {
    --grape-purple: #6f2c91;
    --primary: #845fa7;
    --primary-focus: #54206f;
    --primary-light: #8e78a3;
    --accent-purple: #e5deed;
    --secondary: #f4f4f4; /*light grey*/
    --secondary-light: #f8f9fa; /*lighter grey*/
}
/**********
    TYPOGRAPHY
**********/
.text-grape {
    color: var(--grape-purple) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.78);
}

/**********
    BUTTONS
**********/

/* Purple button */
.btn-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    color: #ffffff;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

    .btn-purple:hover,
    .btn-purple:focus {
        color: #ffffff;
        background-color: var(--primary-focus);
        border-color: var(--primary-focus);
        box-shadow: 0 5px 14px rgba(111, 44, 145, 0.25);
        transform: translateY(-1px);
    }

    .btn-purple:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(111, 44, 145, 0.25);
    }

/* Purple outline button */
.btn-purple-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    color: var(--grape-purple);
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

    .btn-purple-outline:hover,
    .btn-purple-outline:focus {
        color: #ffffff;
        background-color: var(--primary);
        border-color: var(--primary);
        box-shadow: 0 5px 14px rgba(111, 44, 145, 0.2);
        transform: translateY(-1px);
    }

    .btn-purple-outline:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(111, 44, 145, 0.25);
    }
/* Secondary outline button */
.btn-secondary {
    color: var(--primary);
    background-color: #ffffff;
    border-color: var(--primary);
}

    .btn-secondary:hover,
    .btn-secondary:focus {
        color: #ffffff;
        background-color: var(--primary);
        border-color: var(--primary);
    }

    .btn-secondary:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(111, 44, 145, 0.25);
    }

/* mobile classes */
@media (max-width: 767.98px) {
    .btn-purple {
        width: 100%;
        text-align: center;
    }
}

/**********
    Sections
**********/

.section{
    padding: 4rem 0;
}
    .section i.section-icon {
        font-size: 4rem;
        font-weight: 400;
    }

        /* */
    .section.section-purple {
        color: #ffffff;
        background-color: var(--primary);
    }

    .section.section-grey {
        color: #000000;
        background-color: var(--secondary);
    }

    .section.section-purple-soft {
        background-color: #f7f3fa;
    }

    .section.section-dark {
        color: #ffffff;
        background: linear-gradient(135deg, #32133f 0%, var(--primary-focus) 55%, var(--grape-purple) 100%);
    }

.section-heading {
    max-width: 760px;
}

.section-kicker {
    margin-bottom: 0.65rem;
    color: var(--grape-purple);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section h2.section-title {
    margin: 0 0 1rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

    .section h2.section-title::after {
        display: block;
        width: 45px;
        height: 2px;
        margin: 0.9rem auto 0;
        background-color: var(--primary);
        content: "";
    }

    .section h2.section-title.text-start::after {
        margin-right: auto;
        margin-left: 0;
    }

.section-dark h2.section-title::after,
.demo-section h2.section-title::after {
    background-color: rgba(255, 255, 255, 0.55);
}

/**********
    SHARED UI ELEMENTS
**********/

/* Small label displayed above prominent page headings. */
.eyebrow-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    color: var(--primary-focus);
    background-color: var(--accent-purple);
    border-radius: 50rem;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Reusable circular Bootstrap Icon container. */
.icon-circle {
    display: inline-flex;
    width: 3.25rem;
    height: 3.25rem;
    align-items: center;
    justify-content: center;
    color: var(--grape-purple);
    background-color: var(--accent-purple);
    border-radius: 50%;
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.icon-circle-sm {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.1rem;
}

/* Branded inline link used on cards and section CTAs. */
.text-link {
    color: var(--grape-purple);
    font-weight: 600;
    text-decoration: none;
}

    .text-link:hover,
    .text-link:focus {
        color: var(--primary-focus);
        text-decoration: underline;
        text-underline-offset: 0.2rem;
    }
/**********
    SILKTIDE CONSENT BANNER
**********/

#stcm-banner {
    color: #493454 !important;
    background: #ffffff !important;
    border: 1px solid rgba(111, 44, 145, 0.2) !important;
    border-radius: 1rem !important;
    box-shadow: 0 1rem 3rem rgba(38, 20, 46, 0.2) !important;
}

    #stcm-banner p {
        color: #493454 !important;
    }

    /* Shared button styling */
    #stcm-banner .stcm-button {
        min-height: 2.75rem;
        border-radius: 0.5rem !important;
        font-weight: 600;
        transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }

    /* Accept all */
    #stcm-banner .stcm-accept-all,
    #stcm-banner .stcm-accept-all.stcm-button-primary {
        color: #ffffff !important;
        background: #6f2c91 !important;
        border: 1px solid #6f2c91 !important;
    }

        #stcm-banner .stcm-accept-all:hover,
        #stcm-banner .stcm-accept-all:focus-visible,
        #stcm-banner .stcm-accept-all:active {
            color: #ffffff !important;
            background: #53216d !important;
            border-color: #53216d !important;
            box-shadow: 0 0.4rem 1rem rgba(111, 44, 145, 0.25) !important;
        }

    /* Reject non-essential */
    #stcm-banner .stcm-reject-all,
    #stcm-banner .stcm-reject-all.stcm-button-primary {
        color: #6f2c91 !important;
        background: #ffffff !important;
        border: 1px solid #6f2c91 !important;
    }

        #stcm-banner .stcm-reject-all:hover,
        #stcm-banner .stcm-reject-all:focus-visible,
        #stcm-banner .stcm-reject-all:active {
            color: #53216d !important;
            background: #f3eef6 !important;
            border-color: #53216d !important;
            box-shadow: 0 0.4rem 1rem rgba(111, 44, 145, 0.15) !important;
        }

    /* Manage preferences */
    #stcm-banner .stcm-preferences-button {
        color: #6f2c91 !important;
        background: transparent !important;
        border-color: transparent !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

        #stcm-banner .stcm-preferences-button span {
            color: inherit !important;
        }

        #stcm-banner .stcm-preferences-button:hover,
        #stcm-banner .stcm-preferences-button:focus-visible,
        #stcm-banner .stcm-preferences-button:active {
            color: #53216d !important;
            background: rgba(111, 44, 145, 0.08) !important;
            border-color: transparent !important;
            text-decoration: underline !important;
            text-underline-offset: 0.2rem;
        }

    /* Silktide credit logo */
    #stcm-banner .stcm-logo {
        color: #845fa7 !important;
        fill: #845fa7 !important;
        transition: color 160ms ease, fill 160ms ease, transform 160ms ease;
    }

        #stcm-banner .stcm-logo svg,
        #stcm-banner .stcm-logo path {
            fill: currentColor !important;
        }

        #stcm-banner .stcm-logo:hover,
        #stcm-banner .stcm-logo:focus-visible {
            color: #53216d !important;
            fill: #53216d !important;
            transform: translateY(-1px);
        }

    /* Accessible keyboard focus */
    #stcm-banner button:focus-visible,
    #stcm-banner a:focus-visible {
        outline: 3px solid rgba(111, 44, 145, 0.3) !important;
        outline-offset: 3px !important;
    }

/* Small screens */
@media (max-width: 575.98px) {
    #stcm-banner {
        border-radius: 0.8rem !important;
    }

        #stcm-banner .stcm-button,
        #stcm-banner .stcm-preferences-button {
            width: 100%;
        }
}
/**********
    SILKTIDE PREFERENCES MODAL
**********/

#stcm-modal {
    color: #493454 !important;
    background: #ffffff !important;
    border: 1px solid rgba(111, 44, 145, 0.2) !important;
    border-radius: 1rem !important;
    box-shadow: 0 1.5rem 4rem rgba(38, 20, 46, 0.24) !important;
}

    /* Modal heading */
    #stcm-modal > header {
        border-bottom-color: rgba(111, 44, 145, 0.14) !important;
    }

        #stcm-modal > header h1 {
            color: #53216d !important;
            font-weight: 700 !important;
        }

    /* Introductory and description text */
    #stcm-modal > p,
    #stcm-modal .stcm-consent-description,
    #stcm-modal .stcm-consent-description p {
        color: #5f4a69 !important;
        line-height: 1.65;
    }

    /* Close button */
    #stcm-modal .stcm-modal-close {
        display: inline-flex;
        width: 2.75rem;
        height: 2.75rem;
        align-items: center;
        justify-content: center;
        color: #6f2c91 !important;
        background: #f3eef6 !important;
        border: 1px solid rgba(111, 44, 145, 0.18) !important;
        border-radius: 50% !important;
        transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
    }

        #stcm-modal .stcm-modal-close svg,
        #stcm-modal .stcm-modal-close path {
            fill: currentColor !important;
        }

        #stcm-modal .stcm-modal-close:hover,
        #stcm-modal .stcm-modal-close:focus-visible {
            color: #ffffff !important;
            background: #6f2c91 !important;
            border-color: #6f2c91 !important;
            transform: rotate(5deg);
        }

    /* Consent section cards */
    #stcm-modal #stcm-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #stcm-modal fieldset {
        margin: 0 !important;
        padding: 1.25rem !important;
        background: #faf8fb !important;
        border: 1px solid rgba(111, 44, 145, 0.16) !important;
        border-radius: 0.8rem !important;
        transition: background-color 160ms ease, border-color 160ms ease;
    }

        #stcm-modal fieldset:hover {
            background: #f7f2f9 !important;
            border-color: rgba(111, 44, 145, 0.3) !important;
        }

        #stcm-modal fieldset legend {
            width: auto !important;
            margin: 0 0 0.6rem !important;
            padding: 0 !important;
            color: #53216d !important;
            font-size: 1rem !important;
            font-weight: 700 !important;
        }

    /* Consent rows */
    #stcm-modal .stcm-consent-row {
        gap: 1.25rem;
    }

    /* Toggle track — off */
    #stcm-modal .stcm-toggle-track {
        background: #d9d0de !important;
        border: 1px solid #bbaac4 !important;
    }

    /* Toggle thumb */
    #stcm-modal .stcm-toggle-thumb {
        background: #ffffff !important;
        box-shadow: 0 0.15rem 0.35rem rgba(38, 20, 46, 0.2) !important;
    }

    /* Toggle track — on */
    #stcm-modal .stcm-toggle input:checked + .stcm-toggle-track {
        background: #6f2c91 !important;
        border-color: #6f2c91 !important;
    }

    /* On/off labels */
    #stcm-modal .stcm-toggle-off {
        color: #594d5f !important;
    }

    #stcm-modal .stcm-toggle-on {
        color: #ffffff !important;
    }

    /* Toggle keyboard focus */
    #stcm-modal .stcm-toggle input:focus-visible + .stcm-toggle-track {
        outline: 3px solid rgba(111, 44, 145, 0.3) !important;
        outline-offset: 3px !important;
    }

    /* Modal footer */
    #stcm-modal > footer {
        border-top-color: rgba(111, 44, 145, 0.14) !important;
    }

    /* Save preferences */
    #stcm-modal .stcm-modal-save,
    #stcm-modal .stcm-modal-save.stcm-button-primary {
        color: #ffffff !important;
        background: #6f2c91 !important;
        border: 1px solid #6f2c91 !important;
        border-radius: 0.5rem !important;
        font-weight: 600 !important;
    }

        #stcm-modal .stcm-modal-save:hover,
        #stcm-modal .stcm-modal-save:focus-visible,
        #stcm-modal .stcm-modal-save:active {
            color: #ffffff !important;
            background: #53216d !important;
            border-color: #53216d !important;
            box-shadow: 0 0.4rem 1rem rgba(111, 44, 145, 0.25) !important;
        }

    /* Reject non-essential */
    #stcm-modal .stcm-modal-reject-all,
    #stcm-modal .stcm-modal-reject-all.stcm-button-primary {
        color: #6f2c91 !important;
        background: #ffffff !important;
        border: 1px solid #6f2c91 !important;
        border-radius: 0.5rem !important;
        font-weight: 600 !important;
    }

        #stcm-modal .stcm-modal-reject-all:hover,
        #stcm-modal .stcm-modal-reject-all:focus-visible,
        #stcm-modal .stcm-modal-reject-all:active {
            color: #53216d !important;
            background: #f3eef6 !important;
            border-color: #53216d !important;
            box-shadow: 0 0.4rem 1rem rgba(111, 44, 145, 0.15) !important;
        }

    /* Silktide credit */
    #stcm-modal .stcm-credit-link {
        color: #6f2c91 !important;
        font-weight: 600;
        text-decoration-color: rgba(111, 44, 145, 0.35) !important;
        text-underline-offset: 0.2rem;
    }

        #stcm-modal .stcm-credit-link:hover,
        #stcm-modal .stcm-credit-link:focus-visible {
            color: #53216d !important;
            text-decoration-color: #53216d !important;
        }

    /* Consistent keyboard focus */
    #stcm-modal button:focus-visible,
    #stcm-modal a:focus-visible {
        outline: 3px solid rgba(111, 44, 145, 0.3) !important;
        outline-offset: 3px !important;
    }

/* Mobile layout */
@media (max-width: 575.98px) {
    #stcm-modal {
        border-radius: 0.8rem !important;
    }

        #stcm-modal fieldset {
            padding: 1rem !important;
        }

        #stcm-modal .stcm-consent-row {
            align-items: flex-start;
            flex-direction: column;
        }

        #stcm-modal > footer {
            align-items: stretch;
            flex-direction: column;
        }

        #stcm-modal .stcm-modal-save,
        #stcm-modal .stcm-modal-reject-all {
            width: 100%;
        }

        #stcm-modal .stcm-credit-link {
            text-align: center;
        }
}
/**********
    SILKTIDE PREFERENCES BUTTON
**********/

#stcm-icon {
    width: 3.5rem !important;
    height: 3.5rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem !important;
    color: #ffffff !important;
    background: linear-gradient( 135deg, #6f2c91, #845fa7 ) !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 0.65rem 1.5rem rgba(38, 20, 46, 0.24), 0 0 0 1px rgba(111, 44, 145, 0.12) !important;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}

    #stcm-icon svg {
        display: block;
        width: 2rem !important;
        height: 2rem !important;
        fill: currentColor !important;
    }

        #stcm-icon svg path {
            fill: currentColor !important;
        }

    /* Hover */
    #stcm-icon:hover {
        color: #ffffff !important;
        background: #53216d !important;
        border-color: #ffffff !important;
        box-shadow: 0 0.85rem 1.8rem rgba(38, 20, 46, 0.3), 0 0 0 4px rgba(111, 44, 145, 0.12) !important;
        transform: translateY(-3px) !important;
    }

    /* Keyboard focus */
    #stcm-icon:focus-visible {
        color: #ffffff !important;
        background: #53216d !important;
        border-color: #ffffff !important;
        outline: 3px solid rgba(111, 44, 145, 0.38) !important;
        outline-offset: 4px !important;
        box-shadow: 0 0.85rem 1.8rem rgba(38, 20, 46, 0.3) !important;
    }

    /* Click */
    #stcm-icon:active {
        color: #ffffff !important;
        background: #431a58 !important;
        transform: translateY(0) scale(0.96) !important;
    }

    /* Prevent inherited yellow fill */
    #stcm-icon,
    #stcm-icon:hover,
    #stcm-icon:focus,
    #stcm-icon:focus-visible,
    #stcm-icon:active,
    #stcm-icon svg,
    #stcm-icon svg path {
        fill: currentColor !important;
    }

/* Mobile sizing and positioning */
@media (max-width: 575.98px) {
    #stcm-icon {
        width: 3.1rem !important;
        height: 3.1rem !important;
        padding: 0.7rem !important;
    }

        #stcm-icon svg {
            width: 1.7rem !important;
            height: 1.7rem !important;
        }
}
/**********
    END SILKTIDE
**********/