/* Shared storefront design-token contract. Keep this stylesheet last in the shared stack. */
.site-shell {
    --sentioo-blue: var(--brand, #0069b2);
    --sentioo-blue-hover: color-mix(in srgb, var(--brand, #0069b2) 82%, #000);
    --sentioo-text: var(--ink, #111827);
    --sentioo-copy: color-mix(in srgb, var(--ink, #111827) 72%, var(--page-bg, #fff));
    --surface-blue: color-mix(in srgb, var(--brand, #0069b2) 11%, var(--page-bg, #fff));
    --soft: color-mix(in srgb, var(--accent, #00e8e8) 7%, var(--page-bg, #fff));
    --stream-brand: var(--brand, #0069b2);
    --stream-brand-dark: color-mix(in srgb, var(--brand, #0069b2) 82%, #000);
    background: var(--page-bg, #fff);
    color: var(--ink, #111827);
    font-family: var(--site-font-family, system-ui), Arial, sans-serif;
    font-size: var(--base-font-size, 16px);
    line-height: var(--site-line-height, 1.6);
}

.site-shell :where(button, input, select, textarea) {
    font-family: var(--site-font-family, system-ui), Arial, sans-serif !important;
}

.site-shell :where(h1, h2, h3, h4, h5, h6, .sentioo-header-brand span, .pf-footer-brand-name) {
    color: var(--ink, #111827);
    font-family: var(--site-heading-font-family, var(--site-font-family, system-ui)), Arial, sans-serif !important;
}

.site-shell .builder-element :where(h1, h2, h3, h4, h5, h6) { color: inherit; }

.site-shell :is(
    .pill,
    .btn-primary,
    .btn-outline,
    .dc-btn-primary-sidebar,
    .dc-btn-secondary-sidebar,
    .site-account-primary-button,
    .site-account-secondary-button,
    .site-login-submit,
    .co-summary-payment-btn,
    .site-payment-link,
    .btn-continue,
    .btn-profile,
    .cart-continue-shopping-btn,
    .cart-checkout-btn,
    .cart-empty-cart-btn,
    .dc-cart-btn-continue,
    .dc-cart-btn-checkout,
    .dc-cart-upsell-btn,
    .add-to-cart-btn,
    .de-write-review-btn,
    .de-review-modal-btn
) {
    border-radius: var(--button-radius, 12px) !important;
}

.site-shell :is(
    .pill.primary,
    .btn-primary,
    .dc-btn-primary-sidebar,
    .site-account-primary-button,
    .site-login-submit,
    .co-summary-payment-btn,
    .site-payment-link,
    .cart-checkout-btn,
    .cart-empty-cart-btn,
    .dc-cart-btn-checkout,
    .dc-cart-upsell-btn,
    .add-to-cart-btn,
    .de-review-modal-btn-submit
) {
    border-color: var(--brand, #0069b2);
    background: var(--brand, #0069b2);
    color: var(--brand-contrast, #fff);
}

.site-shell :is(
    .pill.primary,
    .btn-primary,
    .dc-btn-primary-sidebar,
    .site-account-primary-button,
    .site-login-submit,
    .co-summary-payment-btn,
    .site-payment-link,
    .cart-checkout-btn,
    .cart-empty-cart-btn,
    .dc-cart-btn-checkout,
    .dc-cart-upsell-btn,
    .add-to-cart-btn,
    .de-review-modal-btn-submit
):hover {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 82%, #000);
    background: color-mix(in srgb, var(--brand, #0069b2) 82%, #000);
    color: var(--brand-contrast, #fff);
}

.site-shell :is(.btn-outline, .dc-btn-secondary-sidebar, .site-account-secondary-button) {
    border-color: var(--brand, #0069b2);
    color: var(--brand, #0069b2);
}

/* Normalize action components that still carry legacy fixed blue values. */
.site-shell :is(
    .detail-buy-button, .site-account-download-button, .site-catalog-clear-button,
    .site-blog-read-button, .sentioo-stream-button, .site-custom-product-button,
    .de-start-course-btn, .premium-btn-style, .test-answer-save-btn, .site-waitlist-submit
) {
    border-radius: var(--button-radius, 12px) !important;
}

.site-shell :is(
    .pill.primary, .btn-primary, .detail-buy-button, .dc-btn-primary-sidebar,
    .site-account-primary-button, .site-login-submit, .co-summary-payment-btn,
    .site-payment-link, .btn-continue, .cart-checkout-btn, .cart-empty-cart-btn,
    .dc-cart-btn-checkout, .dc-cart-upsell-btn, .add-to-cart-btn,
    .site-catalog-clear-button, .site-blog-read-button,
    .sentioo-stream-button:not(.is-secondary), .site-custom-product-button.is-primary,
    .de-start-course-btn, .test-answer-save-btn, .site-waitlist-submit,
    .de-review-modal-btn-submit
) {
    border-color: var(--brand, #0069b2) !important;
    background: var(--brand, #0069b2) !important;
    color: var(--brand-contrast, #fff) !important;
}

.site-shell :is(
    .pill.primary, .btn-primary, .detail-buy-button, .dc-btn-primary-sidebar,
    .site-account-primary-button, .site-login-submit, .co-summary-payment-btn,
    .site-payment-link, .btn-continue, .cart-checkout-btn, .cart-empty-cart-btn,
    .dc-cart-btn-checkout, .dc-cart-upsell-btn, .add-to-cart-btn,
    .site-catalog-clear-button, .site-blog-read-button,
    .sentioo-stream-button:not(.is-secondary), .site-custom-product-button.is-primary,
    .de-start-course-btn, .test-answer-save-btn, .site-waitlist-submit,
    .de-review-modal-btn-submit
):hover {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 82%, #000) !important;
    background: color-mix(in srgb, var(--brand, #0069b2) 82%, #000) !important;
    color: var(--brand-contrast, #fff) !important;
}

.site-shell .pill.secondary {
    border-color: var(--accent, #00e8e8) !important;
    background: var(--accent, #00e8e8) !important;
    color: var(--accent-contrast, #111827) !important;
}

.site-shell .pill.secondary:hover {
    border-color: color-mix(in srgb, var(--accent, #00e8e8) 82%, #000) !important;
    background: color-mix(in srgb, var(--accent, #00e8e8) 82%, #000) !important;
    color: var(--accent-contrast, #111827) !important;
}

.site-shell :is(.btn-outline, .pill.outline) {
    border-color: var(--brand, #0069b2) !important;
    background: transparent !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell :is(
    .dc-btn-secondary-sidebar, .site-account-secondary-button, .site-account-download-button,
    .btn-profile, .dc-cart-btn-continue, .premium-btn-style,
    .sentioo-stream-button.is-secondary, .site-custom-product-button.is-secondary
) {
    border-color: color-mix(in srgb, var(--accent, #00e8e8) 42%, var(--page-bg, #fff)) !important;
    background: color-mix(in srgb, var(--accent, #00e8e8) 13%, var(--page-bg, #fff)) !important;
    color: color-mix(in srgb, var(--accent, #00e8e8) 48%, var(--ink, #111827)) !important;
}

.site-shell :is(
    .news-card, .site-card-horizontal, .site-content-card, .pf-course-card,
    .site-subscription-plan, .builder-cta, .builder-contact, .builder-faq details
) {
    border-radius: var(--radius, 14px) !important;
}

.site-shell :is(.builder-grid, .grid, .builder-card-grid) { gap: var(--spacing-unit, 24px); }

.site-shell:is(
    .site-catalog-page, .site-blog-page, .site-blog-detail, .site-cart-page,
    .site-checkout-page, .site-payment-page, .site-account-page, .site-login-page
) { background: var(--page-bg, #fff); }

.site-shell .de-reviews-pagination .de-pagination-arrow svg { stroke: var(--brand, #0069b2); }
.site-shell .de-reviews-pagination :is(a.de-pagination-number:hover, a.de-pagination-arrow:hover) { border-color: var(--brand, #0069b2); color: var(--brand, #0069b2); }
.site-shell .de-reviews-pagination .de-pagination-number.de-active { border-color: var(--brand, #0069b2); background: var(--brand, #0069b2); color: var(--brand-contrast, #fff); }

.site-shell[data-site-hero-style="soft"] :is(
    .site-page-hero .cart-hero-bg,
    .site-detail .dc-hero-bg
) {
    background: linear-gradient(
        105deg,
        color-mix(in srgb, var(--brand, #0069b2) 14%, var(--page-bg, #fff)),
        color-mix(in srgb, var(--accent, #00e8e8) 16%, var(--page-bg, #fff))
    );
    opacity: 1;
}

.site-shell[data-site-hero-style="brand"] :is(
    .site-page-hero .cart-hero-bg,
    .site-detail .dc-hero-bg
) {
    background: var(--brand, #0069b2);
    opacity: 1;
}

.site-shell[data-site-hero-style="gradient"] :is(
    .site-page-hero .cart-hero-bg,
    .site-detail .dc-hero-bg
) {
    background: linear-gradient(120deg, var(--brand, #0069b2), var(--accent, #00e8e8));
    opacity: 1;
}

.site-shell[data-site-hero-style="brand"] .site-page-hero :is(.site-page-hero-eyebrow, .cart-hero-title, .site-page-hero-text),
.site-shell[data-site-hero-style="gradient"] .site-page-hero :is(.site-page-hero-eyebrow, .cart-hero-title, .site-page-hero-text) {
    color: var(--brand-contrast, #fff);
}

.site-shell[data-site-hero-style="brand"] .site-detail .dc-hero-gradient :where(h1, h2, h3, p, li),
.site-shell[data-site-hero-style="gradient"] .site-detail .dc-hero-gradient :where(h1, h2, h3, p, li) {
    color: var(--brand-contrast, #fff) !important;
}
.site-shell[data-site-hero-style="soft"] .builder-section.uses-theme-hero-style:is([data-builder-id="hero"], [data-builder-id^="hero-"]):not(:has(> .builder-section-background)) {
    background-color: var(--page-bg, #fff) !important;
    background-image: linear-gradient(
        110deg,
        var(--page-bg, #fff) 36%,
        color-mix(in srgb, var(--accent, #00e8e8) 14%, var(--page-bg, #fff))
    ) !important;
}

.site-shell[data-site-hero-style="brand"] .builder-section.uses-theme-hero-style:is([data-builder-id="hero"], [data-builder-id^="hero-"]):not(:has(> .builder-section-background)) {
    background-color: var(--brand, #0069b2) !important;
    background-image: none !important;
}

.site-shell[data-site-hero-style="gradient"] .builder-section.uses-theme-hero-style:is([data-builder-id="hero"], [data-builder-id^="hero-"]):not(:has(> .builder-section-background)) {
    background-color: var(--brand, #0069b2) !important;
    background-image: linear-gradient(120deg, var(--brand, #0069b2), var(--accent, #00e8e8)) !important;
}

.site-shell[data-site-hero-style="brand"] .builder-section.uses-theme-hero-style:is([data-builder-id="hero"], [data-builder-id^="hero-"]) :where(h1, h2, h3, p, li),
.site-shell[data-site-hero-style="gradient"] .builder-section.uses-theme-hero-style:is([data-builder-id="hero"], [data-builder-id^="hero-"]) :where(h1, h2, h3, p, li) {
    color: var(--brand-contrast, #fff) !important;
}


@media (prefers-reduced-motion: reduce) {
    .site-shell :is(.pill, .btn-primary, .dc-btn-primary-sidebar, .add-to-cart-btn) {
        transition: none;
    }
}

/* System pages must inherit the storefront theme instead of legacy Sentioo blue. */
.site-shell :is(a, button, input, select, textarea):focus-visible {
    outline-color: color-mix(in srgb, var(--brand, #0069b2) 42%, transparent);
}

.site-shell .site-page-hero .cart-hero-title {
    font-family: var(--site-heading-font-family, var(--site-font-family, system-ui)), Arial, sans-serif !important;
}

.site-shell .site-cart-page :is(.site-cart-remove, .cart-order-summary-title) {
    color: var(--brand, #0069b2) !important;
}

.site-shell .site-cart-page :is(.cart-continue-shopping-btn, form.cart-promo-code-section input.cart-promo-code-btn) {
    border-color: color-mix(in srgb, var(--accent, #00e8e8) 38%, var(--page-bg, #fff)) !important;
    background: color-mix(in srgb, var(--accent, #00e8e8) 16%, var(--page-bg, #fff)) !important;
    color: color-mix(in srgb, var(--accent, #00e8e8) 48%, var(--ink, #111827)) !important;
}

.site-shell .site-cart-page :is(.cart-continue-shopping-btn, form.cart-promo-code-section input.cart-promo-code-btn):hover {
    border-color: var(--brand, #0069b2) !important;
    background: var(--brand, #0069b2) !important;
    color: var(--brand-contrast, #fff) !important;
}

.site-shell .site-cart-page form.cart-promo-code-section input.cart-promo-code-input:focus {
    border-color: var(--brand, #0069b2) !important;
    outline-color: color-mix(in srgb, var(--brand, #0069b2) 18%, transparent) !important;
}

.site-shell .site-catalog-price-selection {
    background: color-mix(in srgb, var(--brand, #0069b2) 34%, var(--page-bg, #fff)) !important;
}

.site-shell .site-catalog-page form.site-catalog-filter-form .site-catalog-price-slider input[type="range"]::-webkit-slider-thumb {
    background: var(--brand, #0069b2) !important;
}

.site-shell .site-catalog-page form.site-catalog-filter-form .site-catalog-price-slider input[type="range"]::-moz-range-thumb {
    background: var(--brand, #0069b2) !important;
}

.site-shell .site-checkout-page :is(.co-register-link-text, .co-forgot-password, .co-terms-link, .co-summary-title) {
    color: var(--brand, #0069b2) !important;
}

.site-shell .site-checkout-page .co-progress-step.co-active .co-step-number {
    background: color-mix(in srgb, var(--brand, #0069b2) 14%, var(--page-bg, #fff)) !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell .site-checkout-page .co-progress-step.co-completed .co-step-number,
.site-shell .site-checkout-page form.site-checkout-login-form input.co-btn-submit,
.site-shell .site-auth-page .co-btn-submit {
    border-color: var(--brand, #0069b2) !important;
    background: var(--brand, #0069b2) !important;
    color: var(--brand-contrast, #fff) !important;
}

.site-shell .site-checkout-page form.site-checkout-login-form input.co-btn-submit:hover,
.site-shell .site-auth-page .co-btn-submit:hover {
    background: color-mix(in srgb, var(--brand, #0069b2) 82%, #000) !important;
    color: var(--brand-contrast, #fff) !important;
}

.site-shell .site-customer-type-option:has(.site-customer-type-radio:checked) {
    border-color: var(--brand, #0069b2);
    background: color-mix(in srgb, var(--brand, #0069b2) 8%, var(--page-bg, #fff));
    color: var(--brand, #0069b2);
}

.site-shell .site-auth-page .co-register-link-text,
.site-shell .site-auth-page .co-forgot-password,
.site-shell .site-auth-page .site-auth-checkbox a {
    color: var(--brand, #0069b2) !important;
    text-decoration-color: color-mix(in srgb, var(--brand, #0069b2) 48%, transparent);
    text-underline-offset: 3px;
}

.site-shell .site-auth-page .co-form-input {
    color: var(--ink, #111827);
    font-family: var(--site-font-family, system-ui), Arial, sans-serif !important;
}

.site-shell .site-auth-page .co-form-input:focus {
    border-color: var(--brand, #0069b2) !important;
    outline: 0;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, #0069b2) 12%, transparent);
}

.site-shell .site-auth-page .co-social-btn {
    border: 1px solid color-mix(in srgb, var(--brand, #0069b2) 18%, #dfe3e8);
    background: color-mix(in srgb, var(--brand, #0069b2) 8%, var(--page-bg, #fff)) !important;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.site-shell .site-auth-page .co-social-btn:hover,
.site-shell .site-auth-page .co-social-btn:focus-visible {
    border-color: var(--brand, #0069b2);
    background: color-mix(in srgb, var(--brand, #0069b2) 14%, var(--page-bg, #fff)) !important;
    transform: translateY(-1px);
}

.site-shell .site-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.site-shell .site-register-grid .site-form-full {
    grid-column: 1 / -1;
}

.site-shell .site-register-grid .co-form-input {
    width: 100%;
}

.site-shell .site-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: color-mix(in srgb, var(--ink, #111827) 76%, var(--page-bg, #fff));
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.site-shell .site-auth-checkbox input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex: 0 0 18px;
    margin-top: 1px;
    accent-color: var(--brand, #0069b2);
}

.site-shell .site-auth-status-page {
    display: grid;
    min-height: 66vh;
    place-items: center;
    padding: clamp(48px, 8vw, 110px) 20px;
}

.site-shell .site-auth-status {
    width: min(100%, 680px);
    border: 1px solid color-mix(in srgb, var(--brand, #0069b2) 12%, #e5e7eb);
    border-radius: var(--radius, 18px);
    background: var(--page-bg, #fff);
    padding: clamp(32px, 6vw, 64px);
    text-align: center;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .09);
}

.site-shell .site-auth-status-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand, #0069b2) 13%, var(--page-bg, #fff));
    color: var(--brand, #0069b2);
    font-size: 30px;
    font-weight: 700;
}

.site-shell .site-auth-status h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 42px);
}

.site-shell .site-auth-status p {
    margin: 0 auto 26px;
    color: color-mix(in srgb, var(--ink, #111827) 72%, var(--page-bg, #fff));
}


/* Account and learning surfaces inherit the active storefront palette. */
.site-shell .site-account-user .site-account-points {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 24%, var(--page-bg, #fff)) !important;
}

.site-shell .site-account-points-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand, #0069b2) 10%, var(--page-bg, #fff));
    color: var(--brand, #0069b2);
    font-size: 22px;
}

.site-shell .site-account-user .site-account-avatar {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 16%, var(--page-bg, #fff)) !important;
    background: color-mix(in srgb, var(--brand, #0069b2) 9%, var(--page-bg, #fff));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand, #0069b2) 16%, transparent);
}

.site-shell .site-account-avatar-initials {
    background: color-mix(in srgb, var(--brand, #0069b2) 12%, var(--page-bg, #fff));
    color: var(--brand, #0069b2);
}

.site-shell .site-account-user-meta-icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    color: var(--brand, #0069b2);
    font-size: 17px;
}

.site-shell .site-account-sidebar :is(.site-account-navigation a, .site-account-sidebar-footer a, .site-account-sidebar-footer button):is(:hover, .is-active) {
    background: color-mix(in srgb, var(--brand, #0069b2) 8%, var(--page-bg, #fff)) !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell .site-account-nav-icon {
    display: inline-grid;
    place-items: center;
    color: inherit;
    font-size: 18px;
}

.site-shell .site-account-sidebar .site-account-navigation a:is(:hover, .is-active) .site-account-nav-icon,
.site-shell .site-account-sidebar-footer :is(a, button):hover .site-account-nav-icon {
    color: var(--brand, #0069b2) !important;
}

.site-shell :is(
    .site-account-external-icon,
    .site-account-section-head span,
    .site-account-section-head > a,
    .site-account-library-type,
    .site-account-library-body h3 a:hover,
    .site-account-order-top > div strong
) {
    color: var(--brand, #0069b2);
}

.site-shell .pf-course-pin-button {
    color: var(--brand, #0069b2);
}

.site-shell .pf-course-pin-button:is(:hover, :focus-visible) {
    background: color-mix(in srgb, var(--brand, #0069b2) 9%, var(--page-bg, #fff));
}

.site-shell .pf-course-pin-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: currentColor;
    font-size: 17px;
    opacity: .58;
    transform: rotate(-18deg);
    transition: opacity .18s ease, transform .18s ease;
}

.site-shell .pf-course-pin-button.is-favorite .pf-course-pin-icon {
    opacity: 1;
    transform: rotate(0);
}

.site-shell .pf-course-meta-icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    color: var(--brand, #0069b2);
    font-size: 17px;
}

.site-shell .pf-course-progress-bar.is-blue :is(.pf-course-progress-fill, .pf-course-progress-dot),
.site-shell .pf-course-progress-bar:not(.is-red, .is-yellow, .is-green) :is(.pf-course-progress-fill, .pf-course-progress-dot) {
    stroke: var(--brand, #0069b2);
    fill: var(--brand, #0069b2);
}

.site-shell .pf-course-progress-bar.is-blue .pf-course-progress-empty,
.site-shell .pf-course-progress-bar:not(.is-red, .is-yellow, .is-green) .pf-course-progress-empty {
    stroke: color-mix(in srgb, var(--brand, #0069b2) 22%, var(--page-bg, #fff));
}

.site-shell :is(.pf-course-arrow-btn, .site-account-card-arrow, .site-account-primary-button, .site-account-download-button) {
    background: color-mix(in srgb, var(--brand, #0069b2) 14%, var(--page-bg, #fff)) !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell :is(.pf-course-arrow-btn, .site-account-card-arrow, .site-account-primary-button, .site-account-download-button):hover {
    background: var(--brand, #0069b2) !important;
    color: var(--brand-contrast, #fff) !important;
}

.site-shell :is(.site-account-filters a:hover, .site-account-filters a.is-active) {
    border-color: var(--brand, #0069b2);
    background: var(--brand, #0069b2);
    color: var(--brand-contrast, #fff);
}

.site-shell :is(.site-account-empty, .site-account-favorites-empty) {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 24%, var(--page-bg, #fff));
    background: color-mix(in srgb, var(--brand, #0069b2) 7%, var(--page-bg, #fff));
}

/* Course and purchased-product pages live outside .site-detail, so scope their
   hero and tabs explicitly instead of allowing the legacy blue bundle to win. */
.site-shell[data-site-hero-style="soft"].course-preview-page .site-learning-detail-hero {
    background: linear-gradient(
        105deg,
        color-mix(in srgb, var(--brand, #0069b2) 11%, var(--page-bg, #fff)),
        color-mix(in srgb, var(--accent, #00e8e8) 14%, var(--page-bg, #fff))
    ) !important;
    opacity: 1;
}

.site-shell[data-site-hero-style="brand"].course-preview-page .site-learning-detail-hero {
    background: var(--brand, #0069b2) !important;
    opacity: 1;
}

.site-shell[data-site-hero-style="gradient"].course-preview-page .site-learning-detail-hero {
    background: linear-gradient(120deg, var(--brand, #0069b2), var(--accent, #00e8e8)) !important;
    opacity: 1;
}

.site-shell.course-preview-page .site-learning-detail-hero :is(.dc-hero-bg, .de-hero-bg) {
    background: transparent !important;
    opacity: 0;
}

@media (min-width: 1401px) {
    .site-shell.course-preview-page .site-learning-detail-hero.de-hero-gradient {
        padding-left: clamp(56px, 5vw, 88px);
    }
}

.site-shell:is([data-site-hero-style="brand"], [data-site-hero-style="gradient"]).course-preview-page .site-learning-detail-hero :is(.de-hero-title, .de-hero-description) {
    color: var(--brand-contrast, #fff) !important;
}

.site-shell.course-preview-page .tabs .tab.active {
    color: var(--brand, #0069b2) !important;
}

.site-shell.course-preview-page .tabs::after {
    background: var(--brand, #0069b2) !important;
}

.site-shell.course-preview-page .tabs .tab:focus-visible {
    outline-color: color-mix(in srgb, var(--brand, #0069b2) 45%, transparent);
}

.site-shell.course-preview-page .de-sidebar-icon,
.site-shell.course-preview-page .de-sidebar-item-header > i {
    color: var(--brand, #0069b2) !important;
}

.site-shell.course-preview-page .de-progress-segment.de-filled,
.site-shell.course-preview-page .de-progress-dot {
    background: var(--brand, #0069b2) !important;
}

.site-shell.course-preview-page .de-progress-segment.de-empty {
    background: color-mix(in srgb, var(--brand, #0069b2) 22%, var(--page-bg, #fff)) !important;
}

.site-shell.course-preview-page .site-learning-information-tab .dc-learning-grid,
.site-shell.course-preview-page .site-learning-my-review,
.site-shell.course-preview-page .site-detail-empty,
.site-shell.course-preview-page .site-detail .dc-reviews-header {
    background: color-mix(in srgb, var(--brand, #0069b2) 7%, var(--page-bg, #fff)) !important;
}

.site-shell.course-preview-page .pf-download-btn,
.site-shell.course-preview-page .de-write-review-btn {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 20%, var(--page-bg, #fff)) !important;
    background: color-mix(in srgb, var(--brand, #0069b2) 13%, var(--page-bg, #fff)) !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell.course-preview-page :is(.pf-download-btn, .de-write-review-btn):hover {
    background: var(--brand, #0069b2) !important;
    color: var(--brand-contrast, #fff) !important;
}

.site-shell.course-preview-page .pf-download-btn i {
    color: currentColor;
    font-size: 15px;
}

.site-shell .site-rating-star:not(.is-muted),
.site-shell .rating-stars i.active,
.site-shell .verified-review-stars span.active,
.site-shell .account-detail-reviews .site-rating-star:not(.is-muted),
.site-shell .site-detail .dc-review-rating .site-rating-star:not(.is-muted) {
    color: var(--accent, #ffb800) !important;
}

.site-shell .site-detail .dc-rating-bar-progress::-webkit-progress-value {
    background: var(--brand, #0069b2) !important;
}

.site-shell .site-detail .dc-rating-bar-progress::-moz-progress-bar {
    background: var(--brand, #0069b2) !important;
}

.site-shell .dc-recommendation-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: var(--brand, #0069b2);
    font-size: 25px;
}

.site-shell .site-review-carousel .dc-review-quote,
.site-shell .account-detail-reviews .dc-review-quote,
.site-shell .site-detail .dc-review-quote {
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--brand, #0069b2) 24%, var(--page-bg, #fff));
    font-size: 34px;
}

.site-shell .site-card-carousel :is(.site-card-carousel-prev, .site-card-carousel-next) {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 18%, #dfe3e8);
    background: var(--page-bg, #fff);
    color: var(--brand, #0069b2) !important;
}

.site-shell .dots-container .dot.active {
    background: var(--brand, #0069b2) !important;
    box-shadow: 0 0 8px color-mix(in srgb, var(--brand, #0069b2) 38%, transparent) !important;
}

.site-shell .pf-social-link {
    color: var(--brand, #0069b2);
}


.site-shell :is(.site-auth-primary-link, .site-auth-secondary-button) {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: var(--button-radius, 12px);
    padding: 10px 22px;
    font-weight: 650;
}

.site-shell .site-auth-primary-link {
    border: 1px solid var(--brand, #0069b2);
    background: var(--brand, #0069b2);
    color: var(--brand-contrast, #fff);
}

.site-shell .site-auth-resend {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.site-shell .site-auth-secondary-button {
    border: 1px solid var(--brand, #0069b2);
    background: transparent;
    color: var(--brand, #0069b2);
    cursor: pointer;
}

.site-shell .site-auth-secondary-button:disabled {
    border-color: #d1d5db;
    color: #8a9099;
    cursor: wait;
}

.site-theme-builder-header {
    position: relative;
    z-index: 2000;
    overflow: visible;
}

.site-theme-builder-header :is(.builder-section, .builder-column, .builder-element) {
    overflow: visible;
}

/* The builder controls how its header meets the first page section. */
:is(.site-theme-builder-header, [data-canvas-header]) .builder-element[data-builder-type="site_header"] > .sentioo-site-header {
    border-bottom: 0;
    box-shadow: none;
}

/* Legacy profile/contact artwork follows the configured site palette. */
.site-shell .builder-element[data-builder-type="contact"] .builder-contact::before,
.site-shell .builder-element[data-builder-type="about_lector"] .ip-hero-bg {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--brand, #0069b2) 16%, transparent),
        color-mix(in srgb, var(--accent, #00e8e8) 14%, transparent)
    );
}

.site-shell .builder-element[data-builder-type="contact"] .builder-contact::after {
    background: var(--accent, #00e8e8);
}

.site-shell .builder-element[data-builder-type="contact"] .builder-contact-method {
    background: var(--page-bg, #fff);
    color: var(--ink, #111827);
}

.site-shell .builder-element[data-builder-type="contact"] .builder-contact-method-icon {
    background: color-mix(in srgb, var(--brand, #0069b2) 12%, var(--page-bg, #fff));
    color: var(--brand, #0069b2);
}

.site-shell .builder-element[data-builder-type="contact"] .builder-contact-method:nth-child(2) .builder-contact-method-icon {
    background: color-mix(in srgb, var(--accent, #00e8e8) 14%, var(--page-bg, #fff));
    color: color-mix(in srgb, var(--accent, #00e8e8) 62%, var(--ink, #111827));
}

.site-shell .builder-element[data-builder-type="contact"] .builder-contact-method :is(h3, p),
.site-shell .builder-element[data-builder-type="contact"] .builder-contact > h2,
.site-shell .builder-element[data-builder-type="about_lector"] > .builder-about-lector > h2,
.site-shell .builder-element[data-builder-type="about_lector"] :is(.ip-lektor-name, .ip-lektor-title, .builder-about-lector-bio) {
    color: inherit;
}

.site-shell .builder-element[data-builder-type="contact"] .builder-contact-method p,
.site-shell .builder-element[data-builder-type="about_lector"] :is(.ip-lektor-title, .builder-about-lector-bio) {
    opacity: .76;
}

.site-shell .builder-element[data-builder-type="about_lector"] .ip-lektor-avatar::before {
    background: color-mix(in srgb, var(--brand, #0069b2) 10%, transparent);
}

.site-shell .builder-element[data-builder-type="about_lector"] :is(.ip-lektor-avatar-img, .builder-about-lector-placeholder) {
    background: var(--page-bg, #fff);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--brand, #0069b2) 18%, transparent);
}

/* A user-selected element background is authoritative, without a fixed overlay. */
.site-shell .builder-element.has-custom-background[data-builder-type="contact"] .builder-contact::before,
.site-shell .builder-element.has-custom-background[data-builder-type="about_lector"] .ip-hero-bg {
    background: none;
    opacity: 0;
}

.site-shell .builder-about-lector .ip-social-link {
    background: color-mix(in srgb, var(--brand, #0069b2) 10%, var(--page-bg, #fff));
    color: var(--brand, #0069b2);
}

.site-shell .builder-about-lector .ip-social-link:hover {
    background: color-mix(in srgb, var(--brand, #0069b2) 18%, var(--page-bg, #fff));
}

.site-social-icon {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    color: currentColor;
    font-size: 19px;
    line-height: 1;
}

/* P22–P24: system icons share one recolorable Font Awesome language. */
.site-shell .site-cart-icon-button,
.site-shell .pf-user-profile-link,
.site-shell .pf-search-icon,
.site-shell .sentioo-submenu-toggle {
    color: var(--ink, #111827);
}

.site-shell :is(.site-cart-icon-button, .pf-user-profile-link, .pf-search-icon, .sentioo-submenu-toggle):hover {
    color: var(--brand, #0069b2);
}

.site-shell .site-header-icon,
.site-shell .dc-detail-icon,
.site-shell .dc-cart-modal-check-icon,
.site-shell .cart-promo-check-icon,
.site-shell .de-write-review-btn > i {
    color: currentColor;
}

.site-shell .site-detail .dc-detail-icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    color: var(--brand, #0069b2);
    font-size: 20px;
    line-height: 1;
}

.site-shell .site-detail .dc-lesson-info .dc-detail-icon { font-size: 17px; }
.site-shell .site-detail .de-write-review-btn > i { flex: 0 0 16px; font-size: 15px; }

.site-shell .dc-cart-modal-check-icon,
.site-shell .site-cart-promo-applied .cart-promo-check-icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    color: var(--brand, #0069b2);
    font-size: 22px;
}

.site-shell .site-account-stat-icon > i { font-size: 24px; line-height: 1; }
.site-shell .site-account-stat-icon:is(.is-green, .is-purple) {
    background: color-mix(in srgb, var(--brand, #0069b2) 13%, var(--page-bg, #fff));
    color: var(--brand, #0069b2);
}
.site-shell .site-account-stat-icon:is(.is-blue, .is-yellow) {
    background: color-mix(in srgb, var(--accent, #00e8e8) 18%, var(--page-bg, #fff));
    color: color-mix(in srgb, var(--accent, #00e8e8) 68%, var(--ink, #111827));
}

.site-shell :is(.builder-icon, .builder-icon-list, .builder-icon-box, .builder-socials) i,
.site-shell .builder-benefit-icon:not(:has(img)) {
    color: currentColor;
}
.site-shell .builder-benefit-icon:not(:has(img)) { color: var(--brand, #0069b2); }
.site-shell .builder-rating > span { color: var(--accent, #ffb800); letter-spacing: 0; }
.site-shell .builder-rating > span i + i { margin-left: 4px; }

.site-shell .builder-element[data-builder-type="faq"] .builder-faq details {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 16%, var(--page-bg, #fff));
    background: var(--page-bg, #fff);
}
.site-shell .builder-element[data-builder-type="faq"] .builder-faq details:hover {
    background: color-mix(in srgb, var(--brand, #0069b2) 5%, var(--page-bg, #fff));
}
.site-shell .builder-element[data-builder-type="faq"] .builder-faq details[open] {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 34%, var(--page-bg, #fff));
}
.site-shell .builder-element[data-builder-type="faq"] .builder-faq summary { color: inherit; }
.site-shell .builder-element[data-builder-type="faq"] .builder-faq .chevron {
    color: currentColor;
    opacity: .62;
}
.site-shell .builder-element[data-builder-type="faq"] .builder-faq details[open] :is(.question-title, .chevron) {
    color: var(--brand, #0069b2);
    opacity: 1;
}
.site-shell .builder-element[data-builder-type="faq"] .builder-faq .builder-faq-answer {
    color: inherit;
    opacity: .76;
}

.site-shell .builder-element.has-custom-background[data-builder-type="site_header"] > .sentioo-site-header :is(.pf-search-icon, .site-header-icon, .site-cart-icon-button) {
    color: inherit;
}

/* Remaining public and account surfaces must not fall back to the legacy blue
   palette. Keep these rules after the custom-header inheritance rule above. */
.site-shell .sentioo-site-header .site-cart-icon-button {
    background: var(--page-bg, #fff) !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell .sentioo-site-header .site-cart-icon-button:hover {
    background: color-mix(in srgb, var(--brand, #0069b2) 10%, var(--page-bg, #fff)) !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell .sentioo-site-header .site-cart-badge {
    border-color: var(--page-bg, #fff) !important;
    background: var(--brand, #0069b2) !important;
    color: var(--brand-contrast, #fff) !important;
}

.site-shell .site-account-filters a:is(:hover, .is-active) span {
    background: color-mix(in srgb, var(--brand-contrast, #fff) 88%, transparent) !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell .builder-form-stage::before {
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--brand, #0069b2) 16%, transparent),
        color-mix(in srgb, var(--accent, #00e8e8) 14%, transparent)
    );
}

.site-shell .builder-form-card {
    background: var(--page-bg, #fff);
    color: var(--ink, #111827);
}

.site-shell .builder-form-card > h2,
.site-shell .builder-form-card .site-form-field label,
.site-shell .builder-form-card .site-form-consent {
    color: inherit;
}

.site-shell .builder-form-card .site-public-form .form-control {
    border-color: color-mix(in srgb, var(--ink, #111827) 15%, var(--page-bg, #fff));
    background: var(--page-bg, #fff);
    color: var(--ink, #111827);
}

.site-shell .builder-form-card .site-public-form .form-control:focus {
    border-color: var(--brand, #0069b2);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, #0069b2) 12%, transparent);
}

.site-shell .builder-element.has-custom-background[data-builder-type="form"] .builder-form-stage::before {
    background: none;
    opacity: 0;
}

.site-shell .builder-stats .stat-box {
    border: 1px solid color-mix(in srgb, var(--brand, #0069b2) 10%, var(--page-bg, #fff));
    background: var(--page-bg, #fff);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--ink, #111827) 10%, transparent);
}

.site-shell .builder-stats .stat-number {
    color: var(--brand, #0069b2);
}

.site-shell .builder-stats .stat-label {
    color: color-mix(in srgb, var(--ink, #111827) 74%, var(--page-bg, #fff));
}

.site-shell .builder-about-lector .ip-social-link {
    background: color-mix(in srgb, var(--brand, #0069b2) 10%, var(--page-bg, #fff)) !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell .builder-about-lector .ip-social-link:hover {
    background: color-mix(in srgb, var(--brand, #0069b2) 18%, var(--page-bg, #fff)) !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell .builder-about-lector .ip-social-link > i {
    color: currentColor !important;
}

.site-shell .sentioo-site-header .pf-search-icon {
    color: var(--brand, #0069b2) !important;
}

.site-shell .sentioo-site-header .pf-user-profile-link .site-header-icon,
.site-shell .sentioo-site-header .pf-icon-btn-alt {
    background: var(--page-bg, #fff);
    color: var(--brand, #0069b2) !important;
}

.site-shell .sentioo-site-header .pf-user-profile-link:hover .site-header-icon,
.site-shell .sentioo-site-header .pf-icon-btn-alt:hover,
.site-shell .sentioo-site-header .pf-icon-btn-alt[open] {
    background: color-mix(in srgb, var(--brand, #0069b2) 10%, var(--page-bg, #fff));
    color: var(--brand, #0069b2) !important;
}

.site-shell .sentioo-site-header :is(.site-language-options, .site-currency-options) {
    border-color: color-mix(in srgb, var(--brand, #0069b2) 18%, var(--page-bg, #fff));
    background: var(--page-bg, #fff);
}

.site-shell .sentioo-site-header :is(.site-language-options, .site-currency-options) :is(a, button):is(:hover, .is-active) {
    background: color-mix(in srgb, var(--brand, #0069b2) 9%, var(--page-bg, #fff));
    color: var(--brand, #0069b2);
}

.site-shell .site-detail :is(.dc-tag-pill, .tag-pill) {
    border-color: var(--brand, #0069b2) !important;
    background: transparent !important;
    color: var(--brand, #0069b2) !important;
}

.site-shell .site-detail :is(.dc-tag-pill, .tag-pill):is(:hover, :focus-visible) {
    border-color: var(--brand, #0069b2) !important;
    background: var(--brand, #0069b2) !important;
    color: var(--brand-contrast, #fff) !important;
}

.site-system-content-layout {
    display: grid;
    width: min(calc(100% - 48px), 1880px);
    align-items: start;
    margin-inline: auto;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 48px);
}

.site-system-content-layout.is-right {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.site-system-content-main,
.site-system-content-slot {
    min-width: 0;
}

.site-system-catalog-column {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: clamp(16px, 2vw, 28px);
}

.site-system-content-slot:is(.is-left, .is-right, .is-left-before, .is-left-after, .is-right-before, .is-right-after) .builder-section > .wrap {
    width: 100%;
}

.site-cart-page .cart-sidebar,
.site-checkout-page .co-left-side,
.site-checkout-page .co-summary-column {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 1180px) {
    .site-system-content-layout,
    .site-system-content-layout.is-right {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

@media (max-width: 700px) {
    .site-shell .site-register-grid {
        grid-template-columns: 1fr;
    }

    .site-shell .site-register-grid .site-form-full {
        grid-column: 1;
    }
}
