/* Canay Face Spa: supplied September 2026 palette and original logo artwork. */
.header-fixed,
.header-nav { background: var(--cy-bg-soft) !important; }
.header-top-bar { background: var(--cy-button) !important; }
.header-nav .navbar-brand.logo { width: clamp(220px, 19vw, 310px) !important; height: auto !important; }
.header-nav .navbar-brand.logo img { width: 100% !important; height: auto !important; max-width: 100% !important; }
.menu-header .menu-logo img { width: 220px; height: auto; max-width: 100%; }
.cy-login__logo img,
.cy-auth__logo img { width: min(330px, 100%) !important; height: auto !important; max-height: none !important; }
.cy-footer .cy-footer-brand { width: 180px; height: 180px; top: 70px; padding: 28px; box-sizing: border-box; justify-content: center; border-radius: 50%; background: var(--cy-bg-soft); }
.cy-footer .cy-footer-brand-img { height: 100%; width: 100%; object-fit: contain; border-radius: 0; }
/* Keep the full wordmark visible when the logo substitutes for a teacher photo. */
.cy-card__teacher img.cx-teacher-logo,
.cy-library-card__teacher img.cx-teacher-logo { box-sizing: border-box; padding: 6px; object-fit: contain; }
.cy-video-detail__teacher img.cx-teacher-logo,
.cy-detail-teacher-img img.cx-teacher-logo { box-sizing: border-box; padding: 9px; object-fit: contain; }
.cy-footer-contact .cx-contact-note { display: block; margin: -14px 0 24px 0; color: #E9E1D6 !important; font-size: 13px; }
.cy-footer-contact .cx-venue { margin-top: 24px; }
.cy-footer-contact .cx-venue h3 { margin-bottom: 12px; font-size: 17px; }
.cy-footer-contact .cx-venue a { display: block; margin-top: 10px; line-height: 1.65; }
.cy-footer-contact .cx-venue p { margin: 8px 0 0; font-size: 13px; }
.cy-privacy-modal__content .cy-legal__table-wrap { width: 100%; max-width: 100%; margin: 22px 0; overflow-x: auto; border: 1px solid var(--cy-line); border-radius: 12px; }
.cy-privacy-modal__content .cy-legal__table-wrap:focus-visible { outline: 2px solid var(--cy-button); outline-offset: 3px; }
.cy-privacy-modal__content table { width: 100%; margin: 18px 0; border-collapse: collapse; text-align: left; }
.cy-privacy-modal__content .cy-legal__table-wrap table { min-width: 520px; margin: 0; }
.cy-privacy-modal__content th,
.cy-privacy-modal__content td { padding: 14px 16px; border: 1px solid var(--cy-line); vertical-align: top; font-size: 14px; line-height: 1.75; overflow-wrap: normal; word-break: normal; }
.cy-privacy-modal__content th { background: var(--cy-bg-soft); color: var(--cy-text); font-weight: 700; }
.cy-privacy-modal__content .cy-legal__table-wrap th,
.cy-privacy-modal__content .cy-legal__table-wrap td { border-top: 0; border-left: 0; }
.cy-privacy-modal__content .cy-legal__table-wrap tr > :last-child { border-right: 0; }
.cy-privacy-modal__content .cy-legal__table-wrap tbody tr:last-child td { border-bottom: 0; }
.cy-privacy-modal__content h2,
.cy-privacy-modal__content h3,
.cy-privacy-modal__content h4 { margin: 30px 0 12px; color: var(--cy-text); font-size: 18px; line-height: 1.45; }
.cy-privacy-modal__content ul,
.cy-privacy-modal__content ol { margin: 0 0 20px; padding-left: 24px; }
.cy-privacy-modal__content li { margin: 0 0 8px; }
.cy-privacy-modal__content .cy-legal__meta { margin-bottom: 22px !important; font-size: 13px !important; }
.cy-privacy-modal__content > :last-child { margin-bottom: 0 !important; }
.cy-contact .cy-contact__details h2,
.cy-contact .cy-contact__details small,
.cy-contact .cy-contact__details a:hover { color: #fff !important; }
body .cy-contact .cy-contact__form { background-color: var(--cy-surface) !important; }
.cy-contact .cy-contact__star { color: var(--cy-earth) !important; }
.cy-contact .cy-submit,
.header-nav .header-login-figma { background: var(--cy-button) !important; color: #fff !important; }
.cy-contact .cy-submit:hover,
.header-nav .header-login-figma:hover { background: var(--cy-button-hover) !important; }
.cy-legal .cy-legal__hero { background: var(--cy-button); }
.cy-legal .cy-legal__hero h1,
.cy-legal .cy-legal__hero p { color: #fff !important; }
.cy-legal .cy-legal__nav a[aria-current='page'] { background: var(--cy-bg-soft); color: var(--cy-button); }
.cy-legal .cy-legal__icon { background: var(--cy-bg-soft); color: var(--cy-button); }

/* Apply the shared palette over the legacy styles embedded in each page. */
.cy-products, .cy-faq, .cy-contact, .cy-library, .cy-plist, .cy-llp,
.cy-camps, .cy-camp-detail, .cy-video-detail, .cy-detail-page,
.cy-about-page, .cy-corporate,
.cy-checkout, .cy-acc, .cy-sdetail, .cy-watch, .cy-zoom-join,
.cy-login, .cy-auth {
    background-color: var(--cy-bg) !important;
    color: var(--cy-text);
}
.cy-process, .cy-blog, .cy-blog-related {
    background-color: var(--cy-surface) !important;
}
.cy-card, .cy-library-card, .cy-camp-card, .cy-tabs, .cy-step,
.cy-detail-buy, .cy-review-section, .cy-review-card,
.cy-co-panel, .cy-co-prod, .cy-co-total, .cy-sub-card {
    background-color: var(--cy-surface) !important;
    border-color: var(--cy-line) !important;
}
.cy-card__media, .cy-library-card__media, .cy-camp-card__image {
    background-color: var(--cy-bg-soft) !important;
}

/* Sage supports the main petrol tone; bronze is reserved for accents. */
body .cy-badge, .cy-library__badge, .cy-blog-related-kicker, .cy-corporate-kicker, .cy-about-eyebrow,
.cy-review-section__badge, .cy-detail-sale, .cy-sub-duration {
    background-color: var(--cy-sage-soft) !important;
    color: var(--cy-text) !important;
}
body .cy-accent, .cy-library__accent, .cy-blog-related-line,
.cy-tab.is-active::after {
    background-color: var(--cy-earth) !important;
}
.cy-card__zoom, .cy-card__badge, .cy-library-card__tag, .cy-detail-badge,
.cy-llp__tag {
    background-color: var(--cy-earth) !important;
    color: var(--cy-text) !important;
}
.cy-card__rating .is-filled, .cy-library-card__rating .is-filled,
.cy-card__stars, .cy-program-stars .is-filled, .cy-rating-star.is-active {
    color: var(--cy-earth) !important;
}
.cy-card__discount, .cy-detail-price, .cy-detail-buy-list svg,
.cy-video-detail__tag i, .cy-video-detail__eyebrow, .cy-teacher-kicker,
.cy-teacher-stat i, .cy-teacher-side-block h3 i, .cy-teacher-card__role,
.cy-sub-price, .cy-phone__cc, .cy-tab.is-active {
    color: var(--cy-button) !important;
}
.cy-process__quote { border-left-color: var(--cy-earth) !important; }
.cy-step__icon, .cy-video-detail__content-icon, .cy-teacher-section__icon {
    background-color: var(--cy-sage-tint) !important;
    color: var(--cy-button) !important;
}
.cy-step.cy-step--green {
    background-color: var(--cy-button) !important;
    box-shadow: 0 18px 44px rgba(31, 90, 82, .2);
}
.cy-step--green h3, .cy-step--green p, .cy-step--green .cy-step__icon {
    color: var(--cy-white) !important;
}
.cy-step--green .cy-step__icon { background-color: rgba(233, 225, 214, .18) !important; }

/* Menus and carousel controls retain clear hover and keyboard states. */
.header-top-bar a:hover, .header-top-bar a:focus { color: var(--cy-bg) !important; }
.header-nav .main-nav > li > a { color: var(--cy-text) !important; }
.header-nav .main-nav > li > a:hover,
.header-nav .main-nav > li > a:focus,
.header-nav .main-nav > li.active > a { color: var(--cy-button) !important; }
.header .main-menu-wrapper { background-color: var(--cy-bg) !important; }
.header-nav .main-nav .submenu { background-color: var(--cy-surface) !important; border-color: var(--cy-line) !important; }
.header-nav .main-nav .submenu li a { color: var(--cy-text) !important; }
.header-nav .main-nav .submenu li a:hover,
.header-nav .main-nav .submenu li a:focus { background-color: var(--cy-sage-tint) !important; color: var(--cy-button) !important; }
.header-search { border-color: var(--cy-line) !important; color: var(--cy-button); }
.canay-hero__arrow, .cy-products__nav { background-color: var(--cy-bg) !important; color: var(--cy-button) !important; border-color: var(--cy-line) !important; }
.canay-hero__arrow:hover, .cy-products__nav:hover { background-color: var(--cy-sage-soft) !important; color: var(--cy-text) !important; }
.canay-hero__dots button { background-color: var(--cy-sage-soft) !important; }
.canay-hero__dots button.is-active { background-color: var(--cy-earth) !important; }
.cy-card__select-btn, .cy-card__select-menu { border-color: var(--cy-line) !important; }
.cy-card__select.is-open .cy-card__select-btn,
.cy-card__select.is-open .cy-card__select-menu { border-color: var(--cy-button) !important; }
.cy-card__select-option:hover, .cy-card__select-option:focus,
.cy-phone__option:hover, .cy-phone__option[aria-selected='true'] { background-color: var(--cy-sage-tint) !important; color: var(--cy-text) !important; }
.cy-library__filter { background-color: var(--cy-surface) !important; border-color: var(--cy-line) !important; color: var(--cy-text) !important; }
.cy-library__filter.is-active { background-color: var(--cy-button) !important; border-color: var(--cy-button) !important; color: var(--cy-white) !important; }

/* FAQ questions use a light surface; expanded answers use petrol. */
.cy-faq .cy-faq__item { background-color: var(--cy-surface) !important; border-color: var(--cy-line) !important; }
.cy-faq .cy-faq__item .cy-faq__btn,
.cy-faq .cy-faq__item .cy-faq__btn:hover,
.cy-faq .cy-faq__item .cy-faq__btn:focus { background-color: var(--cy-surface) !important; color: var(--cy-text) !important; }
.cy-faq .cy-faq__q { color: var(--cy-text); }
.cy-faq .cy-faq__num { color: var(--cy-button); }
.cy-faq .cy-faq__toggle, .cy-faq-icon { background-color: var(--cy-button) !important; }
.cy-faq .cy-faq__item.is-open .cy-faq__toggle { background-color: var(--cy-sage-soft) !important; }
.cy-faq-toggle[aria-expanded='true'] .cy-faq-icon { background-color: var(--cy-sage-soft) !important; color: var(--cy-text); }
.cy-faq-question { color: var(--cy-text); }
.cy-faq .cy-faq__item.is-open .cy-faq__toggle::before { background-color: var(--cy-text); }
.cy-faq .cy-faq__body { background-color: var(--cy-button) !important; }

/* Contact and authentication illustrations use the same three brand tones. */
.cy-pill, .cy-lpill { background-color: var(--cy-surface) !important; color: var(--cy-text) !important; }
.cy-pill--1 .cy-pill__n, .cy-lpill--1 .n { background-color: var(--cy-earth) !important; color: var(--cy-text) !important; }
.cy-pill--2 .cy-pill__n, .cy-lpill--2 .n { background-color: var(--cy-sage-soft) !important; color: var(--cy-text) !important; }
.cy-pill--3 .cy-pill__n, .cy-lpill--3 .n { background-color: var(--cy-button) !important; color: var(--cy-white) !important; }
.cy-login__register, .cy-auth__alt { background-color: var(--cy-sage-soft) !important; color: var(--cy-text) !important; }
.cy-login__register:hover, .cy-auth__alt:hover { background-color: var(--cy-bg-soft) !important; color: var(--cy-button) !important; }
.cy-label, .cy-agree, .cy-agree a { color: var(--cy-text) !important; }
.cy-label span { color: var(--cy-button) !important; }

/* Detail pages and actions whose legacy class names predate the shared buttons. */
.cy-detail-buy-btn, .cy-rating-submit, .cy-comment-submit, .cy-co-paybtn,
.cy-co-disc button, .cy-checkout-empty a, .cy-teacher-action, .cy-sub-buy,
.cy-sf__send, .cy-whatsapp-float {
    background-color: var(--cy-button) !important;
    border-color: var(--cy-button) !important;
    color: var(--cy-white) !important;
}
.cy-detail-buy-btn:hover, .cy-rating-submit:hover, .cy-comment-submit:hover,
.cy-co-paybtn:hover, .cy-co-disc button:hover, .cy-checkout-empty a:hover,
.cy-teacher-action:hover, .cy-sub-buy:hover, .cy-sf__send:hover,
.cy-whatsapp-float:hover, .cy-promo-trigger:hover,
.cy-promo-trigger:focus, .cy-promo-trigger:active {
    background-color: var(--cy-button-hover) !important;
    border-color: var(--cy-button-hover) !important;
    color: var(--cy-white) !important;
}
/* Keep course actions readable when Back restores focus to the link. */
.cy-detail-buy-btn:visited,
.cy-detail-buy-btn:focus,
.cy-detail-buy-btn:active,
.cy-card__buy:visited,
.cy-card__buy:focus,
.cy-card__buy:active,
.cy-library-card__button:visited,
.cy-library-card__button:focus,
.cy-library-card__button:active,
.cy-gzl__join:visited,
.cy-gzl__join:hover,
.cy-gzl__join:focus,
.cy-gzl__join:active {
    color: var(--cy-white) !important;
}
.cy-whatsapp-float .cy-whatsapp-float__icon { color: var(--cy-white) !important; }
.cy-library .cy-library-card .cy-library-card__button--info, .cy-sub-info {
    background-color: transparent !important;
    border-color: var(--cy-button) !important;
    color: var(--cy-button) !important;
}
.cy-library .cy-library-card .cy-library-card__button--info:hover, .cy-sub-info:hover {
    background-color: var(--cy-sage-tint) !important;
    color: var(--cy-button) !important;
}
.cy-co-tab.is-active, .cy-co-tab.active { border-color: var(--cy-button) !important; color: var(--cy-button) !important; background-color: var(--cy-sage-tint) !important; box-shadow: 0 0 0 1px var(--cy-button) inset; }
.cy-card .cy-card__buy.is-disabled, .cy-detail-buy-btn.is-disabled {
    background-color: var(--cy-sage-soft) !important;
    border-color: var(--cy-sage-soft) !important;
    color: var(--cy-text) !important;
}
.cy-detail-poster { background: linear-gradient(120deg, var(--cy-text), var(--cy-button)) !important; }
.cy-detail-poster::before { background: radial-gradient(circle at 10% 82%, rgba(183, 154, 107, .45), transparent 16%), linear-gradient(90deg, rgba(35, 37, 34, .8), rgba(35, 37, 34, .5) 47%, transparent 70%) !important; }
.cy-detail-poster :is(h2, h3, p) { color: var(--cy-white) !important; }
.cy-detail-poster-content strong { color: var(--cy-bg) !important; }

/* Member navigation and playback controls use the primary selection colour. */
.cy-acc__user, .cy-acc__menu, .cy-acc__content { background-color: var(--cy-surface) !important; border-color: var(--cy-line) !important; }
.cy-acc__menu a:hover, .cy-watch__lesson:hover, .cy-watch__lesson.is-active { background-color: var(--cy-sage-tint) !important; }
.cy-acc__menu a.is-active, .cy-acc__menu a.is-active:hover,
.cy-payment-pages .is-active, .cy-watch__lesson.is-active .cy-watch__lesson-num {
    background-color: var(--cy-button) !important;
    color: var(--cy-white) !important;
    border-color: var(--cy-button) !important;
}
.cy-watch__lesson-num, .cy-watch__empty-player i { color: var(--cy-button) !important; border-color: var(--cy-sage-soft) !important; }
.cy-watch__control-btn--main { background-color: var(--cy-button) !important; border-color: var(--cy-button) !important; }
.cy-watch__control-btn--main:hover { background-color: var(--cy-button-hover) !important; }
.cy-watch__volume { accent-color: var(--cy-sage-soft); }
.cy-accf__phone:focus-within, .cy-location-dropdown.is-open .cy-location-toggle {
    border-color: var(--cy-button) !important;
    box-shadow: 0 0 0 3px rgba(var(--cy-primary-rgb), .16) !important;
}

/* About panels keep readable text on their coloured backgrounds. */
body .cy-about-page, body .cy-corporate {
    --cy-green: var(--cy-button);
    --cy-dark: var(--cy-text);
    --cy-deep: var(--cy-text);
    --cy-muted: var(--cy-text-muted);
    --cy-line: #D6CEC2;
    --cy-soft: var(--cy-bg-soft);
}
.cy-about-mv-panel:first-child, .cy-about-mv__mission { background-color: var(--cy-button) !important; }
.cy-about-mv-panel:first-child :is(h2, h3, p, i),
.cy-about-mv__mission :is(h2, h3, p, .cy-about-mv__icon) { color: var(--cy-white) !important; opacity: 1; }
.cy-about-mv-panel:last-child, .cy-about-mv__vision { background-color: var(--cy-sage-soft) !important; color: var(--cy-text) !important; }
.cy-about-mv-panel:last-child :is(h2, h3, p),
.cy-about-mv__vision :is(h2, h3, p, .cy-about-mv__icon) { color: var(--cy-text) !important; opacity: 1; }
.cy-about-mv__badge { background-color: var(--cy-earth) !important; color: var(--cy-text) !important; box-shadow: 0 18px 40px rgba(35, 37, 34, .15); }
.cy-about-hero-media::after { background: linear-gradient(0deg, rgba(35, 37, 34, .2), rgba(35, 37, 34, .2)), linear-gradient(90deg, rgba(var(--cy-primary-rgb), .7), rgba(var(--cy-primary-rgb), 0)) !important; }
.cy-corporate-cta :is(h2, p) { color: var(--cy-white) !important; }
.cy-blog-share-label { background-color: var(--cy-button) !important; color: var(--cy-white) !important; }
.cy-blog-share-label::before { border-right-color: var(--cy-button) !important; }

/* Consistent keyboard focus and selected states across the palette. */
a:focus-visible, button:focus-visible { outline: 2px solid var(--cy-button); outline-offset: 4px; }
.cy-footer :is(a, button):focus-visible, .header-top-bar a:focus-visible { outline-color: var(--cy-earth); }
.page-item.active .page-link { color: var(--cy-white) !important; }
.cy-footer .cy-privacy-check input:checked::after { border-color: var(--cy-text); }

/* Keep the longer contact and legal copy in normal flow at every viewport. */
.cy-footer { min-height: 0; }
.cy-footer .cy-footer-inner { width: min(1200px, calc(100% - 64px)); }
.cy-footer .cy-footer-newsletter { min-height: 0; padding: 48px 0; }
.cy-footer .cy-newsletter-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; }
.cy-footer .cy-footer-brand { position: static; margin: 0 auto; }
.cy-footer .cy-newsletter-panel { grid-column: auto; min-width: 0; }
.cy-footer .cy-newsletter-panel h2 { position: static; width: auto; height: auto; margin: 0 0 24px; line-height: 1.3; }
.cy-footer .cy-newsletter-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px; gap: 16px; }
.cy-footer .cy-newsletter-form .cy-newsletter-email,
.cy-footer .cy-newsletter-form input[type='tel'],
.cy-footer .cy-newsletter-form button,
.cy-footer .cy-privacy-check { position: static; width: 100%; height: auto; min-width: 0; }
.cy-footer .cy-newsletter-form .cy-newsletter-email,
.cy-footer .cy-newsletter-form input[type='tel'],
.cy-footer .cy-newsletter-form button { height: 58px; padding: 0 18px; }
.cy-footer .cy-newsletter-form button { background: var(--cy-bg-soft); color: var(--cy-button); }
.cy-footer .cy-newsletter-form button:hover { background: #fff; }
.cy-footer .cy-privacy-check { grid-column: 1 / -1; align-items: flex-start; color: #E9E1D6; }
.cy-footer .cy-newsletter-form .cy-newsletter-notice,
.cy-footer .cy-newsletter-form .cy-privacy-check {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    min-width: 0;
    margin: 0;
    color: #E9E1D6;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: break-word;
}
.cy-footer .cy-newsletter-notice a,
.cy-footer .cy-privacy-check a { text-decoration: underline; text-underline-offset: 2px; }
.cy-footer .cy-privacy-check span { min-width: 0; }
.cy-footer .cy-privacy-check input { margin-left: 0; background: #fff; border-color: var(--cy-sage-soft); }
.cy-footer .cy-privacy-check input:checked { background: var(--cy-sage-soft); }
.cy-footer .cy-footer-line { background: var(--cy-earth); height: 1px; flex-basis: 1px; }
.cy-footer .cy-footer-main { padding: 48px 0; }
.cy-footer .cy-footer-columns { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 48px; }
.cy-footer .cy-footer-contact,
.cy-footer .cy-footer-nav { position: static; width: auto; height: auto; margin: 0; padding: 0; text-align: left; }
.cy-footer .cy-footer-nav h3,
.cy-footer .cy-footer-nav a { position: static; width: auto; height: auto; white-space: normal; line-height: 1.6; }
.cy-footer .cy-footer-nav h3 { margin: 0 0 20px; }
.cy-footer .cy-footer-nav a { margin: 0 0 12px; }
.cy-footer .cy-contact-item { margin-bottom: 24px; font-size: 16px; overflow-wrap: anywhere; }
.cy-footer .cy-footer-contact .cy-contact-item,
.cy-footer .cy-contact-item strong,
.cy-footer .cy-footer-contact .cx-venue a,
.cy-footer .cy-footer-contact .cx-venue p {
    font-family: "Poppins", sans-serif;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.65;
}
.cy-footer .cy-contact-item span { width: 44px; height: 44px; flex-basis: 44px; margin-right: 16px; background: rgba(255,255,255,.1); }
.cy-footer .cy-social-list { margin-top: 24px; justify-content: flex-start; }
.cy-footer .cy-social-list a { border-color: var(--cy-sage-soft); }
.cy-footer .cy-footer-bottom { min-height: 80px; flex-basis: auto; padding: 24px 0; }
.cy-privacy-modal__dialog h2 { margin-right: 32px; }
@media (max-width: 1450px) and (min-width: 1281px) {
    .header-nav { gap: 16px; }
    .header-nav .navbar-brand.logo { width: 240px !important; }
    .header-nav .main-nav { gap: 16px !important; }
    .header-search { width: 190px !important; min-width: 160px; }
}
@media (max-width: 991px) {
    .cy-footer .cy-footer-brand { position: static; margin: 0 auto; width: 160px; height: 160px; }
    .cy-footer .cy-newsletter-grid { grid-template-columns: 1fr; gap: 28px; }
    .cy-footer .cy-footer-columns { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cy-footer .cy-footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .header-nav .navbar-brand.logo { width: clamp(155px, 49vw, 240px) !important; }
    .header-nav .navbar-brand.logo img { height: auto !important; }
    .header-top-bar .htb-mail span { font-size: 12px !important; }
    .header-nav { gap: 12px; }
    .cy-footer-contact .cx-contact-note { margin-left: 0; }
    .cy-footer .cy-footer-inner { width: calc(100% - 40px); }
    .cy-footer .cy-newsletter-form,
    .cy-footer .cy-footer-columns { grid-template-columns: 1fr; }
    .cy-footer .cy-footer-nav { margin-top: 0; }
    .cy-footer .cy-footer-bottom-row { align-items: flex-start; gap: 12px; }
}
