/* YFG Prestige production typography system. */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/bodonimoda/v28/aFT67PxzY382XsXX63LUYL6GYFcan6NJrKp-VPjfJMShrpsGFUt8oU7awIA.ttf")
    format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf")
    format("truetype");
}

:root {
  --yfg-type-serif: "Bodoni Moda",
    "Songti SC", "Noto Serif SC", "Noto Serif TC", PMingLiU, MingLiU,
    Georgia, serif;
  --yfg-type-sans: "Inter", "Avenir Next", Avenir, "Helvetica Neue", "PingFang SC",
    "PingFang TC", "Noto Sans CJK SC", "Noto Sans CJK TC",
    "Microsoft YaHei", Arial, sans-serif;
  --yfg-type-navy: #14213a;
  --yfg-type-copy: #747a82;
}

body.breakdance {
  color: var(--yfg-type-copy);
  font-family: var(--yfg-type-sans) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.breakdance :where(
  p,
  li,
  label,
  input,
  textarea,
  select,
  button,
  figcaption,
  blockquote,
  .bde-text,
  .bde-text-link,
  .bde-rich-text,
  .bde-icon-list,
  .bde-form-builder,
  .button-atom__text,
  .breakdance-form-field,
  .breakdance-dropdown-link,
  .breakdance-dropdown-link__label,
  .breakdance-dropdown-link__text,
  .breakdance-dropdown-column__title,
  .footer-link
) {
  font-family: var(--yfg-type-sans) !important;
}

body.breakdance :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .bde-heading,
  .bde-rich-text h1,
  .bde-rich-text h2,
  .bde-rich-text h3,
  .bde-rich-text h4,
  .bde-rich-text h5,
  .bde-rich-text h6
) {
  font-family: var(--yfg-type-serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.018em;
  text-rendering: optimizeLegibility;
}

body.breakdance h1 {
  font-size: clamp(38px, 3.4vw, 52px);
  line-height: 1.12;
}

body.breakdance h2 {
  font-size: clamp(30px, 2.35vw, 36px);
  line-height: 1.25;
}

body.breakdance h3 {
  font-size: clamp(25px, 1.95vw, 30px);
  line-height: 1.3;
}

body.breakdance h4 {
  font-size: clamp(20px, 1.55vw, 23px);
  line-height: 1.35;
}

body.breakdance h5 {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.3;
}

body.breakdance :where(
  p,
  .bde-text,
  .bde-rich-text,
  .bde-icon-list li
) {
  color: var(--yfg-type-copy) !important;
  line-height: 1.65;
}

/* Keep functional and editorial body copy in a quiet neutral gray even when
 * Breakdance sections carry legacy navy text declarations. */
body.breakdance :where(
  p,
  li,
  label,
  figcaption,
  blockquote,
  .bde-text,
  .bde-rich-text,
  .bde-icon-list,
  .bde-icon-list li
) {
  color: var(--yfg-type-copy) !important;
}

body.breakdance :where(
  button,
  input,
  textarea,
  select,
  .bde-button__button,
  .button-atom,
  .button-atom__text,
  .breakdance-form-button,
  .footer-link
) {
  font-family: var(--yfg-type-sans) !important;
  letter-spacing: 0.015em;
}

/* Navigation remains editorial serif; dropdown content remains sans-serif. */
body.breakdance .bde-header-builder .breakdance-menu-link {
  font-family: var(--yfg-type-serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0;
}

body.breakdance .bde-header-builder :where(
  .breakdance-dropdown-column__title,
  .breakdance-dropdown-link,
  .breakdance-dropdown-link__label,
  .breakdance-dropdown-link__text
) {
  font-family: var(--yfg-type-sans) !important;
}

/* Homepage section-title rhythm. */
body.home :where(
  .bde-section-24-325,
  .bde-section-24-377,
  .bde-section-24-387,
  .bde-section-24-420
) h2,
body.home :where(
  .bde-section-24-325,
  .bde-section-24-377,
  .bde-section-24-387,
  .bde-section-24-420
) .bde-heading {
  color: var(--yfg-type-navy);
  font-family: var(--yfg-type-serif) !important;
  font-size: clamp(30px, 2.35vw, 36px) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.024em;
}

/* Service titles are editorial; service explanations and links are functional. */
body.home .bde-section-24-325 h5 {
  font-family: var(--yfg-type-serif) !important;
  font-size: clamp(17px, 1.3vw, 19px) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

body.home .bde-section-24-325 :where(.bde-text, a) {
  font-family: var(--yfg-type-sans) !important;
}

/* Timeline content is body copy even though its section title is serif. */
body.home .bde-section-24-420 :where(
  p,
  li,
  button,
  .bde-text,
  .yfg-vtl-list,
  .yfg-vtl-summary,
  .yfg-vtl-year
) {
  font-family: var(--yfg-type-sans) !important;
}

/* Footer titles follow the heading system; links and newsletter controls are sans. */
body.breakdance .bde-section-1998-265 h4 {
  font-family: var(--yfg-type-serif) !important;
  font-size: clamp(20px, 1.55vw, 23px) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

body.breakdance .bde-section-1998-265 h2 {
  font-family: var(--yfg-type-serif) !important;
  font-size: clamp(30px, 2.35vw, 36px) !important;
  font-weight: 400 !important;
  line-height: 1.18 !important;
}

body.breakdance .bde-section-1998-265 :where(
  p,
  a,
  .footer-link,
  .bde-text,
  .bde-text-link,
  input,
  button
) {
  font-family: var(--yfg-type-sans) !important;
}

/* Single-post editorial layout: title, date, cover, then a focused reading
 * column. The decorative News Centre banner belongs to the archive, not to an
 * individual article, so it is removed only inside the post template. */
body.single-post {
  --yfg-article-ink: #000000;
  --yfg-article-paper: #ffffff;
  --yfg-article-meta: #5f646b;
  --yfg-article-rule: rgba(0, 0, 0, 0.16);
  overflow-x: clip;
  background: var(--yfg-article-paper) !important;
}

body.single-post .bde-section-17-100 {
  display: none !important;
}

body.single-post .bde-section-17-102 {
  margin: 0 !important;
  background: var(--yfg-article-paper) !important;
}

body.single-post .bde-section-17-102 > .section-container {
  display: block !important;
  width: min(100%, 1260px) !important;
  max-width: 1260px !important;
  margin: 0 auto !important;
  padding: clamp(78px, 8vw, 128px) 40px clamp(96px, 10vw, 150px) !important;
  text-align: left !important;
}

body.single-post .bde-heading-17-104 {
  width: min(100%, 1160px) !important;
  max-width: 1160px !important;
  margin: 0 0 34px !important;
  color: var(--yfg-article-ink) !important;
  font-family: var(--yfg-type-serif) !important;
  font-size: clamp(56px, 5.7vw, 98px) !important;
  font-weight: 400 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.052em !important;
  text-wrap: balance;
}

html[lang="zh-CN"] body.single-post .bde-heading-17-104,
html[lang="zh-HK"] body.single-post .bde-heading-17-104,
html[lang="zh-TW"] body.single-post .bde-heading-17-104 {
  font-family: "Bodoni Moda", "Songti SC", "Noto Serif SC", "Noto Serif TC", Georgia, serif !important;
  font-size: clamp(48px, 5.1vw, 84px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.025em !important;
}

body.single-post.yfg-article-title-long .bde-heading-17-104 {
  font-size: clamp(44px, 3.85vw, 66px) !important;
  line-height: 1.07 !important;
  letter-spacing: -0.035em !important;
}

body.single-post.yfg-article-title-extra-long .bde-heading-17-104 {
  font-size: clamp(38px, 3.05vw, 52px) !important;
  line-height: 1.09 !important;
  letter-spacing: -0.025em !important;
}

body.single-post .bde-rich-text-17-106 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  color: var(--yfg-article-ink) !important;
  font-family: var(--yfg-type-sans) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.88 !important;
  text-align: left !important;
}

body.single-post .bde-rich-text-17-106 > :not(.yfg-article-lead) {
  width: min(100%, 780px);
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

body.single-post .yfg-article-lead {
  width: 100%;
  margin: 0 0 clamp(62px, 7vw, 92px);
}

body.single-post .yfg-article-date {
  display: block;
  margin: 0;
  color: var(--yfg-article-meta) !important;
  font-family: var(--yfg-type-sans) !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.035em;
}

body.single-post .yfg-article-cover {
  overflow: hidden;
  width: 100%;
  margin: clamp(42px, 5vw, 68px) 0 0;
  background: #f2f3f4;
}

body.single-post .yfg-article-cover__image {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

body.single-post .bde-rich-text-17-106 :where(
  p,
  li,
  blockquote,
  h2,
  h3,
  h4,
  h5,
  h6,
  strong,
  em,
  a
) {
  color: var(--yfg-article-ink) !important;
}

body.single-post .bde-rich-text-17-106 p {
  margin-top: 0 !important;
  margin-bottom: 1.45em !important;
  font-family: var(--yfg-type-sans) !important;
  font-size: 18px !important;
  line-height: 1.88 !important;
}

body.single-post .bde-rich-text-17-106 :where(ul, ol) {
  margin-top: 0 !important;
  margin-bottom: 1.7em !important;
  padding-left: 1.35em !important;
  color: var(--yfg-article-ink) !important;
}

body.single-post .bde-rich-text-17-106 li {
  margin-bottom: 0.62em;
  font-size: 18px !important;
  line-height: 1.82 !important;
}

body.single-post .bde-rich-text-17-106 :where(h2, h3, h4, h5, h6) {
  margin-top: 2.15em !important;
  margin-bottom: 0.72em !important;
  color: var(--yfg-article-ink) !important;
  font-family: var(--yfg-type-serif) !important;
  font-weight: 400 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}

body.single-post .bde-rich-text-17-106 h2 {
  font-size: clamp(34px, 3vw, 48px) !important;
}

body.single-post .bde-rich-text-17-106 h3 {
  font-size: clamp(28px, 2.3vw, 36px) !important;
}

body.single-post .bde-rich-text-17-106 :where(strong, b) {
  font-weight: 650 !important;
}

body.single-post .bde-rich-text-17-106 a {
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.single-post .bde-rich-text-17-106 blockquote {
  margin-top: 2.3em !important;
  margin-bottom: 2.3em !important;
  padding: 0.1em 0 0.1em 1.25em !important;
  border-left: 1px solid var(--yfg-article-ink) !important;
  font-size: 1.12em;
}

body.single-post .bde-rich-text-17-106 > :where(
  figure,
  .wp-block-image,
  .wp-block-gallery,
  .wp-block-video,
  .wp-block-embed,
  .wp-block-table
):not(.yfg-article-cover) {
  width: min(100%, 980px);
  max-width: 980px;
  margin-top: 2.6em !important;
  margin-bottom: 2.8em !important;
}

body.single-post .bde-rich-text-17-106 img:not(.yfg-article-cover__image) {
  max-width: 100%;
  height: auto;
}

body.single-post .bde-rich-text-17-106 figcaption {
  margin-top: 10px;
  color: var(--yfg-article-meta) !important;
  font-family: var(--yfg-type-sans) !important;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

body.single-post .bde-rich-text-17-106 hr {
  width: min(100%, 780px);
  margin: 3.2em auto !important;
  border: 0 !important;
  border-top: 1px solid var(--yfg-article-rule) !important;
}

@media (max-width: 767px) {
  body.breakdance h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  body.breakdance h2,
  body.home :where(
    .bde-section-24-325,
    .bde-section-24-377,
    .bde-section-24-387,
    .bde-section-24-420
  ) h2,
  body.home :where(
    .bde-section-24-325,
    .bde-section-24-377,
    .bde-section-24-387,
    .bde-section-24-420
  ) .bde-heading {
    font-size: clamp(27px, 7.5vw, 32px) !important;
    line-height: 1.25 !important;
  }

  body.breakdance :where(p, .bde-text, .bde-rich-text) {
    line-height: 1.65;
  }

  body.single-post .bde-section-17-102 > .section-container {
    padding: 48px 20px 84px !important;
  }

  body.single-post .bde-heading-17-104,
  html[lang="zh-CN"] body.single-post .bde-heading-17-104,
  html[lang="zh-HK"] body.single-post .bde-heading-17-104,
  html[lang="zh-TW"] body.single-post .bde-heading-17-104 {
    margin-bottom: 24px !important;
    font-size: clamp(40px, 12vw, 58px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    text-wrap: pretty;
  }

  body.single-post.yfg-article-title-long .bde-heading-17-104 {
    font-size: clamp(34px, 9.5vw, 42px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
  }

  body.single-post.yfg-article-title-extra-long .bde-heading-17-104 {
    font-size: clamp(29px, 8.2vw, 36px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.018em !important;
  }

  body.single-post .yfg-article-lead {
    margin-bottom: 48px;
  }

  body.single-post .yfg-article-date {
    font-size: 13px;
  }

  body.single-post .yfg-article-cover {
    width: calc(100% + 40px);
    margin: 30px -20px 0;
  }

  body.single-post .bde-rich-text-17-106,
  body.single-post .bde-rich-text-17-106 p,
  body.single-post .bde-rich-text-17-106 li {
    font-size: 16px !important;
    line-height: 1.82 !important;
  }

  body.single-post .bde-rich-text-17-106 > :where(
    figure,
    .wp-block-image,
    .wp-block-gallery,
    .wp-block-video,
    .wp-block-embed,
    .wp-block-table
  ):not(.yfg-article-cover) {
    width: 100%;
    margin-top: 2em !important;
    margin-bottom: 2.15em !important;
  }
}
