/*
Theme Name:   Ekko Hub Child
Theme URI:    https://imekkohub.com
Description:  Astra Child Theme for Ekko Hub (Simplified Chinese & Custom Styles)
Author:       Ekko Hub
Template:     astra
Version:      0.1.4
Text Domain:  ekko-hub-child
*/

/* 简体中文基础排版优化 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 会员受限内容提示卡片 */
.ekko-paywall-notice {
    margin: 24px 0;
    padding: 28px 24px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.ekko-paywall-notice__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.ekko-paywall-notice__desc {
    margin: 0 0 16px;
    font-size: 14px;
    color: #475569;
}

.ekko-paywall-notice__cta {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #075BFF;
    border-radius: 5px;
    background: #075BFF;
    color: #ffffff !important;
    font-weight: 500;
    text-decoration: none;
}

.ekko-paywall-notice__cta:hover,
.ekko-paywall-notice__cta:focus-visible,
.ekko-paywall-notice__cta:active {
    background: #ffffff;
    color: #075BFF !important;
}

/* Copied from live Customizer Additional CSS before switching to this child theme
   (2026-12-02). Additional CSS is per-theme; these header/footer rules must ship
   with the child so Login nowrap and language-switcher fixes are not lost. */
/* Keep desktop language switcher (secondary menu) on one line */
.ast-desktop .ast-builder-menu-2 { flex-shrink: 0; }
.ast-desktop .ast-builder-menu-2 .main-header-menu { flex-wrap: nowrap; flex-direction: row; }
.ast-desktop .ast-builder-menu-2 .menu-item { white-space: nowrap; }

/* Prevent English / 中文 labels from wrapping letter-by-letter at all breakpoints
   (mobile header bar, off-canvas, and narrow desktop) */
.ast-builder-menu-2,
.ast-header-break-point .ast-builder-menu-2 {
  flex-shrink: 0;
}
.ast-builder-menu-2 .main-header-menu,
.ast-header-break-point .ast-builder-menu-2 .main-header-menu {
  flex-wrap: nowrap;
  flex-direction: row;
  width: auto;
  max-width: none;
}
.ast-builder-menu-2 .menu-item,
.ast-builder-menu-2 .menu-link,
.ast-builder-menu-2 .pll-switcher-label,
.ast-mobile-popup-drawer .polylang-item,
.ast-mobile-popup-drawer .polylang-item .menu-link,
.ast-mobile-popup-drawer .pll-switcher-label {
  white-space: nowrap;
}
/* Override stack-on-mobile li{width:100%} that squeezes labels in the narrow header slot */
.ast-header-break-point .ast-builder-menu-2 .stack-on-mobile > li,
.ast-header-break-point .ast-builder-menu-2 .main-navigation .stack-on-mobile li,
.ast-header-break-point .main-navigation .ast-builder-menu-2 .stack-on-mobile li {
  width: auto;
  min-width: max-content;
  flex: 0 0 auto;
}
.ast-builder-menu-2 .polylang-item,
.ast-builder-menu-2 .lang-item {
  aspect-ratio: auto;
  width: auto;
  max-width: none;
}

/* Footer copyright: slightly smaller on narrow screens so the line stays readable
   without mid-word breaks. Must beat theme typography
   .ast-footer-copyright.site-footer-focus-item { font-size: 16px } */
@media (max-width: 544px) {
  .ast-footer-copyright.site-footer-focus-item,
  .ast-footer-copyright.site-footer-focus-item p,
  .ast-footer-copyright,
  .ast-footer-copyright p {
    font-size: 12px;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }
}/* Keep header account Log in on one horizontal line */.ast-header-account,.ast-header-account-wrap,.ast-header-account-link,.ast-header-account-text {  white-space: nowrap;  width: auto;  max-width: none;  flex-shrink: 0;  writing-mode: horizontal-tb;  word-break: normal;  overflow-wrap: normal;}
/* Mobile language switcher: less cramped, labels stay on one line */@media (max-width: 921px) {  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 {    width: auto;    max-width: none;    flex: 0 0 auto;    padding-left: 6px;  }
  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 .main-header-menu,  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 .ast-flex.stack-on-mobile,  .ast-header-break-point .ast-mobile-header-wrap .ast-flex.stack-on-mobile.main-header-menu {    flex-direction: row;    flex-wrap: nowrap;    align-items: center;    gap: 2px;    width: auto;  }
  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 .menu-link,  .ast-mobile-popup-drawer .ast-builder-menu-2 .menu-link {    padding-left: 8px;    padding-right: 8px;    line-height: 1.4;    font-size: 13px;  }}
/* Narrow mobile language switcher: keep English /  fully visible */
@media (max-width: 390px) {
  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-grid-row,  .ast-header-break-point .ast-mobile-header-wrap .ast-main-header-wrap {    overflow: visible;  }
  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2,  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 .main-header-menu,  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 .menu-item,  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 .menu-link {    overflow: visible;    max-width: none;    min-width: min-content;    flex-shrink: 0;    text-overflow: clip;  }
	.ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 {    padding-left: 2px;  }  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 .menu-link,  .ast-mobile-popup-drawer .ast-builder-menu-2 .menu-link {    padding-left: 4px;    padding-right: 4px;    font-size: 12px;    line-height: 1.3;    white-space: nowrap;    overflow: visible;  }
}/* Very narrow header: slightly shrink logo and side gaps so English /  fit */
@media (max-width: 360px) {
  .ast-header-break-point .ast-mobile-header-wrap .ast-container,  .ast-header-break-point .ast-mobile-header-wrap .main-header-bar,  .ast-header-break-point .ast-mobile-header-wrap .ast-main-header-wrap,  .ast-header-break-point .ast-mobile-header-wrap .site-header-section,  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-grid-row {    padding-left: 8px;    padding-right: 8px;    column-gap: 8px;    grid-column-gap: 8px;  }  .ast-header-break-point .ast-mobile-header-wrap .site-branding,  .ast-header-break-point .ast-mobile-header-wrap .ast-site-identity,  .ast-header-break-point .ast-mobile-header-wrap .custom-logo-link {    max-width: 96px;    margin-right: 0;  }
  .ast-header-break-point .ast-mobile-header-wrap .custom-logo-link img,  .ast-header-break-point .ast-mobile-header-wrap .site-logo-img img,  .ast-header-break-point .ast-mobile-header-wrap .ast-site-identity img {    max-width: 96px;    width: auto;    height: auto;  }  .ast-header-break-point .ast-mobile-header-wrap .ast-button-wrap,  .ast-header-break-point .ast-mobile-header-wrap .ast-mobile-menu-buttons,  .ast-header-break-point .ast-mobile-header-wrap .menu-toggle {    margin-left: 0;    margin-right: 0;    padding-left: 2px;    padding-right: 2px;  }  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 {    padding-left: 0;    margin-left: 0;  }
}


/* 2026-12-02 follow-up layout (append-only; do not alter scroll-to-top) */

/* EN desktop primary nav: keep Contact Ekko on the same row as the other
   items at ~1440. Shrink horizontal padding instead of reopening Customizer. */
@media (min-width: 922px) and (max-width: 1540px) {
  /* EN nav lives in the above-header bar, not the primary bar. */
  .ast-desktop .ast-above-header-bar .ast-builder-menu-1 .main-header-menu,
  .ast-desktop .ast-primary-header-bar .ast-builder-menu-1 .main-header-menu {
    flex-wrap: nowrap;
  }
  .ast-desktop .ast-above-header-bar .ast-builder-menu-1 .menu-item,
  .ast-desktop .ast-above-header-bar .ast-builder-menu-1 .menu-link,
  .ast-desktop .ast-primary-header-bar .ast-builder-menu-1 .menu-item,
  .ast-desktop .ast-primary-header-bar .ast-builder-menu-1 .menu-link {
    white-space: nowrap;
  }
  .ast-desktop .ast-above-header-bar .ast-builder-menu-1 .main-header-menu .menu-item .menu-link,
  .ast-desktop .ast-primary-header-bar .ast-builder-menu-1 .main-header-menu .menu-item .menu-link {
    padding-left: 7px;
    padding-right: 7px;
  }
}

/* Very narrow mobile header: measured 320px clipped 「中文」 by ~37px and
   overflowed the header by 53px. Tighten further than the 360px rules above. */
@media (max-width: 360px) {
  .ast-header-break-point .ast-mobile-header-wrap .ast-container,
  .ast-header-break-point .ast-mobile-header-wrap .main-header-bar,
  .ast-header-break-point .ast-mobile-header-wrap .ast-main-header-wrap,
  .ast-header-break-point .ast-mobile-header-wrap .site-header-section,
  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-grid-row {
    padding-left: 6px;
    padding-right: 6px;
    column-gap: 4px;
    grid-column-gap: 4px;
  }
  .ast-header-break-point .ast-mobile-header-wrap .site-branding,
  .ast-header-break-point .ast-mobile-header-wrap .ast-site-identity,
  .ast-header-break-point .ast-mobile-header-wrap .custom-logo-link {
    max-width: 72px;
    margin-right: 0;
  }
  .ast-header-break-point .ast-mobile-header-wrap .custom-logo-link img,
  .ast-header-break-point .ast-mobile-header-wrap .site-logo-img img,
  .ast-header-break-point .ast-mobile-header-wrap .ast-site-identity img {
    max-width: 72px;
    width: auto;
    height: auto;
  }
  .ast-header-break-point .ast-mobile-header-wrap .ast-builder-menu-2 .menu-link,
  .ast-mobile-popup-drawer .ast-builder-menu-2 .menu-link {
    padding-left: 3px;
    padding-right: 3px;
    font-size: 11px;
    line-height: 1.2;
  }
  .ast-header-break-point .ast-mobile-header-wrap .ast-mobile-menu-buttons,
  .ast-header-break-point .ast-mobile-header-wrap .menu-toggle,
  .ast-header-break-point .ast-mobile-header-wrap .ast-button-wrap {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Partner logo marquee: fade hard edge-clips; keep display-only content as-is. */
#ekko-logo-marquee .elm-viewport {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
