/*
 * Production safety overrides.
 * Keep every existing label, page section, filter and translated link visible;
 * this design layer must not replace copy with generated CSS text.
 */

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

body.breakdance.yfg-design-layer {
  color: var(--yfg-production-copy);
  font-family: var(--yfg-production-sans) !important;
}

body.breakdance.yfg-design-layer :where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .bde-heading
) {
  color: var(--yfg-production-heading);
  font-family: var(--yfg-production-serif) !important;
  font-weight: 400 !important;
}

body.breakdance.yfg-design-layer :where(
  p,
  li,
  label,
  input,
  textarea,
  select,
  button,
  figcaption,
  .bde-text,
  .bde-text-link,
  .bde-rich-text,
  .footer-link
) {
  font-family: var(--yfg-production-sans) !important;
}

/* Do not hide existing compliance page sections or pagination. */
body.page-id-1795.yfg-design-layer .bde-section-1795-267,
body.page-id-1795.yfg-design-layer .bde-section-1795-272 {
  display: flex !important;
}

body.page-id-1795.yfg-design-layer .bde-wpgbfacet-1795-149 {
  display: block !important;
}

/* Preserve the original translated link text; do not synthesize copy in CSS. */
html body.page-id-1795.yfg-design-layer
  .bde-post-loop-1795-148
  .bde-text-link-25-107 {
  font-size: 12px !important;
}

html body.page-id-1795.yfg-design-layer
  .bde-post-loop-1795-148
  .bde-text-link-25-107::after {
  content: none !important;
  display: none !important;
}

/* Keep the formal-site Press Room facet set intact. */
body.page-id-216.yfg-design-layer
  .bde-wpgbfacet-216-125
  .wpgb-inline-list
  > li:has(input[value="compliance-information"]) {
  display: list-item !important;
}

body.page-id-216.yfg-design-layer .bde-heading-216-119::before,
body.page-id-216.yfg-design-layer .bde-heading-216-119::after {
  content: none !important;
  display: none !important;
}

/* Long formal-site labels may wrap instead of pushing the next column away. */
body.yfg-design-layer .bde-section-1998-265 .footer-link {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

