/* Shared editorial scale. Hero artwork, phone numbers and navigation retain their roles. */
:root {
  --ymh-type-section: 56px;
  --ymh-type-heading: 24px;
  --ymh-type-body: 18px;
  --ymh-type-note: 14px;
  --ymh-accent-unified: #bf451b;
}
body #main .entry-content { font-size: var(--ymh-type-body); line-height: 1.85; }
body #main .ymh-section-heading__en { font-size: var(--ymh-type-section); }
body #main .ymh-section-heading.ymh-section-heading.ymh-section-heading > h2 {
  font-size: var(--ymh-type-heading); font-weight: 700; line-height: 1.6;
}
body #main .entry-content :is(h3, h4) { font-size: var(--ymh-type-heading); font-weight: 700; line-height: 1.6; }
body #main :is(.ymh-service-card__body, .ymh-feature-grid, .ymh-profile-editorial, .ymh-representative, .ymh-home-access__info, .ymh-access-info, .ymh-careers__selection-body, .lp-directory-card, .lp-section) p:not([class]),
body #main :is(.ymh-service-card__body, .ymh-feature-grid) p,
body #main :is(.ymh-recruit-banner__description, .ymh-info-table dd, .ymh-info-table dt, .ymh-careers dd, .ymh-careers dt, .ymh-careers__points, .ymh-form-field, .ymh-consult-faq__answer),
body #main .entry-content p.wp-block-paragraph {
  font-size: var(--ymh-type-body); line-height: 1.85;
}
body #main :is(.ymh-service-card__body li, .lp-section li, .ymh-feature-grid a, .ymh-service-card__more, .ymh-reference-button, .ymh-recruit-banner__button) {
  font-size: var(--ymh-type-body); line-height: 1.7;
}
body #main :is(.lp-fineprint, .lp-directory-tag, .ymh-careers__muted, .ymh-careers__notice, .ymh-home-access__note, .ymh-access-diagram figcaption, .ymh-careers figcaption) {
  font-size: var(--ymh-type-note); line-height: 1.7; font-weight: 500;
}
body #main .ymh-contact-row__label strong,
body #main .ymh-contact__panel-heading p strong { font-size: var(--ymh-type-heading); line-height: 1.6; }
body #main .ymh-contact-row__label small { font-size: var(--ymh-type-body); line-height: 1.7; font-weight: 700; }
body #main .ymh-contact-row__button > span > small { font-size: var(--ymh-type-note); line-height: 1.6; }
body #main .ymh-contact-row__button:not(.ymh-contact-row__button--phone) > span > strong { font-size: var(--ymh-type-body); }
body #main .ymh-contact__title > span { font-size: var(--ymh-type-body); line-height: 1.85; }
/* Use the same vermilion on the dark contact background as on other sections. */
body #main .ymh-contact__title > .ymh-section-heading { --section-accent: var(--ymh-accent-unified); }
body #main .ymh-contact-online-badge__ribbon { background: var(--ymh-accent-unified); }
body #main .ymh-contact-tab.is-active { background: var(--ymh-accent-unified); border-color: var(--ymh-accent-unified); }
/* News: bold readable titles, clear separators and an explicit link arrow. */
body #main .ymh-news-item {
  grid-template-columns: 108px 112px minmax(0, 1fr) 32px;
  gap: 20px; padding: 24px 0; margin: 0; border-bottom: 1px solid #dedbd8;
}
body #main .ymh-news-item:hover { padding-inline: 0; }
body #main .ymh-news-item__title { font-size: var(--ymh-type-body); font-weight: 700; line-height: 1.8; color: #302d35; }
body #main .ymh-news-item time { font-size: 16px; font-weight: 600; color: #524f55; }
body #main .ymh-news-item__category { font-size: var(--ymh-type-note); font-weight: 700; line-height: 1.5; color: #302d35; padding: 5px 8px; }
body #main .ymh-news-item__arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #302d35; color: #fff; font-size: 18px; }
body #main .ymh-news-tabs span { font-size: var(--ymh-type-body); font-weight: 700; color: #625e64; }
body #main .ymh-news-tabs .is-active { color: #302d35; }
@media (max-width: 1100px) {
  body #main .ymh-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --ymh-type-section: 34px; --ymh-type-heading: 20px; --ymh-type-body: 16px; }
  body #main .ymh-contact__title .ymh-section-heading__en { font-size: var(--ymh-type-section); }
  body #main .ymh-feature-grid { grid-template-columns: minmax(0, 1fr); }
  body #main .ymh-feature-grid > li { padding: 30px 24px 24px; }
  body #main .ymh-news-item { grid-template-columns: 100px minmax(0, 1fr) 30px; gap: 12px; padding: 22px 0; }
  body #main .ymh-news-item time { font-size: var(--ymh-type-note); }
  body #main .ymh-news-item__category { grid-column: 2; grid-row: 1; justify-self: start; }
  body #main .ymh-news-item__title { grid-column: 1 / 3; grid-row: 2; }
  body #main .ymh-news-item__arrow { grid-column: 3; grid-row: 2; align-self: center; }
  body #main .ymh-news-tabs span { padding-inline: 8px; }
}
/* The three labels fit without the legacy fixed-height scroll container. */
body #main .ymh-news-tabs { height: auto; overflow: visible; }
body #main .ymh-news-tabs span { min-width: 0; white-space: nowrap; }
/* Legacy directory tags used !important; keep supplementary text on the shared scale. */
body #main .lp-directory-tag { font-size: var(--ymh-type-note) !important; }
body #main .lp-directory-intro .ymh-section-heading__en { font-size: var(--ymh-type-section); }
