/* Shared front-end font. */
/* Use readable regular copy and medium headings across all locales. */
@layer fanturo-typography {
  html[lang] body[data-fanturo-rendered="server"] { font-weight: 400 !important; }
  html[lang] body[data-fanturo-rendered="server"] :is(h1, h2, h3, h4, h5, h6, .header nav a, .full-menu__nav dt, .full-menu__nav dt a, .footer-nav dt, button, .copy-action, .fvd-btn, .common-btn) {
    font-weight: 500 !important;
  }
}

html[lang] body[data-fanturo-rendered="server"],
html[lang] body[data-fanturo-rendered="server"] *,
html[lang] body[data-fanturo-rendered="server"] .header .fanturo-header-language {
  font-family: "Microsoft YaHei", sans-serif !important;
}

/* Content cards share row height without clipping longer translated copy. */
@layer fanturo-typography {
  body[data-fanturo-rendered="server"] :is(.bz-grid, .phase2-solution__grid, .c2-process-grid, .ut-suggest__grid, .news-company__grid, .news-special__grid, .fvd-ordering__steps, .p10-related-grid) {
    align-items: stretch !important;
  }
  body[data-fanturo-rendered="server"] :is(.bz-grid > .bz-card, .phase2-solution__grid > article, .c2-process-grid > .c2-step, .ut-suggest__grid > .ut-link-card, .news-company__grid > .news-company-card, .news-special__grid > .news-special-card, .fvd-ordering__steps > article) {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 100% !important;
    box-sizing: border-box;
  }
  body[data-fanturo-rendered="server"] .bz-card--media .bz-card__inner {
    display: flex; flex-direction: column; flex: 1;
  }
  body[data-fanturo-rendered="server"] .bz-card__media { flex-shrink: 0; }
  body[data-fanturo-rendered="server"] :is(.bz-card, .phase2-solution__grid > article, .c2-step, .fvd-ordering__steps > article, .news-company-card, .news-special-card, .news-mobile-card, .sv3-journey-card) h3 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    overflow-wrap: break-word;
  }
  body[data-fanturo-rendered="server"] :is(.bz-card, .phase2-solution__grid > article, .c2-step, .fvd-ordering__steps > article, .sv3-journey-card) p {
    font-size: 14px !important;
    line-height: 1.75 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow-wrap: break-word;
  }
  body[data-fanturo-rendered="server"] .ut-link-card { gap: 12px; }
  body[data-fanturo-rendered="server"] .ut-link-card b { font-size: 20px !important; line-height: 1.4 !important; }
  body[data-fanturo-rendered="server"] .ut-link-card > span { font-size: 14px !important; line-height: 1.75 !important; }
  body[data-fanturo-rendered="server"] .ut-link-card > i { margin-top: auto !important; padding-top: 8px; }
  body[data-fanturo-rendered="server"] .bz-dl__name h3 { font-size: 18px !important; line-height: 1.4 !important; margin-bottom: 8px !important; }
  body[data-fanturo-rendered="server"] .bz-dl__name p { font-size: 14px !important; line-height: 1.7 !important; }
  body[data-fanturo-rendered="server"] .news__swiper .swiper-wrapper,
  body[data-fanturo-rendered="server"] .swiper-wrapper:has(> .news-mobile-card) { align-items: stretch; }
  body[data-fanturo-rendered="server"] :is(.news__swiper .news-card, .news-mobile-card) { height: auto !important; display: flex !important; flex-direction: column; }
  body[data-fanturo-rendered="server"] .news-card > a { display: flex; flex-direction: column; flex: 1; }
  body[data-fanturo-rendered="server"] .news-card__img { flex-shrink: 0; }
  body[data-fanturo-rendered="server"] .news-card__body { flex: 1; }
  body[data-fanturo-rendered="server"] .news-card h3 { font-size: 20px !important; line-height: 1.45 !important; }
  @media (min-width: 768px) {
    body[data-fanturo-rendered="server"] :is(.bz-card, .phase2-solution__grid > article, .c2-step, .fvd-ordering__steps > article) h3 { min-height: 2.8em; }
    body[data-fanturo-rendered="server"] .about-card--offset { margin-top: 0 !important; }
    body[data-fanturo-rendered="server"] .strength-card--right { margin-top: 0 !important; }
  }
  @media (max-width: 767px) {
    body[data-fanturo-rendered="server"] :is(.bz-card, .phase2-solution__grid > article, .c2-step, .fvd-ordering__steps > article, .news-mobile-card, .sv3-journey-card) h3 { font-size: 18px !important; }
    body[data-fanturo-rendered="server"] .ut-link-card b { font-size: 18px !important; }
  }
}

/* Match the reference site's light body copy and responsive title hierarchy.
   Important rules in this layer also cover the imported templates' overrides. */
@layer fanturo-typography {
  body[data-fanturo-rendered="server"] :is(input:not([type="checkbox"]):not([type="radio"]), textarea):is(:focus, :focus-visible) {
    outline: none !important;
    box-shadow: none !important;
  }
  html body[data-fanturo-rendered="server"] {
    font-size: 14px !important;
    font-weight: lighter !important;
    line-height: 1.6 !important;
  }
  body[data-fanturo-rendered="server"] * { font-weight: inherit !important; }
  body[data-fanturo-rendered="server"] :is(p, .fvd-prose, .fvd-summary__lead) {
    font-size: 15px !important;
    line-height: 1.7 !important;
  }
  body[data-fanturo-rendered="server"] :is(h1, .hero__copy h2) {
    font-size: clamp(32px, 3.6vw, 52px) !important;
    line-height: 1.15 !important;
  }
  body[data-fanturo-rendered="server"] h2 {
    font-size: clamp(24px, 1.8vw, 34px) !important;
    line-height: 1.3 !important;
  }
  body[data-fanturo-rendered="server"] h3 {
    font-size: clamp(20px, 2vw, 30px) !important;
    line-height: 1.35 !important;
  }
  body[data-fanturo-rendered="server"] h4 { font-size: 18px !important; line-height: 1.4 !important; }
  body[data-fanturo-rendered="server"] :is(.hero__copy p, .site-subhero__copy small) {
    font-size: 20px !important;
    line-height: 1.5 !important;
  }
  body[data-fanturo-rendered="server"] .header nav a { font-size: 15px !important; }
  body[data-fanturo-rendered="server"] .full-menu__nav * {
    font-size: 14px !important;
    font-weight: 400 !important;
  }
  body[data-fanturo-rendered="server"] .full-menu__nav :is(dt, dt a) {
    font-size: 18px !important;
    font-weight: 600 !important;
  }
  body[data-fanturo-rendered="server"] :is(.fvd-btn, .common-btn, .site-subhero__tab, input, select, textarea) {
    font-size: 14px !important;
  }
  body[data-fanturo-rendered="server"] :is(.fvd-spec-group h3, .fvd-spec-row dt, .fvd-spec-row dd) {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
  body[data-fanturo-rendered="server"] :is(.news-card h3, .fanturo-managed-card h3, .p10-related-grid h3) {
    font-size: 20px !important;
  }
  body.products-page-view #product-grid .p-card h3 { font-size: 21px !important; line-height: 1.35 !important; }
  body.products-page-view #product-grid .p-card__top p { font-size: 14px !important; line-height: 1.65 !important; }
  body.products-page-view #product-grid :is(.p-compare, .p-card__actions a) { font-size: 12px !important; }
  body.products-page-view #product-grid .p-card__tags span { font-size: 11px !important; }
  @media (min-width: 768px) {
    body.products-page-view #product-grid { display: grid !important; align-items: stretch !important; }
    body.products-page-view #product-grid .p-card:not(.is-hidden) { display: flex !important; flex-direction: column; height: 100%; }
    body.products-page-view #product-grid .p-card__image { flex: 0 0 auto; }
    body.products-page-view #product-grid .p-card__body { display: flex; flex-direction: column; flex: 1; min-height: 0 !important; }
    body.products-page-view #product-grid .p-card__top { display: flex !important; align-items: flex-start; gap: 14px; flex: 1; }
    body.products-page-view #product-grid .p-card__top > div { flex: 1; min-width: 0; }
    body.products-page-view #product-grid .p-card h3 { min-height: 2.7em !important; max-height: none !important; display: block !important; overflow: visible !important; margin: 0 !important; }
    body.products-page-view #product-grid .p-card__top p { min-height: 3.3em !important; max-height: none !important; display: block !important; overflow: visible !important; margin-top: 8px !important; }
    body.products-page-view #product-grid .p-compare { position: static !important; flex-shrink: 0; white-space: nowrap; margin-top: 3px; }
    body.products-page-view #product-grid .p-card__tags { position: static !important; min-height: 48px; height: auto !important; align-content: flex-start; align-items: flex-start; gap: 6px; margin-top: 14px !important; }
    body.products-page-view #product-grid .p-card__tags span { padding: 5px 8px !important; }
    body.products-page-view #product-grid .p-card__actions { position: static !important; margin-top: 10px !important; padding-top: 13px !important; flex-wrap: wrap; gap: 20px; }
  }
  @media (max-width: 767px) {
    body.products-page-view #product-grid .p-card h3 { font-size: 16px !important; }
    body.products-page-view #product-grid .p-card { min-height: 162px !important; }
    body.products-page-view #product-grid .p-card__body { min-height: 144px !important; padding-bottom: 56px !important; }
    body.products-page-view #product-grid .p-card__top p { font-size: 12px !important; line-height: 1.5 !important; max-height: 36px !important; }
  }
  @media (max-width: 767px) {
    body[data-fanturo-rendered="server"] :is(.hero__copy p, .site-subhero__copy small) { font-size: 16px !important; }
    body[data-fanturo-rendered="server"] :is(input, select, textarea) { font-size: 16px !important; }
  }
}
