/* BCL brand manual, pp. 7-19 and 26-32. Original logo artwork is preserved. */
@font-face {
    font-family: "Cardo";
    src: url("assets/fonts/cardo/Cardo-400-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Cardo";
    src: url("assets/fonts/cardo/Cardo-700-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Use the two unambiguous primary colors. Dark secondary codes await correction. */
:root {
    --bcl-green: #007580;
    --bcl-sunset: #ea6338;
    --bcl-brown: #372720;
    --theme-palette-color-1: var(--bcl-green);
    --theme-palette-color-2: var(--bcl-green);
    --theme-palette-color-3: var(--bcl-brown);
    --theme-palette-color-4: var(--bcl-brown);
    --theme-palette-color-5: #e5e5e5;
    --theme-palette-color-6: #f5f5f5;
    --theme-palette-color-7: #fafafa;
    --theme-palette-color-8: #ffffff;
    --theme-font-family: "Segoe UI", Arial, sans-serif;
    --theme-button-font-family: "Segoe UI", Arial, sans-serif;
    --theme-link-initial-color: var(--bcl-green);
    --theme-link-hover-color: var(--bcl-brown);
    --theme-headings-color: var(--bcl-green);
    --theme-heading-1-color: var(--bcl-green);
    --theme-heading-2-color: var(--bcl-green);
    --theme-button-background-initial-color: var(--bcl-green);
    --theme-button-background-hover-color: var(--bcl-brown);
    --theme-button-text-initial-color: #ffffff;
    --theme-button-text-hover-color: #ffffff;
}
body { font-family: "Segoe UI", Arial, sans-serif; }
#main :is(h1, h2, h3, h4, h5, h6),
#footer .widget-title {
    font-family: "Cardo", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", serif;
    font-kerning: normal;
    font-weight: 700;
    text-align: start;
    text-transform: none;
    letter-spacing: normal;
}
#main :is(p, li, .stk-block-text__text) { text-align: start; }

/* Process cards use distinct service icons rather than repeating the brand logo. */
#main :is(.stk-a137f89, .stk-e4c3ab0, .stk-835cbeb) .stk-img-wrapper {
    width: 56px !important;
    height: 56px !important;
    border-radius: 0;
}
#main .bcl-process-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 0;
}
html[lang="zh-CN"] body {
    --theme-font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* The supplied positive logo is designed for white, not photo backgrounds. */
#header [data-row*="middle"] {
    background: #ffffff !important;
    --height: 126px;
}
#header {
    --header-height: 126px;
    --header-sticky-height: 126px;
}
#header .site-logo-container,
#offcanvas .site-logo-container {
    --logo-max-height: 114px;
    width: 260px;
    min-width: 260px;
}
#header .bcl-brand-logo,
#offcanvas .bcl-brand-logo {
    width: 260px;
    height: auto;
    max-height: none;
    object-fit: contain;
}
#header [data-id="menu"] {
    --menu-indicator-hover-color: transparent;
    --menu-indicator-active-color: transparent;
    --menu-items-spacing: 36px;
}
#header [data-id="menu"] > ul > li > a {
    --theme-link-initial-color: var(--bcl-green);
    --theme-link-hover-color: var(--bcl-brown);
    --theme-link-active-color: var(--bcl-green);
    background-color: transparent;
    text-decoration: none;
}
#header [data-id="menu"] > ul > li > a[aria-current="page"]:not([href*="#"]),
#header [data-id="menu"] > ul > li > a:hover,
#header [data-id="menu"] > ul > li > a:focus-visible {
    text-decoration: underline;
    text-decoration-color: var(--bcl-green);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}
#header [data-id="button"] .ct-button {
    --theme-button-text-initial-color: #ffffff;
    --theme-button-text-hover-color: #ffffff;
    --theme-button-background-initial-color: var(--bcl-green);
    --theme-button-background-hover-color: var(--bcl-brown);
}
#header [data-id="trigger"] {
    --theme-icon-color: var(--bcl-green);
    --theme-icon-hover-color: var(--bcl-brown);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}
#offcanvas .ct-panel-inner { background: #ffffff !important; }
#offcanvas [data-id="mobile-menu"] {
    --theme-link-initial-color: var(--bcl-green);
    --theme-link-hover-color: var(--bcl-brown);
    --theme-link-active-color: var(--bcl-green);
}
#offcanvas {
    background-color: rgb(0 0 0 / 40%) !important;
    --theme-text-color: var(--bcl-brown);
    --theme-link-initial-color: var(--bcl-green);
    --theme-icon-color: var(--bcl-green);
    --theme-icon-hover-color: var(--bcl-brown);
}
#offcanvas [data-id="text"] { color: var(--bcl-brown); --theme-text-color: var(--bcl-brown); }
#offcanvas .ct-toggle-close { --theme-icon-color: var(--bcl-green); }
#offcanvas [data-id="socials"] [data-color="custom"] {
    --theme-icon-color: var(--bcl-green);
    --theme-icon-hover-color: var(--bcl-brown);
    --background-color: #f5f5f5;
}

/* Retain the full image canvas: its margins contain the logo's clear space. */
@media (max-width: 999.98px) {
    #header .site-logo-container {
        width: 252px;
        min-width: 252px;
        --logo-max-height: 110px;
    }
    #header .bcl-brand-logo { width: 252px; }
    #header [data-row*="middle"] > .ct-container {
        width: calc(100% - 24px);
        grid-template-columns: minmax(0, 1fr) 44px;
    }
    #header [data-device="mobile"] [data-column="start"]:empty { display: none; }
    #header [data-device="mobile"] [data-column="middle"] > [data-items] { justify-content: flex-start; }
}

/* These existing Stackable rules hard-code the former purple outside the palette. */
.stk-80ce3af:before {
    background-image: linear-gradient(180deg, transparent 55%, #007580 55%) !important;
}
.stk-1277b19:before {
    background-image: linear-gradient(180deg, #ffffff 78%, #007580 78%) !important;
}
.stk-fc9c699-container:hover,
.stk-c449828-container:hover,
.stk-f0a9bcb-container:hover,
.stk-67080b5-container:hover,
.stk-a0e5155-container:hover,
.stk-8a90ab0-container:hover {
    box-shadow: 0 20px 40px rgb(0 117 128 / 12%) !important;
}

/* Primary-color backgrounds, clear typography and neutral supporting surfaces. */
#footer [data-row*="middle"] { background: var(--bcl-green); }
#footer [data-row*="bottom"] { background: var(--bcl-brown); }
#footer,
#footer .ct-widget {
    --theme-text-color: #ffffff;
    --theme-link-initial-color: #ffffff;
    --theme-link-hover-color: #ffffff;
    --theme-headings-color: #ffffff;
    --theme-icon-color: #ffffff;
    --theme-icon-hover-color: #ffffff;
}
#footer :is(p, li, span, a, .widget-title) { color: #ffffff; }
#footer a:hover { text-decoration: underline; }
.bcl-presentations {
    background: #fafafa;
    border-color: #e5e5e5;
}
.bcl-presentations h2,
.bcl-presentation-kicker { color: var(--bcl-green); }
.bcl-presentations p { color: var(--bcl-brown); }
.bcl-presentation-actions a {
    color: var(--bcl-green);
    border-color: var(--bcl-green);
}
.bcl-presentation-actions a:first-child {
    color: #ffffff;
    background: var(--bcl-green);
}
.bcl-presentation-actions a:hover {
    color: #ffffff;
    background: var(--bcl-brown);
    border-color: var(--bcl-brown);
}
.bcl-presentation-actions a:focus-visible {
    outline-color: var(--bcl-sunset);
}
.bcl-presentation-cover { box-shadow: 0 12px 30px rgb(0 117 128 / 8%); }

/* Chinese-language contact channel. Preserve the supplied QR pixels and colors. */
.bcl-wechat-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 302px;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    margin: 64px auto;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fafafa;
    box-shadow: 0 10px 30px rgb(0 117 128 / 6%);
    scroll-margin-top: 150px;
}
.bcl-wechat-copy { min-width: 0; }
#main .bcl-wechat-kicker {
    margin: 0 0 12px;
    color: #007580;
    font-size: 14px;
    font-weight: 600;
}
#main .bcl-wechat-card h2 { margin: 0 0 16px; color: #007580; }
.bcl-wechat-copy > p { margin-bottom: 20px; }
.bcl-wechat-instructions { margin: 24px 0; }
.bcl-wechat-instructions p { margin: 0 0 8px; }
.bcl-wechat-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bcl-wechat-actions a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid #007580;
    border-radius: 6px;
    color: #007580;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
.bcl-wechat-actions a:first-child { background: #007580; color: #ffffff; }
.bcl-wechat-actions a:hover { background: #372720; border-color: #372720; color: #ffffff; }
.bcl-wechat-actions a:focus-visible,
.bcl-wechat-image:focus-visible { outline: 3px solid #007580; outline-offset: 4px; }
.bcl-wechat-figure { margin: 0; min-width: 0; text-align: center; }
.bcl-wechat-image {
    display: block;
    width: 302px;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}
.bcl-wechat-qr-window {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ffffff;
}
.bcl-wechat-qr-window img {
    position: absolute;
    width: 121.978021978%;
    max-width: none !important;
    height: auto;
    left: -10.989010989%;
    top: -34.065934066%;
    border-radius: 0;
}
.bcl-wechat-figure figcaption { margin-top: 12px; color: #372720; font-size: 14px; }
@media (max-width: 689.98px) {
    .bcl-wechat-card { grid-template-columns: minmax(0, 1fr); margin: 40px auto; }
    .bcl-wechat-actions { flex-direction: column; }
    .bcl-wechat-actions a { width: 100%; }
}
