:root {
  --aicc-font-tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --aicc-font-sc: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --aicc-font-en: Inter, "Segoe UI", Arial, sans-serif;
  --aicc-content-max: 1440px;
}

html:lang(zh-Hant), html:lang(zh-Hant-HK) { font-family: var(--aicc-font-tc); }
html:lang(zh-Hans), html:lang(zh-Hans-CN) { font-family: var(--aicc-font-sc); }
html:lang(en) { font-family: var(--aicc-font-en); }

body { font-family: inherit; font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }

.site-header, .aicc-home-header { border-bottom-color: rgba(35, 31, 22, .1) !important; box-shadow: 0 8px 24px rgba(35, 31, 22, .035) !important; }
.desktop-nav, .aicc-home-menu { font-family: inherit !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.2 !important; }
.desktop-nav a, .aicc-home-menu a { font-family: inherit !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.desktop-nav a[aria-current="page"], .aicc-home-menu a[aria-current="page"] { font-weight: 900 !important; }

.site-header-controls { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 8px !important; white-space: nowrap; }
.site-member-login { min-height: 40px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; padding: 0 17px !important; border: 1px solid #171717 !important; border-radius: 999px !important; background: #171717 !important; color: #fff !important; font-size: 14px !important; font-weight: 800 !important; text-decoration: none !important; }
.site-lang-switch { min-height: 40px; display: inline-flex !important; align-items: center !important; gap: 2px !important; padding: 4px !important; border: 1px solid rgba(35, 31, 22, .12) !important; border-radius: 999px !important; background: #fff !important; box-shadow: 0 6px 18px rgba(35, 31, 22, .06) !important; }
.site-lang-switch a { min-width: 36px !important; height: 30px !important; display: inline-grid !important; place-items: center !important; padding: 0 8px !important; border-radius: 999px !important; color: #171717 !important; font-size: 13px !important; font-weight: 800 !important; line-height: 1 !important; text-decoration: none !important; }
.site-lang-switch a.active { background: var(--gold, #b28a00) !important; color: #fff !important; }

.member-site-header { min-height: 72px !important; padding: 9px max(28px, calc((100vw - var(--aicc-content-max)) / 2)) !important; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) auto !important; gap: clamp(18px, 2vw, 34px) !important; }
.member-site-header .brand { font-size: 16px; font-weight: 900; }
.member-site-header .desktop-nav { justify-content: flex-end !important; gap: clamp(16px, 1.35vw, 24px) !important; }
.member-site-header .desktop-nav a { min-height: 40px !important; padding: 0 3px !important; }
.member-header-actions { display: flex; align-items: center; gap: 9px; }
.member-login-button { min-height: 40px !important; padding: 0 17px !important; border: 1px solid #171717 !important; border-radius: 999px !important; background: #171717 !important; color: #fff !important; font-family: inherit !important; font-size: 14px !important; font-weight: 800 !important; cursor: pointer; }
.member-lang-switch { min-height: 40px; display: inline-flex !important; align-items: center; gap: 2px; padding: 4px !important; border: 1px solid rgba(35, 31, 22, .12) !important; border-radius: 999px !important; background: #fff !important; box-shadow: 0 6px 18px rgba(35, 31, 22, .06) !important; }
.member-lang-switch a { min-width: 36px !important; height: 30px !important; padding: 0 8px !important; font-family: inherit !important; font-size: 13px !important; font-weight: 800 !important; }

.page-hero { grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr) !important; gap: clamp(40px, 5vw, 84px) !important; padding: clamp(58px, 6vw, 88px) max(28px, calc((100vw - var(--aicc-content-max)) / 2)) !important; }
.promo-hero::before { display: none !important; }
.page-hero-copy h1, .promo-hero .page-hero-copy h1 { max-width: 720px !important; margin-bottom: 20px !important; font-family: inherit !important; font-size: clamp(42px, 4.25vw, 64px) !important; font-weight: 900 !important; line-height: 1.1 !important; letter-spacing: 0 !important; text-wrap: balance; }
.page-hero-copy p:not(.eyebrow) { max-width: 650px !important; margin: 0 !important; font-size: clamp(16px, 1.15vw, 19px) !important; line-height: 1.75 !important; }
.eyebrow { font-family: inherit !important; font-size: 13px !important; font-weight: 900 !important; letter-spacing: .04em !important; }
.page-hero-media { min-height: 0 !important; aspect-ratio: 16 / 9; border-color: rgba(35, 31, 22, .1) !important; box-shadow: 0 24px 56px rgba(35, 31, 22, .12) !important; }
.page-hero-media img { height: 100% !important; }
.hero-actions { margin-top: 26px !important; }
.btn { min-height: 44px !important; padding-inline: 20px !important; font-family: inherit !important; font-size: 15px !important; font-weight: 800 !important; }

.quick-action-board { max-width: var(--aicc-content-max); margin: 0 auto; padding: 34px max(28px, 3vw) !important; gap: 14px !important; }
.quick-action-board a { min-height: 122px !important; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 12px; padding: 22px 24px; border: 1px solid rgba(35, 31, 22, .1); border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(35, 31, 22, .045); }
.quick-action-board a:hover { border-color: rgba(178, 138, 0, .45); box-shadow: 0 16px 34px rgba(35, 31, 22, .08); }
.quick-action-board span { grid-row: 1 / 3; align-self: center; color: var(--gold-dark); font-size: 14px; font-weight: 900; }
.quick-action-board strong { font-size: 17px; line-height: 1.4; }
.quick-action-board em { color: var(--muted); font-size: 14px; font-style: normal; }

.page-heading h2, .section-heading h2 { font-family: inherit !important; font-size: clamp(32px, 3.2vw, 48px) !important; font-weight: 900 !important; line-height: 1.18 !important; letter-spacing: 0 !important; }
.page-heading p, .section-heading p { line-height: 1.75; }

/* Homepage hero uses the same restrained type scale as the inner pages. */
.aicc-home-showcase {
  grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr) !important;
  gap: clamp(44px, 5vw, 76px) !important;
  padding-inline: max(28px, calc((100vw - var(--aicc-content-max)) / 2)) !important;
}
.aicc-showcase-copy { max-width: 680px !important; }
.aicc-showcase-copy h1 {
  max-width: 680px;
  font-family: inherit !important;
  font-size: clamp(46px, 4.25vw, 60px) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}
.aicc-showcase-copy p { max-width: 650px !important; font-size: clamp(17px, 1.35vw, 20px) !important; }
.aicc-showcase-media img { height: clamp(420px, 43vw, 620px) !important; border-radius: 8px !important; }

/* Keep the assistant separate from the stacked contact actions. */
.aicc-health-launcher {
  right: 18px !important;
  bottom: 24px !important;
  width: auto !important;
  min-width: 118px;
  height: 48px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  white-space: nowrap;
  font-family: inherit !important;
  font-size: 15px !important;
  letter-spacing: 0 !important;
}
body:has(.floating-contact) .aicc-health-launcher { right: 112px !important; }

@media (max-width: 1100px) {
  .page-hero { grid-template-columns: 1fr !important; padding-inline: clamp(22px, 5vw, 52px) !important; }
  .page-hero-copy { max-width: 780px; }
  .page-hero-media { width: 100%; }
  .aicc-home-showcase { grid-template-columns: 1fr !important; padding-inline: clamp(22px, 5vw, 52px) !important; }
  .aicc-showcase-copy { max-width: 780px !important; }
}

@media (max-width: 760px) {
  .member-site-header { padding: 9px 14px 10px !important; gap: 8px !important; }
  .member-site-header .brand { font-size: 15px; }
  .member-site-header .desktop-nav { gap: 8px !important; }
  .member-site-header .desktop-nav a { font-size: 14px !important; }
  .member-site-header .desktop-nav a[aria-current="page"] { color: #fff !important; background: var(--gold) !important; border-color: var(--gold) !important; }
  .page-hero { gap: 30px !important; padding: 40px 16px 46px !important; }
  .page-hero-copy h1, .promo-hero .page-hero-copy h1 { font-size: clamp(34px, 10vw, 44px) !important; line-height: 1.12 !important; text-wrap: pretty; }
  .page-hero-copy p:not(.eyebrow) { font-size: 16px !important; }
  .page-hero-media { aspect-ratio: 4 / 3; }
  .quick-action-board { padding: 24px 16px 34px !important; grid-template-columns: 1fr !important; }
  .quick-action-board a { min-height: 104px !important; }
  .page-heading h2, .section-heading h2 { font-size: clamp(29px, 8.5vw, 38px) !important; }
  .aicc-home-header .site-header-controls { width: 100% !important; justify-content: flex-start !important; }
  .aicc-home-menu { padding-right: 24px !important; scroll-padding-inline: 14px; }
  .aicc-home-showcase { gap: 28px !important; padding: 38px 20px 46px !important; }
  .aicc-showcase-copy h1 { font-size: clamp(32px, 9.2vw, 40px) !important; line-height: 1.12 !important; text-wrap: pretty; }
  .aicc-showcase-copy p { font-size: 16px !important; line-height: 1.7 !important; }
  .aicc-showcase-media img { height: 300px !important; }
  .aicc-health-launcher { right: 10px !important; bottom: 18px !important; min-width: 112px; height: 44px !important; padding: 0 15px !important; font-size: 14px !important; }
  body:has(.floating-contact) .aicc-health-launcher { right: 104px !important; }
}
