/*
Theme Name: 儿语工坊参考图首页子主题
Template: VoiceChanger-theme
Version: 1.0.71
Description: 仅覆盖首页视觉与后台可编辑映射；父主题保持不修改。
*/

@font-face {
  font-family: 'Eryu Wangxingyuan';
  src: url('assets/fonts/maoken-wangxingyuan.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
}

@font-face {
  font-family: 'Eryu Fangyuan';
  src: url('assets/fonts/alimama-fangyuan-vf.ttf') format('truetype');
  font-display: swap;
  font-style: normal;
  font-weight: 300 900;
}

:root {
  --yg-coral: #ff5f65;
  --yg-coral-deep: #f74f57;
  --yg-peach: #ff9e72;
  --yg-ink: #121c33;
  --yg-muted: #66738d;
  --yg-line: #ffe4e3;
  --yg-panel: #fffdfd;
  --yg-shell: 1216px;
}

/* Keep every public page header flush with the viewport; parent/plugin offsets caused a blank band above navigation. */
html,
body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body > .site-header.yg-ref-site-header {
  margin-top: 0 !important;
  top: auto;
}

/* Course system: intentionally scoped to the course archive, taxonomy and single course templates. */
.yg-curriculum { --yg-course-ink:#243047; --yg-course-coral:#f45c63; --yg-course-paper:#fffaf8; background:var(--yg-course-paper); color:var(--yg-course-ink); }
.yg-curriculum-container { margin-inline:auto; width:min(1180px, calc(100% - 48px)); }
.yg-curriculum-hero { background:linear-gradient(90deg, rgba(19,28,39,.68) 0%, rgba(19,28,39,.55) 34%, rgba(19,28,39,.28) 62%, rgba(19,28,39,.18) 100%), var(--yg-curriculum-hero-image, #d77b73) center 52%/cover no-repeat; box-sizing:border-box; min-height:clamp(370px, 32vw, 460px); padding:0; position:relative; }
.yg-curriculum-hero::after { background:linear-gradient(0deg, rgba(11,19,30,.18), transparent 48%); content:""; inset:0; pointer-events:none; position:absolute; }
.yg-curriculum-hero__grid { align-items:center; display:flex; justify-content:center; min-height:inherit; position:relative; text-align:center; z-index:1; }
.yg-curriculum-hero__copy { max-width:650px; }
.yg-curriculum-hero h1, .yg-curriculum-detail h1 { color:#fff; font-family:'Eryu Fangyuan','Microsoft YaHei UI',sans-serif; font-size:clamp(44px, 4.6vw, 68px); font-weight:760; letter-spacing:-.035em; line-height:1.04; margin:0; text-shadow:0 2px 20px rgba(10,16,27,.34); }
.yg-curriculum .yg-curriculum-hero h1 { color:#fff !important; }
.yg-curriculum-detail h1 { color:var(--yg-course-ink); text-shadow:none; }
.yg-curriculum-hero h1 span { color:#ffe8df; display:block; font-family:'Microsoft YaHei UI',sans-serif; font-size:14px; font-weight:700; letter-spacing:.13em; line-height:1.2; margin-top:18px; }
.yg-curriculum-hero p { color:rgba(255,255,255,.92); font-size:17px; line-height:1.85; margin:24px auto 0; max-width:34em; text-shadow:0 1px 14px rgba(10,16,27,.28); }
.yg-curriculum-detail__hero p { color:#566278; font-size:17px; line-height:1.85; margin:24px 0 0; max-width:36em; }
.yg-curriculum-hero__image, .yg-curriculum-category__image, .yg-curriculum-filter-card__media img, .yg-curriculum-course-card__image img { height:100%; object-fit:cover; width:100%; }
.yg-curriculum-button { align-items:center; background:var(--yg-course-coral); border-radius:999px; box-shadow:0 14px 28px rgba(244,92,99,.22); color:#fff; display:inline-flex; font-size:15px; font-weight:750; justify-content:center; margin-top:30px; min-height:48px; padding:0 26px; text-decoration:none; transition:transform .2s ease, box-shadow .2s ease, background .2s ease; }
.yg-curriculum-button:hover, .yg-curriculum-button:focus-visible { background:#dd4e56; box-shadow:0 18px 34px rgba(221,78,86,.28); color:#fff; transform:translateY(-2px); }
.yg-curriculum-button:active { transform:translateY(0) scale(.98); }
.yg-curriculum-category-nav { margin-top:-36px; position:relative; z-index:3; }
.yg-curriculum-category-nav__panel { align-items:stretch; background:#fff; border-radius:16px; box-shadow:0 18px 40px rgba(20,31,48,.16); display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); min-height:68px; overflow:hidden; padding:8px; }
.yg-curriculum-category-nav button { align-items:center; appearance:none; background:transparent; border:1px solid transparent; color:#4f5d73; cursor:pointer; display:flex; font-family:'Microsoft YaHei UI',sans-serif; font-size:15px; font-weight:700; justify-content:center; min-height:52px; padding:0 12px; text-align:center; transition:background .2s ease, border-color .2s ease, color .2s ease; width:100%; }
.yg-curriculum-category-nav button:hover, .yg-curriculum-category-nav button:focus-visible, .yg-curriculum-category-nav button[aria-pressed="true"] { background:#fff7f3; border-color:#ffb557; color:#df8d18; outline:none; }
.yg-curriculum-categories { padding:clamp(74px, 9vw, 124px) 0; }
.yg-curriculum-heading { margin-bottom:40px; max-width:750px; overflow:visible; }
.yg-curriculum-heading h2, .yg-curriculum-story__article h2 { font-family:'Eryu Fangyuan','Microsoft YaHei UI',sans-serif; font-size:clamp(29px, 3.2vw, 45px); font-weight:730; letter-spacing:-.025em; line-height:1.18; margin:0; }
.yg-curriculum-heading p { color:#66738d; line-height:1.8; margin:14px 0 0; overflow:visible; }
.yg-curriculum-category-grid, .yg-curriculum-filter-grid { align-items:stretch; display:grid; gap:28px; grid-template-columns:repeat(3, minmax(0, 1fr)); }
.yg-curriculum-filter-grid--other { grid-template-columns:repeat(4, minmax(0, 1fr)); }
.yg-curriculum-category, .yg-curriculum-filter-card { background:#fff; border:1px solid rgba(40,55,77,.1); border-radius:14px; color:inherit; display:flex; flex-direction:column; min-height:442px; overflow:hidden; text-decoration:none; transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.yg-curriculum-category:hover, .yg-curriculum-category:focus-visible, .yg-curriculum-filter-card:hover, .yg-curriculum-filter-card:focus-visible { border-color:rgba(244,92,99,.52); box-shadow:0 18px 38px rgba(37,48,71,.1); color:inherit; transform:translateY(-3px); }
.yg-curriculum-category__media, .yg-curriculum-filter-card__media { aspect-ratio:1.34/1; background:#ffe5e1; flex:0 0 auto; overflow:hidden; }
.yg-curriculum-category__body, .yg-curriculum-filter-card__body { display:flex; flex:1 1 auto; flex-direction:column; min-height:178px; padding:22px 20px 20px; }
.yg-curriculum-category h3, .yg-curriculum-filter-card h3 { font-family:'Eryu Fangyuan','Microsoft YaHei UI',sans-serif; font-size:23px; line-height:1.2; margin:0; }
.yg-curriculum-category p, .yg-curriculum-filter-card p { -webkit-box-orient:vertical; -webkit-line-clamp:3; color:#66738d; display:-webkit-box; font-size:14px; line-height:1.55; margin:9px 0; overflow:hidden; }
.yg-curriculum-category span, .yg-curriculum-filter-card span, .yg-curriculum-course-card div > a { color:var(--yg-course-coral); font-size:14px; font-weight:700; margin-top:auto; }
.yg-curriculum-empty { background:#fff; border:1px dashed rgba(40,55,77,.2); border-radius:14px; margin:0; padding:28px; }
.yg-curriculum-detail__hero { background:#fff1ef; padding:clamp(50px, 7vw, 90px) 0 56px; }
.yg-curriculum-back { color:#b84f56; display:inline-block; font-size:14px; font-weight:700; margin-bottom:28px; text-decoration:none; }
.yg-curriculum-detail__content { padding:clamp(52px, 7vw, 92px) 0; }
.yg-curriculum-story { align-items:start; display:grid; gap:clamp(28px, 5vw, 72px); grid-template-columns:minmax(0, 1.16fr) minmax(300px, .84fr); }
.yg-curriculum-story__video { aspect-ratio:16/10; background:#243047; border-radius:22px; overflow:hidden; }
.yg-curriculum-story__video iframe, .yg-curriculum-story__video video, .yg-curriculum-story__video img { height:100%; object-fit:cover; width:100%; }
.yg-curriculum-video-empty { align-items:center; color:#fff; display:flex; height:100%; justify-content:center; padding:24px; text-align:center; }
.yg-curriculum-story__article { padding:8px 0; }
.yg-curriculum-story__article .entry-content, .yg-curriculum-story__article > p { color:#566278; line-height:1.9; margin-top:18px; }
.yg-curriculum-course-list { border-top:1px solid rgba(40,55,77,.12); display:grid; gap:18px; margin-top:clamp(64px, 9vw, 112px); padding-top:30px; }
.yg-curriculum-course-list--other { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.yg-curriculum-course-card { background:#fff; border:1px solid rgba(40,55,77,.1); border-radius:18px; display:grid; gap:22px; grid-template-columns:210px 1fr; overflow:hidden; padding:12px; }
.yg-curriculum-course-list--other .yg-curriculum-course-card { display:block; padding:0; }
.yg-curriculum-course-card__image { aspect-ratio:1.25; background:#ffe5e1; border-radius:11px; display:block; overflow:hidden; }
.yg-curriculum-course-list--other .yg-curriculum-course-card__image { border-radius:0; }
.yg-curriculum-course-list--other .yg-curriculum-course-card > div { padding:22px; }
.yg-curriculum-course-card h2 { font-family:'Eryu Fangyuan','Microsoft YaHei UI',sans-serif; font-size:23px; line-height:1.2; margin:8px 0; }
.yg-curriculum-course-card h2 a { color:inherit; text-decoration:none; }
.yg-curriculum-course-card p, .yg-curriculum-empty { color:#66738d; line-height:1.7; margin:0 0 12px; }
.yg-curriculum-inline-article { align-items:start; display:grid; gap:clamp(28px, 5vw, 62px); grid-template-columns:minmax(320px, .92fr) minmax(0, 1.08fr); }
.yg-curriculum-inline-article__media { aspect-ratio:1.22/1; background:#ffe5e1; border-radius:18px; overflow:hidden; }
.yg-curriculum-inline-article__media iframe,
.yg-curriculum-inline-article__media video,
.yg-curriculum-inline-article__media img { height:100%; object-fit:cover; width:100%; }
.yg-curriculum-inline-article__content { color:#566278; font-family:'Microsoft YaHei UI','PingFang SC',sans-serif; font-size:17px; line-height:1.9; max-width:720px; }
.yg-curriculum-inline-article__content h3 { color:var(--yg-course-ink); font-family:'Microsoft YaHei UI','PingFang SC',sans-serif; font-size:clamp(28px, 3vw, 42px); font-weight:800; letter-spacing:0; line-height:1.18; margin:0 0 22px; }
.yg-curriculum-inline-article__content p { margin:0 0 18px; }
@media (max-width: 1120px) { .yg-curriculum-category-grid, .yg-curriculum-filter-grid, .yg-curriculum-filter-grid--other { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .yg-curriculum-container { width:min(100% - 32px, 620px); } .yg-curriculum-hero { background-position:58% center; min-height:400px; padding:0; } .yg-curriculum-hero__grid, .yg-curriculum-story, .yg-curriculum-inline-article { grid-template-columns:1fr; } .yg-curriculum-category-nav__panel { grid-template-columns:repeat(2, minmax(0, 1fr)); } .yg-curriculum-category-nav button { font-size:14px; } .yg-curriculum-course-list--other { grid-template-columns:1fr; } .yg-curriculum-inline-article__content { font-size:15px; } }
@media (max-width: 520px) { .yg-curriculum-hero { background:linear-gradient(90deg, rgba(19,28,39,.72), rgba(19,28,39,.38)), var(--yg-curriculum-hero-image, #d77b73) 60% center/cover no-repeat; min-height:370px; padding:0; } .yg-curriculum-hero h1, .yg-curriculum-detail h1 { font-size:42px; } .yg-curriculum-hero p, .yg-curriculum-detail__hero p { font-size:15px; } .yg-curriculum-category-nav { margin-top:-22px; } .yg-curriculum-category-nav__panel { border-radius:13px; gap:2px; min-height:0; padding:6px; } .yg-curriculum-category-nav button { min-height:44px; padding:0 8px; } .yg-curriculum-category-grid, .yg-curriculum-filter-grid { grid-template-columns:1fr; } .yg-curriculum-category, .yg-curriculum-filter-card { min-height:0; } .yg-curriculum-category__media, .yg-curriculum-filter-card__media { aspect-ratio:1.55/1; } .yg-curriculum-category__body, .yg-curriculum-filter-card__body { min-height:166px; padding:20px 18px 18px; } .yg-curriculum-category h3, .yg-curriculum-filter-card h3 { font-size:22px; } .yg-curriculum-category p, .yg-curriculum-filter-card p { font-size:14px; } .yg-curriculum-course-card { grid-template-columns:1fr; padding:0; } .yg-curriculum-course-card__image { border-radius:0; } .yg-curriculum-course-card > div { padding:0 18px 18px; } }
@media (prefers-reduced-motion: reduce) { .yg-curriculum *, .yg-curriculum *::before, .yg-curriculum *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; } }

/* Restore the original footer brand lockup: icon badge plus text, without the later light plate. */
.site-footer .footer-brand__mark {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  gap: 12px;
  margin-bottom: 0.9rem;
  max-width: min(100%, 24rem);
  padding: 0;
  text-decoration: none;
  width: auto;
}

.site-footer .footer-brand__mark .brand-mark__badge {
  flex: 0 0 58px;
  height: 58px;
  width: 58px;
}

.site-footer .footer-brand__mark .brand-mark__badge--image {
  background: transparent;
  border-radius: 14px;
}

.site-footer .footer-brand__mark .brand-mark__badge-image {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.site-footer .footer-brand__mark .brand-mark__text strong {
  display: block;
  color: #fff7f2;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.site-footer .footer-brand__mark .brand-mark__text span {
  color: rgba(255, 247, 242, 0.72);
  display: block;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 4px;
}

.site-footer .footer-brand__logo-image {
  max-height: none;
  max-width: none;
}

.site-footer .footer-brand__mark .brand-mark__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(220px, 100%);
  max-height: 64px;
  filter: none;
  object-fit: contain;
  object-position: left center;
}

.site-footer .footer-brand__mark .brand-mark__badge {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
}

body.home { background: #fffaf8; }
body.home .floating-sidebar { display: none; }

/* Homepage navigation follows the approved mega-menu layout. */
body.home .yg-ref-site-header {
  position: relative;
  z-index: 100;
}

body.home .yg-ref-primary-nav {
  position: static;
}

body.home .yg-ref-primary-menu {
  gap: clamp(0.82rem, 1.35vw, 1.55rem);
}

body.home .yg-ref-primary-menu > li > a {
  min-height: 86px;
  white-space: nowrap;
}

body.home .yg-ref-primary-menu > li.menu-item-has-children > a::after {
  content: none;
}

body.home .yg-ref-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 1.6rem 0 1.85rem;
  background: rgba(255, 253, 252, 0.98);
  border-top: 1px solid rgba(255, 101, 101, 0.13);
  box-shadow: 0 18px 30px rgba(50, 31, 22, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

body.home .yg-ref-primary-nav:hover .yg-ref-mega-menu,
body.home .yg-ref-primary-nav:focus-within .yg-ref-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

body.home .yg-ref-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.6vw, 3rem);
  align-items: start;
}

body.home .yg-ref-mega-menu__section ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

body.home .yg-ref-mega-menu__title {
  color: #ff525f;
  font-size: 1rem;
  font-weight: 800;
}

body.home .yg-ref-mega-menu__section li + li {
  margin-top: 0.55rem;
}

body.home .yg-ref-mega-menu__section li a {
  color: #332b28;
  font-size: 0.93rem;
  line-height: 1.5;
}

body.home .yg-ref-mega-menu__section li a:hover,
body.home .yg-ref-mega-menu__section li a:focus-visible {
  color: #ff525f;
}

@media (max-width: 1180px) {
  body.home .yg-ref-primary-menu { gap: 0.8rem; }
  body.home .yg-ref-primary-menu > li > a { font-size: 0.88rem; }
  body.home .yg-ref-mega-menu__grid { gap: 1rem; }
}

@media (max-width: 980px) {
  body.home .yg-ref-primary-nav { position: absolute; }
  body.home .yg-ref-primary-menu > li > a { min-height: auto; }
  body.home .yg-ref-mega-menu {
    position: static;
    display: none;
    width: auto;
    margin: 0.6rem 0 0;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  body.home .site-header.is-menu-open .yg-ref-mega-menu { display: block; }
  body.home .yg-ref-mega-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1rem; }
}

@media (max-width: 520px) {
  body.home .yg-ref-mega-menu__grid { grid-template-columns: 1fr; }
}

/* Each first-level item owns its own panel; never combine all sections into one dropdown. */
body.home .yg-ref-primary-menu > li {
  position: relative;
}

body.home .yg-ref-menu-panel {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  z-index: 110;
  min-width: 10rem;
  max-width: min(31rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  background: rgba(255, 253, 252, 0.99);
  border: 1px solid rgba(255, 101, 101, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 26px rgba(50, 31, 22, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

body.home .yg-ref-primary-menu > li:hover > .yg-ref-menu-panel,
body.home .yg-ref-primary-menu > li:focus-within > .yg-ref-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

body.home .yg-ref-menu-panel ul {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.55rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.home .yg-ref-menu-panel li { margin: 0; }

body.home .yg-ref-menu-panel a {
  display: block;
  color: #332b28;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: nowrap;
}

body.home .yg-ref-menu-panel a:hover,
body.home .yg-ref-menu-panel a:focus-visible { color: #ff525f; }

body.home .yg-ref-primary-menu > li:nth-last-child(-n + 2) > .yg-ref-menu-panel {
  right: 0;
  left: auto;
  transform: translate(0, 8px);
}

body.home .yg-ref-primary-menu > li:nth-last-child(-n + 2):hover > .yg-ref-menu-panel,
body.home .yg-ref-primary-menu > li:nth-last-child(-n + 2):focus-within > .yg-ref-menu-panel {
  transform: translate(0, 0);
}

@media (max-width: 980px) {
  body.home .yg-ref-menu-panel {
    position: static;
    display: none;
    max-width: none;
    margin: 0.45rem 0 0.85rem;
    padding: 0.75rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    transform: none;
  }
  body.home .yg-ref-primary-menu > li:hover > .yg-ref-menu-panel,
  body.home .yg-ref-primary-menu > li:focus-within > .yg-ref-menu-panel { transform: none; }
  body.home .site-header.is-menu-open .yg-ref-primary-menu > li > .yg-ref-menu-panel { display: block; }
  body.home .yg-ref-menu-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .yg-ref-primary-menu > li:nth-last-child(-n + 2) > .yg-ref-menu-panel { transform: none; }
}

@media (max-width: 520px) {
  body.home .yg-ref-menu-panel ul { grid-template-columns: 1fr; }
}

/* Short menus stay on one horizontal line; only long regional lists form columns. */
body.home .yg-ref-menu-panel--3 ul { grid-template-columns: repeat(3, max-content); }
body.home .yg-ref-menu-panel--4 ul { grid-template-columns: repeat(4, max-content); }
body.home .yg-ref-menu-panel--9 ul { grid-template-columns: repeat(3, max-content); }

@media (max-width: 980px) {
  body.home .yg-ref-menu-panel--3 ul,
  body.home .yg-ref-menu-panel--4 ul,
  body.home .yg-ref-menu-panel--9 ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  body.home .yg-ref-menu-panel--3 ul,
  body.home .yg-ref-menu-panel--4 ul,
  body.home .yg-ref-menu-panel--9 ul { grid-template-columns: 1fr; }
}

/* 2026-08-28 mobile navigation and appointment select hotfix */
@media (max-width: 900px) {
  body.has-mobile-nav-open {
    overflow: hidden;
  }

  body .yg-ref-site-header {
    z-index: 1000;
  }

  body .yg-ref-site-header .header-toggle,
  body .yg-ref-site-header .hotline-chip--mobile {
    position: relative;
    z-index: 1002;
  }

  body .yg-ref-site-header .yg-ref-primary-nav[data-mobile-nav] {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--wpgw-header-height, 82px) + var(--wpgw-admin-offset, 0px) + 12px) 18px 24px;
    background: rgba(32, 30, 36, 0.32);
    overflow-y: auto;
  }

  body .yg-ref-site-header .yg-ref-primary-nav[data-mobile-nav].is-open {
    display: block;
  }

  body .yg-ref-site-header .yg-ref-primary-menu {
    width: min(88vw, 360px);
    max-height: calc(100dvh - var(--wpgw-header-height, 82px) - var(--wpgw-admin-offset, 0px) - 36px);
    margin: 0;
    padding: 16px;
    overflow-y: auto;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(35, 22, 18, 0.18);
  }

  body .yg-ref-site-header .yg-ref-primary-menu > li > a {
    min-height: 0;
    padding: 10px 4px;
    font-size: 15px;
    line-height: 1.35;
  }

  body .yg-ref-site-header .yg-ref-menu-panel {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    margin: 4px 0 10px;
    padding: 8px 0 4px 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  body .yg-ref-site-header .yg-ref-menu-panel ul,
  body.home .yg-ref-site-header .yg-ref-menu-panel--3 ul,
  body.home .yg-ref-site-header .yg-ref-menu-panel--4 ul,
  body.home .yg-ref-site-header .yg-ref-menu-panel--9 ul {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body .yg-ref-site-header .yg-ref-menu-panel a {
    white-space: normal;
    font-size: 14px;
    line-height: 1.45;
  }
}

@media (max-width: 767px) {
  body .appointment-form .custom-select {
    position: relative;
  }

  body .appointment-form .custom-select__native {
    z-index: 4;
    pointer-events: auto !important;
    cursor: pointer;
  }

  body .appointment-form .custom-select__trigger {
    pointer-events: none;
  }
}
.yg-ref-home { overflow: hidden; color: var(--yg-ink); background: #fffaf7; }
.yg-ref-home *, .yg-ref-home *::before, .yg-ref-home *::after { box-sizing: border-box; }
.yg-ref-home .site-container { width: min(var(--yg-shell), calc(100% - 44px)); margin-inline: auto; }
.yg-ref-section { padding: 62px 0; }
.yg-ref-section:nth-child(even) { background: rgba(255,255,255,.7); }
.yg-ref-heading { text-align: center; max-width: 730px; margin: 0 auto 28px; }
.yg-ref-heading--compact { margin-top: 48px; }
.yg-ref-heading h2, .yg-ref-course h2, .yg-ref-compare h2, .yg-ref-appointment h2 { color: var(--yg-ink); font-size: 30px; line-height: 1.25; letter-spacing: 0; margin: 10px 0; font-weight: 800; }
.yg-ref-heading p, .yg-ref-heading + p, .yg-ref-about p, .yg-ref-course p, .yg-ref-compare p, .yg-ref-appointment p { color: var(--yg-muted); line-height: 1.8; margin: 0; }
.yg-ref-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--yg-coral-deep); font-size: 13px; font-weight: 800; }
.yg-ref-kicker::before { content: ''; width: 42px; height: 2px; background: linear-gradient(90deg, var(--yg-peach), var(--yg-coral)); }
.yg-ref-button { align-items: center; border-radius: 999px; display: inline-flex; font-size: 14px; font-weight: 800; justify-content: center; min-height: 42px; padding: 0 22px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.yg-ref-button:hover { transform: translateY(-2px); }
.yg-ref-button--primary { color: #fff; background: linear-gradient(115deg, var(--yg-coral-deep), var(--yg-peach)); box-shadow: 0 14px 28px rgba(255, 95, 101, .24); }
.yg-ref-button--quiet { color: var(--yg-ink); background: #fff; border: 1px solid #ecebf0; box-shadow: 0 12px 24px rgba(55, 62, 80, .08); }
.yg-ref-center { text-align: center; margin: 24px 0 0; }

/* Hero */
.yg-ref-hero { min-height: 640px; padding: 52px 0 30px; position: relative; background: linear-gradient(105deg, #fff9f6 0%, #fff8f5 48%, #ffefeb 100%); }
.yg-ref-hero__grid { min-height: 442px; display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: center; gap: clamp(52px, 6vw, 88px); }
.yg-ref-hero__copy { max-width: 640px; padding-left: 0; }
.yg-ref-hero__badges { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.yg-ref-hero__badges .yg-ref-kicker { min-height: 31px; padding: 0 17px 0 12px; border-radius: 999px; background: rgba(255, 238, 232, .88); }
.yg-ref-hero__brand { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 18px; border-radius: 999px; background: #fff0ed; color: var(--yg-coral-deep); font-size: 13px; font-weight: 850; }
.yg-ref-hero h1 { color: var(--yg-ink); font-size: clamp(46px, 4.6vw, 64px); line-height: 1.12; letter-spacing: 0; margin: 0 0 26px; font-weight: 850; max-width: 100%; text-wrap: balance; overflow-wrap: anywhere; }
.yg-ref-hero h1 strong, .yg-ref-hero h1 em { color: var(--yg-coral); font-style: normal; }
.yg-ref-hero__copy p { color: #40526e; font-size: 17px; line-height: 1.86; margin: 0; max-width: 640px; font-weight: 700; }
.yg-ref-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.yg-ref-hero .yg-ref-button { min-height: 56px; min-width: 126px; padding: 0 30px; font-size: 16px; }
.yg-ref-hero__media { height: 430px; position: relative; border-radius: 36px; background: linear-gradient(135deg, #fff2ee 0%, #fff8f4 62%, #fff1ec 100%); box-shadow: none; overflow: visible; }
.yg-ref-hero__carousel { height: 100%; position: relative; }
.yg-ref-hero__slide { inset: 0; opacity: 0; pointer-events: none; position: absolute; transform: scale(.985); transition: opacity .5s ease, transform .5s ease; }
.yg-ref-hero__slide.is-active { opacity: 1; pointer-events: auto; transform: scale(1); z-index: 1; }
.yg-ref-hero__main { position: absolute; left: clamp(58px, 8vw, 96px); top: 50%; width: 324px; height: 324px; border: 7px solid #fff; border-radius: 50%; overflow: hidden; margin: 0; box-shadow: 0 24px 52px rgba(126,76,66,.16); transform: translateY(-50%); }
.yg-ref-hero__main img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; padding: 0; opacity: 1; filter: none; mix-blend-mode: normal; }
.yg-ref-hero__bubble { position: absolute; z-index: 2; margin: 0; background: #fff; border: 5px solid #fff; border-radius: 50%; box-shadow: 0 15px 30px rgba(88,55,48,.16); overflow: hidden; }
.yg-ref-hero__bubble img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 1; filter: none; mix-blend-mode: normal; }
.yg-ref-hero__bubble--top { width: 94px; height: 94px; right: clamp(130px, 17vw, 190px); top: 86px; }
.yg-ref-hero__bubble--bottom { width: 106px; height: 106px; right: clamp(88px, 14vw, 150px); bottom: 78px; }
.yg-ref-hero__dots { align-items: center; bottom: 20px; display: flex; gap: 9px; justify-content: center; left: 0; position: absolute; right: 0; z-index: 3; }
.yg-ref-hero__dots button { appearance: none; background: rgba(255, 112, 118, .32); border: 0; border-radius: 999px; cursor: pointer; height: 9px; padding: 0; transition: background-color .2s ease, transform .2s ease; width: 9px; }
.yg-ref-hero__dots button[aria-current="true"] { background: var(--yg-coral); width: 26px; }
.yg-ref-hero__dots button:hover,
.yg-ref-hero__dots button:focus-visible { background: var(--yg-coral-deep); outline: none; transform: translateY(-1px); }
.yg-ref-statbar { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; background: transparent; border: 0; border-radius: 0; box-shadow: none; min-height: 112px; margin-top: 34px; position: relative; transform: translateY(0); overflow: visible; }
.yg-ref-statbar__item { text-align: center; padding: 17px 14px; position: relative; min-width: 0; }
.yg-ref-statbar__item:not(:last-child)::after { content: ''; width: 1px; height: 84px; background: #ffdfdd; position: absolute; right: 0; top: 17px; }
.yg-ref-statbar strong { display: block; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; color: var(--yg-coral-deep); font-weight: 900; }
.yg-ref-statbar span { display: block; color: #53617a; font-size: 15px; margin-top: 10px; font-weight: 700; line-height: 1.35; }

/* About and cards */
.yg-ref-about { padding-top: 112px; background: #fff; }
.yg-ref-about__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); gap: 68px; align-items: center; }
.yg-ref-about__copy h2 { font-size: 32px; margin: 12px 0 20px; line-height: 1.22; }
.yg-ref-about__copy p + p { margin-top: 20px; }
.yg-ref-about__metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; padding: 4px 0; border-radius: 0; background: transparent; border: 0; box-shadow: none; }
.yg-ref-about__metrics > div { position: relative; min-width: 0; padding: 0 12px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.yg-ref-about__metrics > div:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 5px; width: 1px; height: calc(100% - 10px); background: #ffd6d0; }
.yg-ref-about__metrics strong { color: var(--yg-coral); display: block; font-size: 18px; line-height: 1.25; }
.yg-ref-about__metrics span { color: #6d7483; display: block; font-size: 12px; margin-top: 6px; line-height: 1.35; }
.yg-ref-about__cards { display: grid; gap: 18px; }
.yg-ref-about-card { position: relative; overflow: hidden; min-height: 118px; padding: 24px 28px; border-radius: 16px; background: #fffdfc; border: 1px solid #f4dfdb; box-shadow: 0 14px 34px rgba(104, 64, 58, .06); }
.yg-ref-about-card::before,
.yg-ref-about-card::after,
.yg-ref-about-card > span { content: ''; position: absolute; border-radius: 999px; pointer-events: none; }
.yg-ref-about-card::before { width: 72px; height: 72px; right: -24px; top: -24px; background: rgba(255, 112, 118, .10); }
.yg-ref-about-card::after { width: 42px; height: 42px; right: 44px; bottom: -18px; border: 1px solid rgba(255, 112, 118, .18); }
.yg-ref-about-card > span { width: 16px; height: 16px; right: 22px; top: 24px; background: rgba(255, 112, 118, .13); box-shadow: -28px 56px 0 rgba(255, 180, 150, .10); }
.yg-ref-about-card h3 { position: relative; z-index: 1; color: var(--yg-coral-deep); font-size: 16px; margin: 0 0 12px; line-height: 1.3; }
.yg-ref-about-card p { position: relative; z-index: 1; color: #4f5868; font-size: 15px; line-height: 1.7; margin: 0; font-weight: 650; }
.home .site-main > #services.yg-ref-process,
.yg-ref-process { background: linear-gradient(180deg, #fff 0, #fff8f7 100%); }
.yg-ref-heading--center { margin-left: auto; margin-right: auto; max-width: 720px; text-align: center; }
.yg-ref-heading--center .yg-ref-kicker { justify-content: center; letter-spacing: .16em; }
.yg-ref-heading--center .yg-ref-kicker::before { display: none; }
.yg-ref-process__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.yg-ref-process__more { display: flex; justify-content: center; margin: 18px 0 34px; }
.yg-ref-process__more a { align-items: center; background: #fff; border: 1px solid rgba(255, 95, 101, .28); border-radius: 999px; box-shadow: 0 12px 28px rgba(255, 95, 101, .10); color: var(--yg-coral-deep); display: inline-flex; font-size: 14px; font-weight: 800; min-height: 42px; padding: 0 22px; text-decoration: none; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease; }
.yg-ref-process__more a::after { content: '›'; font-size: 20px; line-height: 1; margin-left: 8px; transform: translateY(-1px); }
.yg-ref-process__more a:hover { background: #fff5f3; border-color: rgba(255, 95, 101, .52); box-shadow: 0 16px 32px rgba(255, 95, 101, .14); color: #f04c55; transform: translateY(-1px); }
.yg-ref-process__more a:focus-visible { outline: 3px solid rgba(255, 95, 101, .28); outline-offset: 4px; }
.yg-ref-process__grid article { background: #fff; border: 1px solid #ffe8e3; border-radius: 22px; box-shadow: 0 18px 40px rgba(112, 69, 62, .08); min-height: 238px; overflow: hidden; padding: 0; position: relative; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.yg-ref-process__grid article:hover,
.yg-ref-process__grid article:focus-within { border-color: rgba(255, 95, 101, .42); box-shadow: 0 24px 48px rgba(112, 69, 62, .12); transform: translateY(-3px); }
.yg-ref-process__grid article > a { color: inherit; display: block; height: 100%; min-height: inherit; padding: 30px 24px 28px; position: relative; text-decoration: none; z-index: 1; }
.yg-ref-process__grid article > a:focus-visible { border-radius: 18px; outline: 3px solid rgba(255, 95, 101, .28); outline-offset: -8px; }
.yg-ref-process__grid article::before,
.yg-ref-process__grid article::after { border-radius: 999px; content: ''; pointer-events: none; position: absolute; }
.yg-ref-process__grid article::before { background: rgba(255, 112, 118, .10); height: 78px; right: -28px; top: -30px; width: 78px; }
.yg-ref-process__grid article::after { border: 1px solid rgba(255, 112, 118, .18); bottom: 24px; height: 36px; right: 20px; width: 36px; }
.yg-ref-process__grid i { color: var(--yg-coral); display: block; font-size: 17px; font-style: normal; font-weight: 900; letter-spacing: .04em; line-height: 1; position: relative; z-index: 1; }
.yg-ref-process__grid i::after { background: rgba(255, 183, 156, .20); border-radius: 999px; content: ''; height: 14px; left: 46px; position: absolute; top: -2px; width: 14px; }
.yg-ref-process h3, .yg-ref-problems h3, .yg-ref-advantages h3 { font-size: 14px; margin: 12px 0 7px; }
.yg-ref-process h3 { color: var(--yg-ink); font-size: 20px; line-height: 1.25; margin: 28px 0 14px; position: relative; z-index: 1; }
.yg-ref-process p, .yg-ref-problems p, .yg-ref-advantages p { color: #7a8496; font-size: 11px; line-height: 1.65; margin: 0; }
.yg-ref-process p { color: #5e6878; font-size: 14px; line-height: 1.78; position: relative; z-index: 1; }
.home .site-main > #network.yg-ref-problems,
.yg-ref-problems { background: linear-gradient(180deg, #fff 0, #fffaf8 100%); }
.yg-ref-problems__heading p { color: #737987; font-size: 15px; line-height: 1.8; margin: 16px auto 0; max-width: 560px; }
.yg-ref-problems__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 46px; }
.yg-ref-problems__grid article { background: #fff; border: 1px solid #ffe5e0; border-radius: 22px; box-shadow: 0 16px 34px rgba(112, 69, 62, .07); min-height: 154px; overflow: hidden; padding: 30px 24px 24px; position: relative; }
.yg-ref-problems__grid article::before,
.yg-ref-problems__grid article::after { content: ''; pointer-events: none; position: absolute; }
.yg-ref-problems__grid article::before { background: rgba(255, 112, 118, .06); border-radius: 999px; height: 60px; right: -22px; top: -22px; width: 60px; }
.yg-ref-problems__grid article::after { background: var(--yg-coral); border-radius: 999px; height: 3px; left: 22px; right: 22px; top: 0; }
.yg-ref-problems__grid h3 { color: var(--yg-ink); font-size: 17px; line-height: 1.35; margin: 0 0 14px; position: relative; z-index: 1; }
.yg-ref-problems__grid p { color: #626b79; font-size: 13px; line-height: 1.8; margin: 0; position: relative; z-index: 1; }
.yg-ref-problems__support { background: rgba(255, 253, 252, .92); border: 1px solid #ffe6e1; border-radius: 22px; box-shadow: 0 14px 32px rgba(112, 69, 62, .06); margin-top: 26px; padding: 26px 28px 28px; }
.yg-ref-problems__support > strong { color: var(--yg-coral); display: block; font-size: 13px; letter-spacing: .04em; margin-bottom: 20px; }
.yg-ref-problems__support > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.yg-ref-problems__support article { position: relative; }
.yg-ref-problems__support h3 { color: var(--yg-ink); font-size: 17px; line-height: 1.35; margin: 0 0 10px; padding-left: 18px; position: relative; }
.yg-ref-problems__support h3::before { background: var(--yg-coral); border-radius: 999px; content: ''; height: 7px; left: 0; position: absolute; top: .48em; width: 7px; }
.yg-ref-problems__support p { color: #5f6876; font-size: 13px; line-height: 1.75; margin: 0; }
.yg-ref-advantages__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.yg-ref-advantages__grid article { background: linear-gradient(145deg, #fff, #fff8f7); border: 1px solid #ffe8e5; border-radius: 10px; min-height: 154px; padding: 18px 14px; }
.yg-ref-advantages__grid b { color: var(--yg-coral); font-size: 16px; }

/* Advantages and comparison */
.home .site-main > #courses.yg-ref-course,
.yg-ref-course { background: linear-gradient(180deg, #fff 0, #fffaf8 100%); }
.yg-ref-course__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.yg-ref-course__cards article { background: #fff; border: 1px solid #eee1dd; border-radius: 22px; box-shadow: 0 16px 34px rgba(112, 69, 62, .06); min-height: 228px; overflow: hidden; padding: 34px 28px 30px; position: relative; }
.yg-ref-course__cards article::before,
.yg-ref-course__cards article::after { border-radius: 999px; content: ''; pointer-events: none; position: absolute; }
.yg-ref-course__cards article::before { background: rgba(255, 112, 118, .07); height: 76px; right: -28px; top: -28px; width: 76px; }
.yg-ref-course__cards article::after { border: 1px solid rgba(255, 112, 118, .15); bottom: 24px; height: 34px; right: 24px; width: 34px; }
.yg-ref-course__cards i { align-items: center; background: #fff5f2; border-radius: 10px; color: var(--yg-coral); display: inline-flex; font-size: 13px; font-style: normal; font-weight: 900; height: 32px; justify-content: center; letter-spacing: .02em; margin-bottom: 24px; position: relative; width: 32px; z-index: 1; }
.yg-ref-course__cards h3 { color: var(--yg-ink); font-size: 18px; line-height: 1.35; margin: 0 0 14px; position: relative; z-index: 1; }
.yg-ref-course__cards p { color: #606a78; font-size: 13px; line-height: 1.78; margin: 0; position: relative; z-index: 1; }
.yg-ref-course__cards span, .yg-ref-story-grid span { color: var(--yg-coral); font-size: 11px; display: block; }
.yg-ref-compare { background: #fffaf8; }
.yg-ref-compare[data-yg-compare-link] { cursor: pointer; }
.yg-ref-compare[data-yg-compare-link]:focus-visible { outline: 3px solid rgba(255, 95, 101, .24); outline-offset: -8px; }
.yg-ref-compare__grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 48px; align-items: center; }
.yg-ref-compare__copy { position: relative; }
.yg-ref-compare__copy::before { border: 3px solid rgba(255, 112, 118, .10); border-radius: 999px; content: ''; height: 200px; left: -72px; position: absolute; top: 142px; width: 200px; z-index: 0; }
.yg-ref-compare__copy > * { position: relative; z-index: 1; }
.yg-ref-compare__copy h2 { font-size: 34px; line-height: 1.25; margin: 14px 0 20px; max-width: 360px; }
.yg-ref-compare__copy p { color: #606a78; font-size: 14px; line-height: 1.9; max-width: 440px; }
.yg-ref-compare__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.yg-ref-compare__actions .yg-ref-button { min-height: 46px; padding: 0 24px; }
.yg-ref-compare__actions > a:not(.yg-ref-button) { color: var(--yg-coral); font-size: 13px; font-weight: 800; text-decoration: none; }
.yg-ref-compare__table-wrap { background: rgba(255,255,255,.86); border: 1px solid #ffe6e1; border-radius: 22px; box-shadow: 0 18px 40px rgba(112, 69, 62, .07); overflow: hidden; }
.yg-ref-compare__table { border-collapse: collapse; table-layout: fixed; width: 100%; }
.yg-ref-compare__table th,
.yg-ref-compare__table td { border-bottom: 1px solid #f4e4df; color: #4f5868; font-size: 13px; line-height: 1.7; padding: 18px 20px; text-align: left; vertical-align: middle; }
.yg-ref-compare__table thead th { color: var(--yg-ink); font-size: 12px; font-weight: 900; line-height: 1.45; }
.yg-ref-compare__table th:first-child { color: var(--yg-ink); font-weight: 900; width: 18%; }
.yg-ref-compare__table th:nth-child(2),
.yg-ref-compare__table td:nth-child(2) { background: #fff1ec; color: var(--yg-coral-deep); font-weight: 800; width: 42%; }
.yg-ref-compare__table th:nth-child(3),
.yg-ref-compare__table td:nth-child(3) { width: 40%; }
.yg-ref-compare__table tbody tr:last-child th,
.yg-ref-compare__table tbody tr:last-child td { border-bottom: 0; }

/* Stories, search and map */
.yg-ref-impact { background: #fffaf8; }
.yg-ref-impact__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.yg-ref-impact__stats > div { background: #fff; border-radius: 10px; padding: 18px; text-align: center; border: 1px solid #fff0ed; }
.yg-ref-impact__stats strong { color: var(--yg-coral); display: block; font-size: 22px; }
.yg-ref-impact__stats span { color: #798294; display: block; font-size: 11px; margin-top: 5px; }
.yg-ref-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.yg-ref-story-grid > a { background: #fff; border: 1px solid #ffe7e4; border-radius: 10px; padding: 10px; text-decoration: none; box-shadow: 0 9px 22px rgba(114,80,74,.06); }
.yg-ref-story-grid img { border-radius: 7px; display: block; height: 135px; object-fit: cover; width: 100%; margin-bottom: 11px; }
.yg-ref-story-grid h3 { color: var(--yg-ink); font-size: 14px; line-height: 1.35; margin: 7px 0; }
.yg-ref-story-grid p { color: #768095; font-size: 11px; line-height: 1.55; margin: 0; }
.yg-ref-team { background: radial-gradient(circle at 16% 18%, rgba(255,159,114,.16), transparent 28%), linear-gradient(180deg, #fffdfb 0%, #fff8f6 100%); }
.yg-ref-team__heading { margin-bottom: 16px; }
.yg-ref-team__more { display: flex; justify-content: center; margin: 0 0 30px; }
.yg-ref-team__more a { align-items: center; background: #fff; border: 1px solid rgba(255, 95, 101, .28); border-radius: 999px; box-shadow: 0 12px 28px rgba(255, 95, 101, .10); color: var(--yg-coral-deep); display: inline-flex; font-size: 14px; font-weight: 800; min-height: 42px; padding: 0 22px; text-decoration: none; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease; }
.yg-ref-team__more a::after { content: '›'; font-size: 20px; line-height: 1; margin-left: 8px; transform: translateY(-1px); }
.yg-ref-team__more a:hover { background: #fff5f3; border-color: rgba(255, 95, 101, .52); box-shadow: 0 16px 32px rgba(255, 95, 101, .14); color: #f04c55; transform: translateY(-1px); }
.yg-ref-team__more a:focus-visible { outline: 3px solid rgba(255, 95, 101, .28); outline-offset: 4px; }
.yg-ref-team__shell { max-width: 1060px; margin-inline: auto; }
.yg-ref-team__feature { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center; min-height: 218px; padding: clamp(22px, 3.2vw, 34px); border: 1px solid #ffe3df; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 20px 44px rgba(121,63,55,.1); overflow: hidden; }
.yg-ref-team__feature::before, .yg-ref-team__feature::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,95,101,.08); pointer-events: none; }
.yg-ref-team__feature::before { width: 118px; height: 118px; right: 46px; top: -52px; }
.yg-ref-team__feature::after { width: 72px; height: 72px; right: 160px; bottom: 22px; }
.yg-ref-team__portrait { position: relative; z-index: 1; width: 150px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #ff7a7f, #ffb083); color: #fff; font-size: 42px; font-weight: 900; box-shadow: 0 14px 28px rgba(255,95,101,.22); }
.yg-ref-team__portrait img, .yg-ref-team__thumb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yg-ref-team__feature-copy { position: relative; z-index: 1; min-width: 0; }
.yg-ref-team__feature-copy > span { display: inline-flex; width: fit-content; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: #fff0ef; color: var(--yg-coral-deep); font-size: 12px; font-weight: 850; }
.yg-ref-team__feature h3 { margin: 0 0 10px; color: var(--yg-ink); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.15; }
.yg-ref-team__feature p { max-width: 68ch; margin: 0; color: var(--yg-muted); font-size: 15px; line-height: 1.82; }
.yg-ref-team__link { display: inline-flex; margin-top: 18px; color: var(--yg-coral-deep); font-size: 14px; font-weight: 850; text-decoration: none; }
.yg-ref-team__link:hover, .yg-ref-team__link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.yg-ref-team__rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(184px, 220px); gap: 14px; margin-top: 18px; padding: 4px 4px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: rgba(255,95,101,.45) rgba(255,228,227,.8); }
.yg-ref-team__thumb { scroll-snap-align: center; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 92px; padding: 14px; border: 1px solid #ffe3df; border-radius: 18px; background: rgba(255,255,255,.9); color: var(--yg-ink); text-align: left; cursor: pointer; box-shadow: 0 12px 24px rgba(121,63,55,.06); transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.yg-ref-team__thumb:hover { transform: translateY(-2px); border-color: rgba(255,95,101,.45); }
.yg-ref-team__thumb:focus-visible { outline: 3px solid rgba(255,95,101,.28); outline-offset: 3px; }
.yg-ref-team__thumb.is-active { background: #fff2ef; border-color: var(--yg-coral); box-shadow: 0 16px 30px rgba(255,95,101,.16); }
.yg-ref-team__thumb-media { width: 58px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #ff7a7f, #ffb083); color: #fff; }
.yg-ref-team__thumb-media b { font-size: 16px; line-height: 1; }
.yg-ref-team__thumb-copy { min-width: 0; display: grid; gap: 4px; }
.yg-ref-team__thumb-copy strong { display: block; overflow: hidden; color: var(--yg-ink); font-size: 15px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.yg-ref-team__thumb-copy small { display: block; overflow: hidden; color: var(--yg-muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.yg-ref-team__empty { max-width: 560px; margin: 0 auto; padding: 28px; border: 1px solid #ffe3df; border-radius: 20px; background: #fff; text-align: center; }
.yg-ref-team__empty h3 { margin: 0 0 8px; color: var(--yg-ink); }
.yg-ref-team__empty p { margin: 0 0 18px; color: var(--yg-muted); }
.yg-ref-search { background: #fff; }
.yg-ref-search__bar { background: #fffafa; border: 1px solid #ffd9d6; border-radius: 999px; display: flex; max-width: 680px; margin: 0 auto 24px; padding: 5px; box-shadow: 0 14px 30px rgba(255,95,101,.08); }
.yg-ref-search__bar input { background: transparent; border: 0; color: var(--yg-ink); flex: 1; min-width: 0; outline: none; padding: 0 18px; font-size: 13px; }
.yg-ref-search__bar input:focus-visible { box-shadow: inset 0 -2px 0 rgba(255,95,101,.35); }
.yg-ref-search__bar button { background: linear-gradient(115deg, var(--yg-coral), var(--yg-peach)); border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-weight: 800; min-height: 39px; padding: 0 27px; }
.yg-ref-city-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.yg-ref-city-grid article { background: #fff; border: 1px solid #ffe5e2; border-radius: 12px; min-height: 126px; padding: 15px 16px; box-shadow: 0 10px 22px rgba(114,80,74,.05); }
.yg-ref-city-grid h3 { color: var(--yg-ink); font-size: 14px; margin: 0 0 8px; }
.yg-ref-city-grid a { color: #218bad; display: block; font-size: 11px; font-weight: 700; line-height: 1.75; text-decoration: none; overflow-wrap: anywhere; }
.yg-ref-city-grid a:hover, .yg-ref-city-grid a:focus-visible { color: var(--yg-coral-deep); text-decoration: underline; text-underline-offset: 3px; }
.yg-ref-map { background: #fff4f0; }
.yg-ref-map .branch-section { display: block; }
.yg-ref-map .yg-ref-heading { margin-bottom: 28px; }
.yg-ref-map__layout { background: #fff; border: 1px solid #ffd9d2; border-radius: 18px; display: grid; grid-template-columns: .82fr 1.18fr; min-height: 420px; overflow: hidden; box-shadow: 0 18px 42px rgba(128, 73, 61, .08); }
.yg-ref-map__selector { background: linear-gradient(180deg, #fff 0%, #fffaf8 100%); border-right: 1px solid #ffe5de; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 16px; min-height: 420px; padding: 22px; }
.yg-ref-map__selector-head { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.yg-ref-map__selector-head strong { color: var(--yg-ink); font-size: 18px; font-weight: 850; }
.yg-ref-map__selector-head span { color: #8a6b63; font-size: 13px; font-weight: 760; white-space: nowrap; }
.yg-ref-map__filters { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yg-ref-map__filters label { display: grid; gap: 7px; min-width: 0; }
.yg-ref-map__filters label span { color: #806f6b; font-size: 12px; font-weight: 760; }
.yg-ref-map__filters select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23ff5f65' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid #ffdcd5; border-radius: 14px; color: var(--yg-ink); font-size: 14px; font-weight: 720; min-height: 46px; outline: none; padding: 0 38px 0 14px; width: 100%; }
.yg-ref-map__filters select:focus { border-color: rgba(255, 95, 101, .55); box-shadow: 0 0 0 4px rgba(255, 95, 101, .10); }
.yg-ref-map__branches { align-content: start; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 258px; overflow: auto; padding: 2px 2px 10px; }
.yg-ref-map__branch { color: var(--yg-ink); cursor: pointer; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 9px; row-gap: 4px; min-width: 0; padding: 12px 11px 11px; border: 1px solid #ffe5de; border-radius: 12px; background: #fff; text-align: left; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.yg-ref-map__branch:hover,
.yg-ref-map__branch:focus-visible,
.yg-ref-map__branch.is-active { background: #fff7f4; border-color: rgba(255, 95, 101, .48); box-shadow: 0 10px 22px rgba(255, 95, 101, .10); outline: none; transform: translateY(-1px); }
.yg-ref-map__branch[hidden] { display: none; }
.yg-ref-map__branch i { background: var(--yg-coral); border-radius: 50%; height: 7px; margin-top: 5px; width: 7px; }
.yg-ref-map__branch strong { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.yg-ref-map__branch span { align-self: start; color: var(--yg-coral-deep); font-size: 10px; font-weight: 800; line-height: 1.45; white-space: nowrap; }
.yg-ref-map__branch small { color: #7a8496; font-size: 10px; grid-column: 2 / 4; line-height: 1.5; margin-top: 1px; overflow-wrap: anywhere; }
.yg-ref-map__branch em { color: var(--yg-coral-deep); font-size: 10px; font-style: normal; font-weight: 850; grid-column: 2 / 4; margin-top: 2px; }
.yg-ref-map__empty { color: #7a8496; font-size: 12px; line-height: 1.6; }
.yg-ref-map__canvas { border: 0; border-radius: 0; height: 420px; min-height: 0; margin: 0; width: 100%; }
.yg-ref-map__canvas .branch-map__canvas { height: 100%; }
.yg-ref-map__summary { max-width: 900px; margin: 20px auto 0; text-align: center; }
.yg-ref-map__summary h3 { color: var(--yg-ink); font-size: 22px; line-height: 1.3; margin: 0 0 8px; font-weight: 900; }
.yg-ref-map__summary p { color: var(--yg-muted); font-size: 13px; line-height: 1.85; margin: 0; }
.yg-ref-history { background: #fffaf8; }
.yg-ref-history__track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; }
.yg-ref-history__track::before { background: #ffd7d5; content: ''; height: 1px; left: 5%; position: absolute; right: 5%; top: 14px; }
.yg-ref-history__track article { position: relative; padding: 31px 9px 0; }
.yg-ref-history__track article::before { background: #fff; border: 3px solid var(--yg-coral); border-radius: 50%; content: ''; height: 10px; left: 9px; position: absolute; top: 8px; width: 10px; z-index: 1; }
.yg-ref-history time { color: var(--yg-coral); font-size: 14px; font-weight: 800; }
.yg-ref-history h3 { font-size: 12px; line-height: 1.45; margin: 8px 0 4px; }
.yg-ref-history p { color: #7c8494; font-size: 10px; line-height: 1.55; margin: 0; }

/* FAQ and appointment */
.yg-ref-faq { background: linear-gradient(180deg, #fffdfc 0, #fff7f5 100%); }
.yg-ref-faq__heading { margin-bottom: 34px; }
.yg-ref-faq__heading h2 { font-size: clamp(34px, 4.1vw, 48px); line-height: 1.12; margin-top: 8px; }
.yg-ref-faq__list { display: grid; gap: 12px; max-width: 920px; margin: 0 auto; }
.yg-ref-faq__item { position: relative; overflow: hidden; border: 1px solid rgba(255, 161, 147, .42); border-radius: 18px; background: rgba(255, 255, 255, .88); box-shadow: 0 12px 30px rgba(116, 72, 65, .05); transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease, background-color .22s ease; }
.yg-ref-faq__item:hover,
.yg-ref-faq__item:focus-within { border-color: rgba(255, 95, 101, .58); box-shadow: 0 18px 36px rgba(116, 72, 65, .09); transform: translateY(-1px); }
.yg-ref-faq__item.is-open { background: #fff; border-color: rgba(255, 95, 101, .68); box-shadow: 0 20px 42px rgba(255, 95, 101, .12); }
.yg-ref-faq__item h3 { margin: 0; }
.yg-ref-faq__button { appearance: none; display: grid; grid-template-columns: 58px minmax(0, 1fr) 34px; align-items: center; gap: 16px; width: 100%; min-height: 70px; padding: 0 22px; border: 0; background: transparent; color: var(--yg-ink); cursor: pointer; text-align: left; }
.yg-ref-faq__button:focus-visible { outline: 3px solid rgba(255, 95, 101, .28); outline-offset: -5px; border-radius: 16px; }
.yg-ref-faq__number { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; background: #fff2ef; color: var(--yg-coral-deep); font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(255, 95, 101, .16); }
.yg-ref-faq__item.is-open .yg-ref-faq__number { color: #fff; background: linear-gradient(135deg, var(--yg-coral-deep), var(--yg-peach)); box-shadow: 0 12px 24px rgba(255, 95, 101, .22); }
.yg-ref-faq__question { display: block; min-width: 0; color: #1e293f; font-size: 17px; font-weight: 850; line-height: 1.45; }
.yg-ref-faq__toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fff6f3; box-shadow: inset 0 0 0 1px rgba(255, 95, 101, .18); }
.yg-ref-faq__toggle::before,
.yg-ref-faq__toggle::after { content: ''; position: absolute; width: 13px; height: 2px; border-radius: 999px; background: var(--yg-coral-deep); transition: transform .22s ease, opacity .22s ease; }
.yg-ref-faq__toggle::after { transform: rotate(90deg); }
.yg-ref-faq__item.is-open .yg-ref-faq__toggle::after { opacity: 0; transform: rotate(0); }
.yg-ref-faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.yg-ref-faq__item.is-open .yg-ref-faq__panel { grid-template-rows: 1fr; }
.yg-ref-faq__answer { overflow: hidden; }
.yg-ref-faq__answer p { max-width: 760px; color: #5b667b; font-size: 15px; line-height: 1.85; margin: 0; padding: 0 76px 24px 96px; }
.yg-ref-cta { background: #fff7f5; padding: 22px 0 24px; }
.yg-ref-cta .site-container { position: relative; overflow: hidden; background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 190, 180, .46); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 32px; box-shadow: 0 18px 46px rgba(116, 72, 65, .07); }
.yg-ref-cta .site-container::before { content: ''; position: absolute; right: 168px; top: -42px; width: 130px; height: 130px; border-radius: 999px; background: rgba(255, 95, 101, .08); pointer-events: none; }
.yg-ref-cta h2 { color: var(--yg-ink); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.28; margin: 0 0 8px; font-weight: 900; }
.yg-ref-cta p { color: #566178; font-size: 15px; line-height: 1.7; margin: 0; }
.yg-ref-cta span { display: none; }
.yg-ref-appointment { background: linear-gradient(180deg, #fff7f5 0, #fffaf8 100%); padding-top: 28px; }
.yg-ref-appointment__heading { max-width: 760px; margin: 0 auto clamp(26px, 3vw, 38px); text-align: center; }
.yg-ref-appointment__heading h2 { margin-top: 12px; }
.yg-ref-appointment__heading p { max-width: 680px; margin: 12px auto 0; color: #66738a; font-size: 15px; line-height: 1.9; }
.yg-ref-appointment__layout { position: relative; overflow: hidden; background: rgba(255,255,255,.96); border: 1px solid rgba(255, 184, 174, .56); border-radius: 24px; display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: clamp(26px, 4vw, 54px); padding: clamp(26px, 4vw, 48px); box-shadow: 0 24px 60px rgba(111, 70, 63, .10); }
.yg-ref-appointment__layout--form-only { grid-template-columns: 1fr; }
.yg-ref-appointment__layout::before,
.yg-ref-appointment__layout::after { content: ''; position: absolute; border-radius: 999px; pointer-events: none; }
.yg-ref-appointment__layout::before { width: 220px; height: 220px; left: -92px; bottom: -112px; background: rgba(255, 95, 101, .08); }
.yg-ref-appointment__layout::after { width: 140px; height: 140px; right: -58px; top: -64px; border: 1px solid rgba(255, 95, 101, .18); }
.yg-ref-appointment__copy,
.yg-ref-appointment__form-wrap { position: relative; z-index: 1; }
.yg-ref-appointment__copy h2 { color: var(--yg-ink); font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; margin: 14px 0 18px; font-weight: 900; }
.yg-ref-appointment__copy > p { color: #43516a; font-size: 17px; line-height: 1.75; margin: 0; font-weight: 700; }
.yg-ref-appointment__note { margin-top: 26px; padding: 20px 22px; border-radius: 18px; background: #fff5f2; border: 1px solid #ffe1dc; }
.yg-ref-appointment__note strong { display: block; color: var(--yg-coral-deep); font-size: 16px; line-height: 1.35; margin: 0 0 8px; }
.yg-ref-appointment__note p { color: #5d687d; font-size: 14px; line-height: 1.75; margin: 0; }
.yg-ref-appointment__fit { display: grid; gap: 11px; list-style: none; margin: 26px 0 0; padding: 0; }
.yg-ref-appointment__fit li { position: relative; color: #25334d; font-size: 14px; line-height: 1.65; padding: 12px 14px 12px 38px; border-radius: 14px; background: rgba(255, 255, 255, .74); border: 1px solid rgba(255, 216, 210, .78); }
.yg-ref-appointment__fit li::before { content: ''; position: absolute; left: 16px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--yg-coral-deep); box-shadow: 0 0 0 5px rgba(255, 95, 101, .10); }
.yg-ref-appointment__form-wrap { min-width: 0; }
.yg-ref-appointment__layout--form-only .yg-ref-appointment__form-wrap { max-width: none; }
.yg-ref-appointment .appointment-card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.yg-ref-appointment .appointment-status { margin: 0 0 16px; border-radius: 14px; }
.yg-ref-appointment .appointment-form { display: block; }
.yg-ref-appointment .form-grid { display: grid; gap: 15px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.yg-ref-appointment .field-group { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.yg-ref-appointment .field-group--full { grid-column: 1 / -1; }
.yg-ref-appointment .field-label { display: flex; align-items: center; gap: 8px; color: #21304a; font-size: 13px; font-weight: 850; line-height: 1.35; margin: 0 0 8px; }
.yg-ref-appointment .field-label__required { color: var(--yg-coral-deep); font-size: 11px; font-style: normal; font-weight: 800; }
.yg-ref-appointment input,
.yg-ref-appointment select,
.yg-ref-appointment textarea { width: 100%; border: 1px solid #f2d8d3; border-radius: 14px; background: #fff; color: #1d2940; font-size: 14px; min-height: 48px; padding: 0 15px; box-shadow: none; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.yg-ref-appointment textarea { min-height: 118px; padding: 14px 15px; resize: vertical; line-height: 1.7; }
.yg-ref-appointment input::placeholder,
.yg-ref-appointment textarea::placeholder { color: #98a1b2; opacity: 1; }
.yg-ref-appointment input:focus,
.yg-ref-appointment select:focus,
.yg-ref-appointment textarea:focus { outline: none; border-color: rgba(255, 95, 101, .72); box-shadow: 0 0 0 4px rgba(255, 95, 101, .13); background: #fffdfc; }
.yg-ref-appointment .appointment-form__footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 18px; }
.yg-ref-appointment .appointment-form__footer p { color: #66738a; font-size: 13px; line-height: 1.7; margin: 0; }
.yg-ref-appointment .appointment-form__footer .button-primary { min-height: 48px; min-width: 168px; border: 0; border-radius: 999px; background: linear-gradient(115deg, var(--yg-coral-deep), var(--yg-peach)); color: #fff; cursor: pointer; font-size: 14px; font-weight: 900; padding: 0 26px; box-shadow: 0 14px 28px rgba(255, 95, 101, .24); transition: transform .18s ease, box-shadow .18s ease; }
.yg-ref-appointment .appointment-form__footer .button-primary:hover,
.yg-ref-appointment .appointment-form__footer .button-primary:focus-visible { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(255, 95, 101, .30); outline: none; }

@media (max-width: 980px) {
  .yg-ref-hero { padding-top: 34px; min-height: auto; }
  .yg-ref-hero__grid, .yg-ref-about__grid, .yg-ref-course__grid, .yg-ref-compare__grid, .yg-ref-appointment__layout { grid-template-columns: 1fr; }
  .yg-ref-hero__grid { gap: 34px; }
  .yg-ref-hero__copy { max-width: 640px; padding-left: 0; }
  .yg-ref-hero__media { height: 350px; }
  .yg-ref-hero__main { left: 64px; width: 258px; height: 258px; border-width: 6px; }
  .yg-ref-hero__main img { padding: 0; }
  .yg-ref-hero__bubble--top { right: 180px; top: 60px; }
  .yg-ref-hero__bubble--bottom { right: 142px; bottom: 58px; }
  .yg-ref-process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yg-ref-advantages__grid { grid-template-columns: repeat(3, 1fr); }
  .yg-ref-city-grid { grid-template-columns: repeat(4, 1fr); }
  .yg-ref-map__layout { grid-template-columns: 1fr; }
  .yg-ref-map__branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .yg-ref-map__selector { border-right: 0; border-bottom: 1px solid #ffe5de; min-height: auto; }
  .yg-ref-map__branch { margin: 0; }
  .yg-ref-appointment__copy { max-width: 680px; }
  .yg-ref-appointment__fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.home { overflow-x: hidden; }
  .yg-ref-home .site-container { width: calc(100% - 30px); max-width: var(--yg-shell); }
  .yg-ref-section { padding: 42px 0; }
  .yg-ref-heading h2, .yg-ref-course h2, .yg-ref-compare h2, .yg-ref-appointment h2 { font-size: 24px; }
  .yg-ref-hero__badges { gap: 12px; margin-bottom: 20px; }
  .yg-ref-hero h1 { font-size: clamp(31px, 8.4vw, 36px); line-height: 1.18; margin-bottom: 20px; word-break: normal; overflow-wrap: anywhere; }
  .yg-ref-hero__copy p { font-size: 15px; line-height: 1.75; }
  .yg-ref-actions { gap: 12px; margin-top: 26px; }
  .yg-ref-hero .yg-ref-button { min-height: 48px; font-size: 15px; padding: 0 22px; }
  .yg-ref-hero__media { height: 280px; border-radius: 20px; }
  .yg-ref-hero__main { left: 42px; width: 212px; height: 212px; border-width: 5px; border-radius: 50%; }
  .yg-ref-hero__main img { padding: 0; }
  .yg-ref-hero__bubble { border-width: 4px; }
  .yg-ref-hero__bubble--top { width: 70px; height: 70px; right: 58px; top: 46px; }
  .yg-ref-hero__bubble--bottom { width: 78px; height: 78px; right: 36px; bottom: 48px; }
  .yg-ref-hero__dots { bottom: 14px; gap: 7px; }
  .yg-ref-home .yg-ref-statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100% - 52px); max-width: calc(100vw - 52px); transform: translateY(29px); min-height: auto; border-radius: 0; }
  .yg-ref-statbar__item:nth-child(2)::after { display: none; }
  .yg-ref-statbar__item { min-width: 0; padding: 16px 8px; }
  .yg-ref-statbar__item:not(:last-child)::after { height: 54px; top: 18px; }
  .yg-ref-statbar strong { font-size: 26px; overflow-wrap: anywhere; }
  .yg-ref-statbar span { font-size: 10px; margin-top: 7px; white-space: normal; overflow-wrap: anywhere; }
  .yg-ref-about { padding-top: 84px; }
  .yg-ref-about__copy h2 { font-size: 26px; }
  .yg-ref-about__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .yg-ref-about__metrics > div:nth-child(2)::after { display: none; }
  .yg-ref-about__cards { gap: 14px; }
  .yg-ref-about-card { min-height: auto; padding: 20px; }
  .yg-ref-problems__grid, .yg-ref-advantages__grid, .yg-ref-impact__stats, .yg-ref-story-grid, .yg-ref-city-grid, .yg-ref-compare__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yg-ref-problems__grid { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .yg-ref-problems__grid article { min-height: auto; padding: 24px 22px; }
  .yg-ref-problems__support { padding: 22px; }
  .yg-ref-problems__support > div { grid-template-columns: 1fr; gap: 18px; }
  .yg-ref-process__grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .yg-ref-process__grid article { min-height: auto; padding: 24px 22px; }
  .yg-ref-process h3 { font-size: 19px; margin-top: 22px; }
  .yg-ref-impact__stats > div { min-width: 0; padding: 16px 8px; }
  .yg-ref-impact__stats strong { font-size: 21px; overflow-wrap: anywhere; }
  .yg-ref-impact__stats span { overflow-wrap: anywhere; }
  .yg-ref-team__feature { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; text-align: left; }
  .yg-ref-team__feature::before { right: -28px; top: -46px; }
  .yg-ref-team__feature::after { right: 18px; bottom: 18px; }
  .yg-ref-team__portrait { width: 104px; font-size: 30px; }
  .yg-ref-team__feature h3 { font-size: 25px; }
  .yg-ref-team__feature p { font-size: 14px; line-height: 1.75; }
  .yg-ref-team__rail { grid-auto-columns: minmax(210px, 74vw); margin-inline: -4px; padding-bottom: 16px; }
  .yg-ref-team__thumb { min-height: 88px; border-radius: 16px; }
  .yg-ref-course__cards { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .yg-ref-course__cards article { min-height: auto; padding: 28px 24px; }
  .yg-ref-course__cards i { margin-bottom: 20px; }
  .yg-ref-compare__grid { gap: 28px; }
  .yg-ref-compare__copy::before { height: 150px; left: -60px; top: 130px; width: 150px; }
  .yg-ref-compare__copy h2 { font-size: 28px; max-width: 280px; }
  .yg-ref-compare__actions { gap: 14px; margin-top: 24px; }
  .yg-ref-compare__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .yg-ref-compare__table { min-width: 760px; }
  .yg-ref-compare__table th,
  .yg-ref-compare__table td { font-size: 12px; padding: 15px 16px; }
  .yg-ref-search__bar { align-items: stretch; border-radius: 18px; flex-direction: column; padding: 8px; }
  .yg-ref-search__bar input { min-height: 42px; padding: 0 12px; }
  .yg-ref-search__bar button { min-height: 42px; width: 100%; }
  .yg-ref-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .yg-ref-city-grid article { min-height: 138px; padding: 14px 12px; }
  .yg-ref-city-grid a { font-size: 10px; line-height: 1.8; }
  .yg-ref-map__layout { grid-template-columns: 1fr; }
  .yg-ref-map__branches { grid-template-columns: 1fr; max-height: 290px; }
  .yg-ref-map__filters { grid-template-columns: 1fr; }
  .yg-ref-map__selector-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .yg-ref-map__canvas { height: 320px; }
  .yg-ref-map__summary h3 { font-size: 20px; }
  .yg-ref-map__summary p { font-size: 12px; text-align: left; }
  .yg-ref-faq__heading { margin-bottom: 26px; }
  .yg-ref-faq__heading h2 { font-size: 30px; }
  .yg-ref-faq__list { gap: 10px; }
  .yg-ref-faq__item { border-radius: 16px; }
  .yg-ref-faq__button { grid-template-columns: 42px minmax(0, 1fr) 30px; gap: 11px; min-height: 66px; padding: 0 14px; }
  .yg-ref-faq__number { width: 38px; height: 38px; font-size: 13px; }
  .yg-ref-faq__question { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
  .yg-ref-faq__toggle { width: 30px; height: 30px; }
  .yg-ref-faq__answer p { max-width: none; font-size: 14px; line-height: 1.8; padding: 0 18px 20px 67px; }
  .yg-ref-history__track { grid-template-columns: 1fr; gap: 2px; }
  .yg-ref-history__track::before { bottom: 0; height: auto; left: 13px; right: auto; top: 10px; width: 1px; }
  .yg-ref-history__track article { padding: 3px 0 11px 31px; }
  .yg-ref-history__track article::before { left: 7px; top: 7px; }
  .yg-ref-cta { padding: 14px 0 18px; }
  .yg-ref-cta .site-container { align-items: flex-start; flex-direction: column; padding: 22px 20px 22px 24px; border-radius: 16px; }
  .yg-ref-cta h2 { font-size: 24px; }
  .yg-ref-cta p { font-size: 14px; }
  .yg-ref-appointment { padding-top: 18px; }
  .yg-ref-appointment__layout { gap: 24px; padding: 24px 18px; border-radius: 20px; }
  .yg-ref-appointment__copy h2 { font-size: 30px; margin-bottom: 14px; }
  .yg-ref-appointment__copy > p { font-size: 15px; line-height: 1.75; }
  .yg-ref-appointment__note { margin-top: 20px; padding: 18px 16px; }
  .yg-ref-appointment__fit { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
  .yg-ref-appointment__fit li { font-size: 13px; padding: 11px 12px 11px 34px; }
  .yg-ref-appointment__fit li::before { left: 14px; top: 19px; }
  .yg-ref-appointment .form-grid { grid-template-columns: 1fr; }
  .yg-ref-appointment .field-label { font-size: 12px; }
  .yg-ref-appointment input,
  .yg-ref-appointment select { min-height: 46px; }
  .yg-ref-appointment textarea { min-height: 112px; }
  .yg-ref-appointment .appointment-form__footer { grid-template-columns: 1fr; gap: 14px; }
  .yg-ref-appointment .appointment-form__footer .button-primary { width: 100%; }
}

/* Graduation cases archive: taxonomy-driven focus story and expandable case directory. */
body.post-type-archive-case_study {
  background: #fffdfb;
}

.site-main--case-archive {
  color: #1e314d;
  overflow: clip;
}

.cases-hero {
  background:
    radial-gradient(circle at 83% 42%, rgb(255 213 206 / .68) 0 11%, transparent 11.3%),
    radial-gradient(circle at 75% 18%, transparent 0 8%, rgb(247 185 177 / .48) 8.1% 8.45%, transparent 8.55%),
    linear-gradient(100deg, #fffdfb 0%, #fff7f2 57%, #fff1ed 100%);
  border-bottom: 1px solid #f6e4de;
}

.cases-hero--with-image {
  background: #f7ddd5;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.cases-hero--with-image::after {
  background: linear-gradient(90deg, rgb(255 251 247 / .94) 0%, rgb(255 247 242 / .82) 33%, rgb(255 247 242 / .25) 72%, rgb(255 247 242 / .08) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.cases-hero__media {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
  z-index: -2;
}

.cases-hero__inner {
  min-height: 264px;
  padding-block: 73px 58px;
}

.cases-hero h1,
.cases-directory h2,
.case-spotlight h2,
.case-card h3 {
  color: #1e314d;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 800;
  letter-spacing: -.045em;
}

.cases-hero h1 {
  font-size: clamp(35px, 4.1vw, 60px);
  line-height: 1.1;
  margin: 0;
  max-width: 1080px;
}

.cases-hero p {
  color: #64728a;
  font-size: 16px;
  line-height: 1.8;
  margin: 18px 0 0;
  max-width: 580px;
}

.cases-directory {
  padding-block: 32px 96px;
}

.case-grid__header {
  margin-top: 66px;
  max-width: 650px;
}

.case-grid__header h2 {
  color: #1e314d;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.25;
  margin: 0;
}

.case-grid__header p {
  color: #718096;
  line-height: 1.75;
  margin: 10px 0 0;
}

.cases-directory__header {
  margin-bottom: 27px;
  max-width: 690px;
}

.cases-directory__header h2 {
  font-size: clamp(27px, 2.8vw, 40px);
  line-height: 1.2;
  margin: 0;
}

.cases-directory__header p {
  color: #718096;
  line-height: 1.75;
  margin: 12px 0 0;
}

.cases-filter {
  align-items: center;
  border-block: 1px solid #f2e6e1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  padding-block: 15px;
}

.cases-filter__button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #55647a;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 11px 16px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.cases-filter__button:hover,
.cases-filter__button:focus-visible,
.cases-filter__button.is-active {
  background: #fef0ee;
  border-color: #ffc7bd;
  color: #e65f57;
  outline: none;
}

.cases-filter__button:active {
  transform: translateY(1px);
}

.case-spotlight {
  background: #1f3953;
  border-radius: 16px;
  display: grid;
  isolation: isolate;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.case-spotlight__media,
.case-spotlight__media::after {
  inset: 0;
  position: absolute;
}

.case-spotlight__media {
  z-index: -2;
}

.case-spotlight__media::after {
  background: linear-gradient(90deg, rgb(17 43 66 / .56) 0%, rgb(17 43 66 / .30) 42%, rgb(17 43 66 / .04) 72%);
  content: "";
  z-index: -1;
}

.case-spotlight__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.case-spotlight__content {
  align-self: end;
  color: #fff;
  max-width: 720px;
  padding: 52px 52px 112px;
}

.case-spotlight__type {
  color: #ffd5cb;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
}

.case-spotlight h2 {
  color: #fff;
  font-size: clamp(29px, 3vw, 45px);
  line-height: 1.17;
  margin: 0;
}

.case-spotlight h2 a,
.case-card h3 a {
  color: inherit;
  text-decoration: none;
}

.case-spotlight__excerpt {
  color: rgb(255 255 255 / .88);
  font-size: 16px;
  line-height: 1.75;
  margin: 18px 0 0;
}

.case-spotlight__facts {
  border-top: 1px solid rgb(255 255 255 / .36);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 31px;
  padding-top: 16px;
}

.case-spotlight__facts span {
  color: rgb(255 255 255 / .86);
  display: grid;
  font-size: 13px;
  line-height: 1.55;
}

.case-spotlight__facts b {
  color: #ffd8d0;
  font-size: 12px;
  margin-bottom: 3px;
}

.cases-filter--overlay {
  background: rgb(255 255 255 / .96);
  border: 0;
  border-radius: 12px 12px 0 0;
  bottom: 0;
  box-shadow: 0 -7px 24px rgb(26 50 73 / .1);
  left: 5%;
  margin: 0;
  padding: 15px 20px;
  position: absolute;
  right: 5%;
  width: auto;
  z-index: 2;
}

.cases-directory__status {
  color: #8f534f;
  margin: 22px 0 0;
}

.case-grid {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}

.case-card {
  background: #fff;
  border: 1px solid #f2e8e4;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgb(50 44 44 / .07);
  min-width: 0;
  overflow: hidden;
  transition: box-shadow .24s ease, transform .24s ease;
}

.case-card:hover,
.case-card:focus-within {
  box-shadow: 0 24px 46px rgb(50 44 44 / .12);
  transform: translateY(-4px);
}

.case-card__media {
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
}

.case-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  width: 100%;
}

.case-card:hover .case-card__media img,
.case-card:focus-within .case-card__media img {
  transform: scale(1.035);
}

.case-card__content {
  padding: 19px 20px 22px;
}

.case-card__content > p {
  color: #e96e64;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 9px;
}

.case-card h3 {
  font-size: 21px;
  line-height: 1.35;
  margin: 0;
}

.case-card__content > span {
  color: #718096;
  display: block;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 11px;
}

.case-spotlight[hidden],
.case-card[hidden] {
  display: none !important;
}

.case-spotlight a:focus-visible,
.case-card a:focus-visible {
  outline: 3px solid #ff8a78;
  outline-offset: -3px;
}

@media (max-width: 920px) {
  .case-spotlight {
    min-height: 445px;
  }

  .case-spotlight__content {
    padding: 38px 38px 104px;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.post-type-archive-case_study .floating-sidebar {
    display: none;
  }

  .cases-hero__inner {
    min-height: 0;
    padding-block: 52px 46px;
  }

  .cases-hero--with-image::after {
    background: linear-gradient(180deg, rgb(255 251 247 / .8) 0%, rgb(255 247 242 / .7) 100%);
  }

  .cases-hero h1 {
    font-size: 35px;
  }

  .cases-hero p {
    font-size: 14px;
    margin-top: 13px;
  }

  .cases-directory {
    padding-block: 20px 58px;
  }

  .case-grid__header {
    margin-top: 48px;
  }

  .case-grid__header h2 {
    font-size: 27px;
  }

  .case-grid__header p {
    font-size: 14px;
  }

  .cases-directory__header h2 {
    font-size: 28px;
  }

  .cases-directory__header p {
    font-size: 14px;
  }

  .cases-filter {
    gap: 8px;
    margin-bottom: 22px;
    padding-block: 12px;
  }

  .cases-filter__button {
    font-size: 13px;
    padding: 10px 11px;
  }

  .case-spotlight {
    min-height: 520px;
  }

  .case-spotlight__media::after {
    background: linear-gradient(180deg, rgb(17 43 66 / .08) 16%, rgb(17 43 66 / .72) 100%);
  }

  .case-spotlight__content {
    padding: 24px 21px 100px;
  }

  .case-spotlight h2 {
    font-size: 28px;
  }

  .case-spotlight__excerpt {
    font-size: 14px;
    margin-top: 12px;
  }

  .case-spotlight__facts {
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .case-spotlight__facts span {
    display: block;
    font-size: 12px;
  }

  .case-spotlight__facts b {
    display: inline;
    margin: 0 8px 0 0;
  }

  .cases-filter--overlay {
    bottom: 0;
    gap: 3px;
    left: 10px;
    padding: 10px 8px;
    right: 10px;
  }

  .cases-filter--overlay .cases-filter__button {
    font-size: 12px;
    padding: 9px 8px;
  }

  .case-grid {
    gap: 18px;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .case-card__content {
    padding: 17px 18px 19px;
  }

  .case-card h3 {
    font-size: 20px;
  }
}

/* Shared taxonomy navigation states: match the About-page tab treatment. */
.yg-news-filter-bar {
  background: rgba(255, 253, 252, .96);
  border: 0;
  border-bottom: 1px solid rgba(255, 184, 174, .46);
  border-radius: 0;
  box-shadow: 0 16px 32px rgba(105, 65, 58, .07);
}

.yg-news-filter-bar :is(button, a),
body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #3b4355;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 15px;
  font-weight: 650;
}

.yg-news-filter-bar :is(button, a) + :is(button, a) {
  border-left: 0;
}

.yg-news-filter-bar :is(button, a):hover,
.yg-news-filter-bar :is(button, a):focus-visible,
.yg-news-filter-bar :is(button, a).is-active,
.yg-news-filter-bar :is(button, a)[aria-current="page"],
body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button:hover,
body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button:focus-visible,
body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button.is-active {
  background: #fff7f4;
  border-bottom-color: var(--yg-coral);
  color: var(--yg-coral-deep);
  outline: none;
}

.yg-news-filter-bar button.is-active::after {
  content: none;
}

@media (max-width: 620px) {
  .yg-news-filter-bar :is(button, a),
  body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cases-filter__button,
  .case-card,
  .case-card__media img {
    transition: none;
  }
}

/* Compact archive composition: photo hero, floating taxonomy switcher, small article cards. */
.site-main--case-compact .cases-hero--compact {
  align-items: center;
  background: #263c4a;
  border: 0;
  display: flex;
  justify-content: center;
  min-height: 322px;
  position: relative;
}

.site-main--case-compact .cases-hero--compact::after {
  background: rgb(17 35 48 / .5);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.site-main--case-compact .cases-hero--compact .cases-hero__media {
  filter: saturate(.84);
  object-position: center;
  z-index: 0;
}

.site-main--case-compact .cases-hero--compact .cases-hero__inner {
  min-height: 0;
  padding: 55px 24px 72px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.site-main--case-compact .cases-hero__label {
  color: #ffd45c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  margin: 0 0 9px;
}

.site-main--case-compact .cases-hero h1 {
  color: #fff;
  font-size: clamp(30px, 3.3vw, 42px);
  line-height: 1.15;
  margin: 0;
  max-width: none;
}

.site-main--case-compact .cases-hero__subtitle {
  color: rgb(255 255 255 / .86);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.5;
  margin: 11px 0 0;
}

.site-main--case-compact .cases-filter--hero {
  background: #fff;
  border: 0;
  border-radius: 12px;
  bottom: -25px;
  box-shadow: 0 12px 28px rgb(26 50 73 / .16);
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  left: 50%;
  margin: 0;
  max-width: 900px;
  overflow-x: auto;
  padding: 9px 16px;
  position: absolute;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  z-index: 3;
}

.site-main--case-compact .cases-filter--hero .cases-filter__button {
  border-bottom: 2px solid transparent;
  border-radius: 0;
  flex: 1 0 auto;
  font-size: 14px;
  padding: 12px 23px 10px;
  white-space: nowrap;
}

.site-main--case-compact .cases-filter--hero .cases-filter__button:hover,
.site-main--case-compact .cases-filter--hero .cases-filter__button:focus-visible,
.site-main--case-compact .cases-filter--hero .cases-filter__button.is-active {
  background: transparent;
  border-color: #ffbf5d;
  color: #e5a128;
}

.site-main--case-compact .cases-directory {
  padding-block: 70px 82px;
}

.site-main--case-compact .cases-directory__status {
  margin: 0 0 20px;
}

.site-main--case-compact .case-grid {
  gap: 22px;
  margin-top: 0;
}

.site-main--case-compact .case-card {
  border-color: #edf0f1;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(29 48 62 / .07);
}

.site-main--case-compact .case-card__media {
  aspect-ratio: 16 / 9;
}

.site-main--case-compact .case-card__content {
  padding: 15px 17px 17px;
}

.site-main--case-compact .case-card__meta {
  align-items: center;
  color: #969da6;
  display: flex;
  font-size: 12px;
  gap: 10px;
  justify-content: space-between;
  line-height: 1.4;
}

.site-main--case-compact .case-card__meta span {
  color: #e28e48;
  font-weight: 700;
}

.site-main--case-compact .case-card h2 {
  color: #20334c;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.38;
  margin: 10px 0 0;
}

.site-main--case-compact .case-card h2 a {
  color: inherit;
  text-decoration: none;
}

.site-main--case-compact .case-card__content > p {
  color: #718096;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  margin: 8px 0 0;
}

@media (max-width: 620px) {
  .site-main--case-compact .cases-hero--compact {
    min-height: 278px;
  }

  .site-main--case-compact .cases-hero--compact .cases-hero__inner {
    padding: 48px 20px 62px;
  }

  .site-main--case-compact .cases-hero h1 {
    font-size: 31px;
  }

  .site-main--case-compact .cases-filter--hero {
    bottom: -20px;
    padding: 7px 9px;
    width: calc(100% - 30px);
  }

  .site-main--case-compact .cases-filter--hero .cases-filter__button {
    font-size: 12px;
    padding: 10px 12px 8px;
  }

  .site-main--case-compact .cases-directory {
    padding-block: 55px 58px;
  }

  .site-main--case-compact .case-grid {
    gap: 16px;
  }

  .site-main--case-compact .case-card__content {
    padding: 14px 15px 16px;
  }
}

/* Global navigation: every page uses a single-column submenu for its own parent item. */
body .yg-ref-site-header { position: relative; z-index: 100; }
body .yg-ref-primary-nav { position: static; }
body .yg-ref-primary-menu { gap: clamp(0.82rem, 1.35vw, 1.55rem); }
body .yg-ref-primary-menu > li { position: relative; }
body .yg-ref-primary-menu > li > a { min-height: 86px; white-space: nowrap; }
body .yg-ref-primary-menu > li.menu-item-has-children > a::after { content: none; }

body .yg-ref-menu-panel {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  z-index: 110;
  width: max-content;
  min-width: 9.5rem;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  background: rgba(255, 253, 252, 0.99);
  border: 1px solid rgba(255, 101, 101, 0.16);
  border-radius: 8px;
  box-shadow: 0 16px 26px rgba(50, 31, 22, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

body .yg-ref-primary-menu > li:hover > .yg-ref-menu-panel,
body .yg-ref-primary-menu > li:focus-within > .yg-ref-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

body .yg-ref-menu-panel ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .yg-ref-menu-panel li { margin: 0; }
body .yg-ref-menu-panel a {
  display: block;
  color: #332b28;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: nowrap;
}
body .yg-ref-menu-panel a:hover,
body .yg-ref-menu-panel a:focus-visible { color: #ff525f; }

body .yg-ref-primary-menu > li:nth-last-child(-n + 2) > .yg-ref-menu-panel {
  right: 0;
  left: auto;
  transform: translate(0, 8px);
}
body .yg-ref-primary-menu > li:nth-last-child(-n + 2):hover > .yg-ref-menu-panel,
body .yg-ref-primary-menu > li:nth-last-child(-n + 2):focus-within > .yg-ref-menu-panel { transform: translate(0, 0); }

@media (max-width: 1180px) {
  body .yg-ref-primary-menu { gap: 0.8rem; }
  body .yg-ref-primary-menu > li > a { font-size: 0.88rem; }
}

@media (max-width: 980px) {
  body .yg-ref-primary-nav { position: absolute; }
  body .yg-ref-primary-menu > li > a { min-height: auto; }
  body .yg-ref-menu-panel {
    position: static;
    display: none;
    width: auto;
    max-width: none;
    margin: 0.45rem 0 0.85rem;
    padding: 0.75rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    transform: none;
  }
  body .site-header.is-menu-open .yg-ref-primary-menu > li > .yg-ref-menu-panel { display: block; }
  body .yg-ref-primary-menu > li:hover > .yg-ref-menu-panel,
  body .yg-ref-primary-menu > li:focus-within > .yg-ref-menu-panel,
  body .yg-ref-primary-menu > li:nth-last-child(-n + 2) > .yg-ref-menu-panel { transform: none; }
}

/* Override the former homepage-only multi-column rules. */
body.home .yg-ref-menu-panel--3 ul,
body.home .yg-ref-menu-panel--4 ul,
body.home .yg-ref-menu-panel--9 ul { grid-template-columns: 1fr; }

/* Minimal homepage pass: reduce density and decorative weight while preserving content and order. */
body.home {
  background: #fffdfa;
}

body.home .yg-ref-home {
  --yg-shell: 1088px;
}

body.home .yg-ref-section {
  padding: clamp(74px, 8vw, 108px) 0;
}

body.home .yg-ref-section:nth-child(even),
body.home .yg-ref-about,
body.home .yg-ref-process,
body.home .yg-ref-problems,
body.home .yg-ref-course,
body.home .yg-ref-compare,
body.home .yg-ref-team,
body.home .yg-ref-search,
body.home .yg-ref-faq,
body.home .yg-ref-map,
body.home .yg-ref-appointment {
  background: #fffdfa;
}

body.home .yg-ref-section:nth-child(4n),
body.home .yg-ref-team,
body.home .yg-ref-search {
  background: #fbfbff;
}

body.home .site-main > #branches.yg-ref-map,
body.home .yg-ref-section#branches.yg-ref-map {
  background:
    linear-gradient(180deg, #fff5f1 0%, #fffaf7 56%, #fffdfa 100%);
}

body.home .yg-ref-heading,
body.home .yg-ref-heading--center {
  margin-bottom: clamp(34px, 4.2vw, 52px);
  max-width: 620px;
}

body.home .yg-ref-heading h2,
body.home .yg-ref-course h2,
body.home .yg-ref-compare h2,
body.home .yg-ref-appointment h2 {
  font-size: clamp(25px, 2.45vw, 34px);
  font-weight: 760;
  line-height: 1.22;
  margin: 8px 0 12px;
}

body.home .yg-ref-heading p,
body.home .yg-ref-about p,
body.home .yg-ref-course p,
body.home .yg-ref-compare p,
body.home .yg-ref-appointment p {
  color: #717b90;
  font-size: 14px;
  line-height: 1.9;
}

body.home .yg-ref-kicker {
  color: #ff6970;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .08em;
}

body.home .yg-ref-hero {
  min-height: 560px;
  padding: clamp(42px, 5.5vw, 70px) 0 34px;
  background: #fffdfa;
}

body.home .yg-ref-hero__grid {
  gap: clamp(56px, 7vw, 104px);
  grid-template-columns: minmax(0, .9fr) minmax(420px, .86fr);
  min-height: 430px;
}

body.home .yg-ref-hero__badges {
  gap: 12px;
  margin-bottom: 22px;
}

body.home .yg-ref-hero__brand,
body.home .yg-ref-hero__badges .yg-ref-kicker {
  background: #fff4f1;
  min-height: 30px;
}

body.home .yg-ref-hero h1 {
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 780;
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 560px;
}

body.home .yg-ref-hero__copy p {
  color: #59657b;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.95;
  max-width: 560px;
}

body.home .yg-ref-hero__actions {
  margin-top: 28px;
}

body.home .yg-ref-button,
body.home .yg-ref-hero .yg-ref-button,
body.home .yg-ref-compare__actions .yg-ref-button {
  min-height: 46px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 760;
  box-shadow: none;
}

body.home .yg-ref-button--primary,
body.home .yg-ref-appointment .appointment-form__footer .button-primary,
body.home .yg-ref-search__bar button {
  background: #ff646b;
  box-shadow: none;
}

body.home .yg-ref-button--quiet {
  border-color: #f0e6e3;
  box-shadow: none;
}

body.home .yg-ref-hero__media {
  height: 400px;
  border-radius: 30px;
  background: #fff3ef;
}

body.home .yg-ref-hero__main {
  width: 300px;
  height: 300px;
  box-shadow: 0 18px 38px rgba(126, 76, 66, .11);
}

body.home .yg-ref-hero__bubble {
  box-shadow: 0 12px 24px rgba(88, 55, 48, .10);
}

body.home .yg-ref-hero__stats {
  margin-top: 30px;
}

body.home .yg-ref-about {
  padding-top: clamp(88px, 8vw, 118px);
}

body.home .yg-ref-about__grid {
  align-items: center;
  gap: clamp(58px, 7vw, 92px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
}

body.home .yg-ref-about__copy h2 {
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 760;
}

body.home .yg-ref-about__metrics {
  margin-top: 32px;
}

body.home .yg-ref-about-card,
body.home .yg-ref-process__grid article,
body.home .yg-ref-problems__grid article,
body.home .yg-ref-problems__support,
body.home .yg-ref-course__cards article,
body.home .yg-ref-team__feature,
body.home .yg-ref-team__thumb,
body.home .yg-ref-compare__table-wrap,
body.home .yg-ref-city-grid article,
body.home .yg-ref-map__layout,
body.home .yg-ref-faq__item,
body.home .yg-ref-appointment__layout,
body.home .yg-ref-appointment__note,
body.home .yg-ref-appointment__fit li {
  border-color: rgba(247, 213, 207, .86);
  border-radius: 16px;
  box-shadow: none;
}

body.home .yg-ref-about-card::before,
body.home .yg-ref-about-card::after,
body.home .yg-ref-about-card > span,
body.home .yg-ref-process__grid article::before,
body.home .yg-ref-process__grid article::after,
body.home .yg-ref-process__grid i::after,
body.home .yg-ref-problems__grid article::before,
body.home .yg-ref-course__cards article::before,
body.home .yg-ref-course__cards article::after,
body.home .yg-ref-team__feature::before,
body.home .yg-ref-team__feature::after,
body.home .yg-ref-compare__copy::before,
body.home .yg-ref-appointment__layout::before,
body.home .yg-ref-appointment__layout::after {
  opacity: .38;
}

body.home .yg-ref-process__grid,
body.home .yg-ref-problems__grid,
body.home .yg-ref-course__cards {
  gap: 24px;
  margin-top: 0;
}

body.home .yg-ref-process__grid article,
body.home .yg-ref-course__cards article {
  min-height: 210px;
}

body.home .yg-ref-process__grid article {
  padding: 0;
}

body.home .yg-ref-process__grid article > a,
body.home .yg-ref-course__cards article {
  padding: 28px 26px;
}

body.home .yg-ref-problems__grid article {
  min-height: 136px;
  padding: 26px 24px;
}

body.home .yg-ref-process h3,
body.home .yg-ref-problems__grid h3,
body.home .yg-ref-course__cards h3 {
  font-size: 17px;
  font-weight: 760;
  line-height: 1.38;
}

body.home .yg-ref-process p,
body.home .yg-ref-problems p,
body.home .yg-ref-course__cards p {
  color: #6d7688;
  font-size: 13px;
  line-height: 1.82;
}

body.home .yg-ref-problems__support {
  margin-top: 24px;
  padding: 22px 26px;
}

body.home .yg-ref-team__shell {
  max-width: 920px;
}

body.home .yg-ref-team__feature {
  min-height: 188px;
  padding: 26px 30px;
}

body.home .yg-ref-team__feature h3 {
  font-size: 26px;
  font-weight: 760;
}

body.home .yg-ref-team__feature p {
  color: #687386;
  font-size: 14px;
  line-height: 1.85;
}

body.home .yg-ref-team__rail {
  gap: 12px;
  margin-top: 16px;
}

body.home .yg-ref-compare__grid {
  gap: clamp(44px, 6vw, 72px);
  grid-template-columns: minmax(250px, .62fr) minmax(0, 1.18fr);
}

body.home .yg-ref-compare__copy h2 {
  font-size: clamp(27px, 2.7vw, 36px);
  font-weight: 760;
}

body.home .yg-ref-compare__table th,
body.home .yg-ref-compare__table td {
  font-size: 13px;
  line-height: 1.75;
  padding: 17px 18px;
}

body.home .yg-ref-search__bar {
  box-shadow: none;
  margin-bottom: 30px;
}

body.home .yg-ref-city-grid {
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.home .yg-ref-city-grid article {
  min-height: 112px;
  padding: 16px 17px;
}

body.home .yg-ref-map__layout {
  min-height: 420px;
}

body.home .yg-ref-faq__heading h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 760;
}

body.home .yg-ref-faq__list {
  gap: 10px;
  max-width: 820px;
}

body.home .yg-ref-faq__item:hover,
body.home .yg-ref-faq__item:focus-within,
body.home .yg-ref-faq__item.is-open {
  box-shadow: none;
  transform: none;
}

body.home .yg-ref-faq__button {
  min-height: 64px;
}

body.home .yg-ref-appointment {
  padding-top: clamp(72px, 7vw, 100px);
}

body.home .yg-ref-appointment__layout {
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(30px, 4.8vw, 54px);
}

@media (max-width: 980px) {
  body.home .yg-ref-home {
    --yg-shell: 720px;
  }

  body.home .yg-ref-hero__grid,
  body.home .yg-ref-about__grid,
  body.home .yg-ref-compare__grid {
    grid-template-columns: 1fr;
  }

  body.home .yg-ref-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.home .yg-ref-home .site-container {
    width: calc(100% - 34px);
  }

  body.home .yg-ref-section {
    padding: 58px 0;
  }

  body.home .yg-ref-heading,
  body.home .yg-ref-heading--center {
    margin-bottom: 28px;
  }

  body.home .yg-ref-hero {
    padding-top: 30px;
  }

  body.home .yg-ref-hero h1 {
    font-size: clamp(32px, 9vw, 40px);
    font-weight: 780;
  }

  body.home .yg-ref-hero__copy p {
    font-size: 14px;
    line-height: 1.82;
  }

  body.home .yg-ref-hero__media {
    height: 270px;
  }

  body.home .yg-ref-hero__main {
    left: 36px;
    width: 204px;
    height: 204px;
  }

  body.home .yg-ref-process__grid,
  body.home .yg-ref-problems__grid,
  body.home .yg-ref-course__cards,
  body.home .yg-ref-city-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.home .yg-ref-process__grid article,
  body.home .yg-ref-problems__grid article,
  body.home .yg-ref-course__cards article {
    padding: 22px 20px;
  }

  body.home .yg-ref-process__grid article {
    padding: 0;
  }

  body.home .yg-ref-process__grid article > a {
    padding: 22px 20px;
  }

  body.home .yg-ref-team__feature {
    padding: 24px 20px;
  }

  body.home .yg-ref-faq__button {
    min-height: 60px;
  }

  body.home .yg-ref-appointment__layout {
    padding: 24px 18px;
  }
}

/* Graduation case details: long image/video plus editable article content. */
.yg-reading--case {
  background: #fff9f7;
  padding: clamp(42px, 6vw, 86px) 0 clamp(72px, 9vw, 132px);
}

.yg-reading--case .yg-reading__article {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  padding: 0;
}

.yg-case-reading__card {
  max-width: 980px;
}

.yg-case-reading__media {
  background: #f4e7e1;
}

.yg-case-reading__media--video {
  background: #101a28;
}

.yg-case-reading__media img,
.yg-case-reading__media :is(video, iframe) {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.yg-case-reading__media iframe {
  border: 0;
}

.yg-case-reading__meta {
  color: var(--yg-course-coral);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 14px;
}

.yg-case-reading__content h1 {
  color: #171f31;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 18px;
  max-width: 16em;
}

.yg-reading--case .yg-reading__summary {
  color: #5a6981;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.8;
  margin: 0 0 28px;
  max-width: 42em;
}

.yg-case-reading__content .yg-reading__result,
.yg-case-reading__content .yg-reading__quote {
  max-width: none;
}

.yg-case-reading__content .yg-reading__result {
  margin-top: clamp(34px, 5vw, 54px);
}

.yg-case-reading__content .yg-reading__quote {
  margin-top: clamp(30px, 4vw, 46px);
}

.case-card--video .case-card__media {
  position: relative;
}

.case-card__video-badge {
  align-items: center;
  background: var(--yg-coral, #ff5d67);
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  bottom: 18px;
  box-shadow: 0 10px 22px rgba(29, 38, 57, .24);
  display: flex;
  height: 48px;
  justify-content: center;
  position: absolute;
  right: 18px;
  width: 48px;
}

.case-card__video-badge::after {
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  content: '';
  margin-left: 3px;
}

@media (max-width: 680px) {
  .yg-reading--case {
    padding: 48px 0 72px;
  }

  .yg-case-reading__content h1 {
    font-size: clamp(34px, 10vw, 46px);
    max-width: none;
  }

  .yg-reading--case .yg-reading__summary {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 26px;
  }

  .case-card__video-badge {
    bottom: 14px;
    height: 42px;
    right: 14px;
    width: 42px;
  }
}

/* Interior speech-bubble watermarks for the five internal brand pages.
   They use the existing child-theme asset and sit behind editable page content. */
:where(
  .yg-about-intro,
  .yg-curriculum-categories,
  .yg-team-listing,
  .yg-branch-directory--regional,
  .site-main--news-rebuilt .yg-news-article-section
) {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

:where(
  .yg-about-intro,
  .yg-curriculum-categories,
  .yg-team-listing,
  .yg-branch-directory--regional,
  .site-main--news-rebuilt .yg-news-article-section
)::before {
  background: url('assets/images/bubble-watermark.png') center / contain no-repeat;
  content: '';
  height: clamp(150px, 15vw, 240px);
  opacity: .085;
  pointer-events: none;
  position: absolute;
  right: clamp(-72px, -4vw, -34px);
  top: clamp(24px, 4vw, 68px);
  transform: rotate(-8deg);
  width: clamp(150px, 15vw, 240px);
  z-index: 0;
}

:where(
  .yg-about-intro,
  .yg-curriculum-categories,
  .yg-team-listing,
  .yg-branch-directory--regional,
  .site-main--news-rebuilt .yg-news-article-section
) > * {
  position: relative;
  z-index: 1;
}

.yg-about-intro::before,
.yg-team-listing::before {
  right: auto;
  top: 52px;
  left: clamp(-84px, -4vw, -38px);
  transform: rotate(8deg);
}

.yg-branch-directory--regional::before {
  top: 34px;
}

.site-main--news-rebuilt .yg-news-article-section::before {
  top: 72px;
}

@media (max-width: 720px) {
  :where(
    .yg-about-intro,
    .yg-curriculum-categories,
    .yg-team-listing,
    .yg-branch-directory--regional,
    .site-main--news-rebuilt .yg-news-article-section
  )::before {
    height: 116px;
    opacity: .065;
    right: -40px;
    top: 20px;
    width: 116px;
  }

  .yg-about-intro::before,
  .yg-team-listing::before {
    left: -42px;
    right: auto;
    top: 28px;
  }
}

/* Cases page alignment: the media hero and taxonomy navigation share About's full-width axis. */
body.post-type-archive-case_study .site-main--case-compact .cases-hero--compact {
  inline-size: 100vw;
  margin-inline: calc(50% - 50vw);
  max-inline-size: none;
  overflow: visible;
}

body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero {
  background: rgba(255, 253, 252, .96);
  border-bottom: 1px solid rgba(255, 184, 174, .46);
  border-radius: 0;
  bottom: -58px;
  box-shadow: 0 16px 32px rgba(105, 65, 58, .07);
  box-sizing: border-box;
  left: 0;
  max-width: none;
  min-height: 58px;
  overflow: visible;
  padding: 0;
  transform: none;
  width: 100%;
}

body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button {
  align-items: center;
  border-bottom: 3px solid transparent;
  box-sizing: border-box;
  display: inline-flex;
  flex: 1 1 0;
  justify-content: center;
  min-height: 58px;
  padding: 0 16px;
}

body.post-type-archive-case_study .site-main--case-compact .cases-directory {
  padding-top: 88px;
}

/* Cases hero type mirrors the centered About-page title hierarchy. */
body.post-type-archive-case_study .site-main--case-compact .cases-hero--compact .cases-hero__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  min-height: inherit;
  padding: 32px 24px 42px;
  text-align: center;
}

body.post-type-archive-case_study .site-main--case-compact .cases-hero h1 {
  color: #fff;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .32);
}

body.post-type-archive-case_study .site-main--case-compact .cases-hero__subtitle {
  color: rgba(255, 255, 255, .88);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  margin: 18px 0 0;
}

@media (max-width: 620px) {
  body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero {
    bottom: -48px;
    min-height: 48px;
    overflow-x: auto;
    padding-inline: 8px;
  }

  body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button {
    flex: 1 0 auto;
    font-size: 11px;
    min-height: 48px;
    padding-inline: 6px;
  }

  body.post-type-archive-case_study .site-main--case-compact .cases-directory {
    padding-top: 72px;
  }

  body.post-type-archive-case_study .site-main--case-compact .cases-hero--compact .cases-hero__inner {
    padding: 22px 20px 32px;
  }

  body.post-type-archive-case_study .site-main--case-compact .cases-hero h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

  body.post-type-archive-case_study .site-main--case-compact .cases-hero__subtitle {
    font-size: 12px;
    margin-top: 13px;
  }
}

/* Keep the national-campus archive self-contained on narrow viewports. */
@media (max-width: 640px) {
  body.post-type-archive-branch { overflow-x: hidden; }
  body.post-type-archive-branch .yg-ref-site-header .header-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 72px; padding-inline: 16px; width: 100%; }
  body.post-type-archive-branch .yg-ref-site-header .brand-cluster { min-width: 0; }
  body.post-type-archive-branch .yg-ref-site-header .brand-cluster img { height: auto; max-width: 154px; width: 100%; }
  body.post-type-archive-branch .yg-ref-site-header .hotline-chip--mobile,
  body.post-type-archive-branch .yg-ref-site-header .header-tools { display: none !important; }
  body.post-type-archive-branch .yg-ref-site-header .header-toggle { align-items: center; display: inline-flex !important; justify-content: center; }
  body.post-type-archive-branch .yg-ref-site-header .yg-ref-primary-nav { display: none; left: 0; top: 100%; width: 100%; }
  body.post-type-archive-branch .yg-ref-site-header.is-menu-open .yg-ref-primary-nav { display: block; }
  body.post-type-archive-branch .yg-branch-map-layout.branch-section { display: grid; grid-template-columns: minmax(0, 1fr) !important; min-width: 0; width: 100%; }
  body.post-type-archive-branch .yg-branch-map-layout.branch-section,
  body.post-type-archive-branch .yg-branch-map-panel,
  body.post-type-archive-branch .yg-branch-selector { max-width: 100%; }
  body.post-type-archive-branch .yg-branch-heading { max-width: 100%; padding-inline: 4px; }
  body.post-type-archive-branch .yg-branch-heading h2 { font-size: 27px; letter-spacing: -.04em; overflow-wrap: anywhere; }
}

/* Final page-hero scale override: About, Courses, Cases, Campuses and News. */
:root {
  --yg-page-hero-height: clamp(336px, 28vw, 420px);
  --yg-page-hero-height-mobile: 258px;
}

.yg-curriculum-hero,
.yg-about-hero,
.site-main--case-compact .cases-hero--compact,
.site-main--gutenberg-case-studies .page-banner--case_study,
.site-main--gutenberg-news .page-banner--news,
.site-main--news-rebuilt .yg-news-intro .page-banner--news,
.yg-branch-hero--with-image,
.yg-news-banner-region {
  min-height: var(--yg-page-hero-height) !important;
}

.yg-about-hero {
  background-position: center center !important;
}

.yg-news-banner-region {
  align-items: stretch;
  display: flex;
  padding: 0 !important;
}

.yg-news-banner,
.site-main--news-rebuilt .yg-news-banner {
  min-height: var(--yg-page-hero-height) !important;
  width: min(1290px, calc(100% - 44px));
}

.yg-news-banner__inner {
  align-content: center;
  display: grid;
  min-height: inherit;
}

.site-main--gutenberg-news .page-banner--news,
.site-main--news-rebuilt .yg-news-intro .page-banner--news {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.yg-branch-hero__media {
  aspect-ratio: auto;
  height: var(--yg-page-hero-height);
  width: 100%;
}

@media (max-width: 720px) {
  .yg-curriculum-hero,
  .yg-about-hero,
  .site-main--case-compact .cases-hero--compact,
  .site-main--gutenberg-case-studies .page-banner--case_study,
  .site-main--gutenberg-news .page-banner--news,
  .site-main--news-rebuilt .yg-news-intro .page-banner--news,
  .yg-branch-hero--with-image,
  .yg-news-banner-region {
    min-height: var(--yg-page-hero-height-mobile) !important;
  }

  .yg-about-hero {
    background-position: 52% center !important;
  }

  .yg-branch-hero__media {
    height: var(--yg-page-hero-height-mobile);
  }

  .yg-news-banner,
  .site-main--news-rebuilt .yg-news-banner {
    min-height: var(--yg-page-hero-height-mobile) !important;
    width: min(100% - 30px, 1290px);
  }
}

/* Course archive refinement: match the About page's full-width tab bar and use the system font consistently. */
.yg-curriculum,
.yg-curriculum :where(h1, h2, h3, h4, p, a, button, span, strong) {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif !important;
}

.yg-curriculum-category-nav {
  background: rgba(255, 253, 252, .96);
  border-bottom: 1px solid rgba(255, 184, 174, .46);
  box-shadow: 0 16px 32px rgba(105, 65, 58, .07);
  margin-top: 0;
  position: relative;
  z-index: 20;
}

.yg-curriculum-category-nav .yg-curriculum-container {
  width: min(1180px, calc(100% - 44px));
}

.yg-curriculum-category-nav__panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 58px;
  overflow: visible;
  padding: 0;
}

.yg-curriculum-category-nav button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #3b4355;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 650;
  justify-content: center;
  line-height: 1.2;
  min-height: 58px;
  padding: 0 14px;
  text-align: center;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  width: 100%;
}

.yg-curriculum-category-nav button:hover,
.yg-curriculum-category-nav button:focus-visible,
.yg-curriculum-category-nav button[aria-pressed="true"] {
  background: #fff7f4;
  border-color: var(--yg-coral);
  box-shadow: none;
  color: var(--yg-coral-deep);
  outline: none;
  transform: none;
}

.yg-curriculum-category-nav button:active {
  transform: translateY(1px);
}

.yg-curriculum-hero h1,
.yg-curriculum-detail h1,
.yg-curriculum-heading h2,
.yg-curriculum-story__article h2,
.yg-curriculum-category h3,
.yg-curriculum-filter-card h3,
.yg-curriculum-course-card h2 {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif !important;
  letter-spacing: 0;
}

@media (max-width: 820px) {
  .yg-curriculum-category-nav {
    margin-top: 0;
  }

  .yg-curriculum-category-nav .yg-curriculum-container {
    width: calc(100% - 30px);
  }

  .yg-curriculum-category-nav__panel {
    border-radius: 0;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    padding: 0;
  }

  .yg-curriculum-category-nav button {
    font-size: 14px;
    min-height: 48px;
    padding: 0 10px;
  }
}

/* Unified page hero rhythm for About, Courses, Cases, Campuses and News archives. */
:root {
  --yg-page-hero-height: clamp(336px, 28vw, 420px);
  --yg-page-hero-height-mobile: 258px;
}

.yg-curriculum-hero,
.yg-about-hero,
.site-main--case-compact .cases-hero--compact,
.site-main--gutenberg-case-studies .page-banner--case_study,
.site-main--gutenberg-news .page-banner--news,
.site-main--news-rebuilt .yg-news-intro .page-banner--news,
.yg-branch-hero--with-image {
  min-height: var(--yg-page-hero-height) !important;
}

.yg-curriculum-hero__grid,
.yg-about-hero__inner,
.site-main--case-compact .cases-hero--compact .cases-hero__inner,
.site-main--gutenberg-case-studies .page-banner--case_study > .wp-block-group__inner-container,
.site-main--gutenberg-case-studies .page-banner--case_study .page-banner__inner,
.site-main--gutenberg-news .page-banner--news .wp-block-group__inner-container,
.site-main--gutenberg-news .page-banner__inner .wp-block-group__inner-container {
  min-height: inherit;
}

.yg-about-hero {
  background-position: center 34%;
  background-size: cover;
}

.yg-curriculum-hero {
  background-position: center 50%;
}

.site-main--case-compact .cases-hero--compact .cases-hero__media {
  height: 100%;
}

.site-main--gutenberg-news .page-banner--news,
.site-main--news-rebuilt .yg-news-intro .page-banner--news {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.site-main--gutenberg-news .page-banner__inner {
  align-content: center;
  min-height: inherit;
}

.site-main--news-rebuilt .yg-news-intro .page-banner__inner {
  align-content: center;
  display: grid;
  min-height: inherit;
}

.yg-branch-hero__media {
  aspect-ratio: auto;
  height: var(--yg-page-hero-height);
}

@media (max-width: 720px) {
  .yg-curriculum-hero,
  .yg-about-hero,
  .site-main--case-compact .cases-hero--compact,
  .site-main--gutenberg-case-studies .page-banner--case_study,
  .site-main--gutenberg-news .page-banner--news,
  .site-main--news-rebuilt .yg-news-intro .page-banner--news,
  .yg-branch-hero--with-image {
    min-height: var(--yg-page-hero-height-mobile) !important;
  }

  .yg-about-hero {
    background-position: 52% 36%;
  }

  .yg-curriculum-hero {
    background-position: 58% center;
  }

  .yg-branch-hero__media {
    height: var(--yg-page-hero-height-mobile);
  }
}

/* Final override: keep all archive/page hero images on one consistent visual scale. */
.yg-about-hero {
  background-position: center 34% !important;
}

.yg-news-banner-region {
  align-items: stretch;
  display: flex;
  min-height: var(--yg-page-hero-height) !important;
  padding: 0 !important;
}

.yg-news-banner {
  min-height: inherit !important;
  width: min(1290px, calc(100% - 44px));
}

.yg-news-banner__inner {
  align-content: center;
  display: grid;
  min-height: inherit;
}

.yg-branch-hero__media {
  width: 100%;
}

@media (max-width: 720px) {
  .yg-about-hero {
    background-position: 52% 36% !important;
  }

  .yg-news-banner-region {
    min-height: var(--yg-page-hero-height-mobile) !important;
  }

  .yg-news-banner {
    width: min(100% - 30px, 1290px);
  }
}

/* National campus archive: regional tabs lead to real, editable branch cards. */
.yg-branch-directory--regional {
  background: linear-gradient(180deg, #fff8f7 0%, #fff 100%);
}

.yg-branch-directory--regional .yg-branch-heading {
  margin-bottom: 30px;
}

.yg-branch-directory__toolbar {
  align-items: center;
  border-bottom: 1px solid #eddeda;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.yg-branch-region-tabs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 9px;
}

.yg-branch-region-tabs button {
  appearance: none;
  background: #fff;
  border: 1px solid #ead9d4;
  border-radius: 999px;
  color: #47546a;
  cursor: pointer;
  font: 750 13px/1.1 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  min-height: 38px;
  padding: 9px 14px;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.yg-branch-region-tabs button span {
  color: #c95b52;
  font-size: 11px;
  margin-left: 4px;
}

.yg-branch-region-tabs button:hover,
.yg-branch-region-tabs button:focus-visible,
.yg-branch-region-tabs button.is-active {
  background: #d96258;
  border-color: #d96258;
  box-shadow: 0 8px 18px rgba(194, 83, 74, .18);
  color: #fff;
  outline: none;
}

.yg-branch-region-tabs button:hover span,
.yg-branch-region-tabs button:focus-visible span,
.yg-branch-region-tabs button.is-active span { color: #fff; }
.yg-branch-region-tabs button:active { transform: translateY(1px); }

.yg-branch-location-search { flex: 0 0 min(260px, 27vw); position: relative; }
.yg-branch-location-search::before { color: #c5665d; content: '⌕'; font: 500 22px/1 Arial, sans-serif; left: 14px; pointer-events: none; position: absolute; top: 8px; }
.yg-branch-location-search input {
  background: #fff;
  border: 1px solid #e8d9d5;
  border-radius: 999px;
  box-sizing: border-box;
  color: #35445d;
  font: 500 14px/1.3 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  height: 40px;
  outline: none;
  padding: 0 16px 0 39px;
  width: 100%;
}
.yg-branch-location-search input::placeholder { color: #9aa3b1; opacity: 1; }
.yg-branch-location-search input:focus { border-color: #d96258; box-shadow: 0 0 0 3px rgba(217, 98, 88, .14); }

.yg-branch-directory--regional .yg-branch-directory__count { margin-bottom: 42px; text-align: left; }
.yg-branch-directory__empty { background: #fff6f4; border: 1px solid #f0d6d1; border-radius: 14px; color: #96554e; font-size: 14px; margin: 0 0 28px; padding: 15px 18px; text-align: center; }

.yg-branch-regional-groups { display: grid; gap: 54px; }
.yg-branch-region-group { scroll-margin-top: 100px; }
.yg-branch-region-group__header { align-items: flex-end; border-bottom: 1px solid #eadbd7; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 22px; padding-bottom: 16px; }
.yg-branch-region-group__header h3 { color: #28354d; font: 900 clamp(29px, 3vw, 40px)/1.1 'Microsoft YaHei UI', 'PingFang SC', sans-serif; letter-spacing: -.035em; margin: 0; }
.yg-branch-region-group__header p { color: #7b8799; font-size: 14px; line-height: 1.55; margin: 8px 0 0; }
.yg-branch-region-group__header > span { color: #c95b52; font-size: 13px; font-weight: 850; padding-bottom: 4px; white-space: nowrap; }

.yg-branch-store-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yg-branch-store-card { background: #fff; border: 1px solid #ecdfdb; border-radius: 16px; box-shadow: 0 14px 30px rgba(78, 61, 65, .07); display: flex; flex-direction: column; min-height: 238px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.yg-branch-store-card:hover, .yg-branch-store-card:focus-within { border-color: rgba(217, 98, 88, .66); box-shadow: 0 20px 38px rgba(106, 67, 66, .13); transform: translateY(-3px); }
.yg-branch-store-card__media { aspect-ratio: 16 / 8; background: #f5f1ef; display: block; overflow: hidden; }
.yg-branch-store-card__media img { display: block; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.8,.2,1); width: 100%; }
.yg-branch-store-card:hover .yg-branch-store-card__media img, .yg-branch-store-card:focus-within .yg-branch-store-card__media img { transform: scale(1.035); }
.yg-branch-store-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 21px 21px 20px; }
.yg-branch-store-card__city { color: #cb6158; font-size: 12px; font-weight: 850; letter-spacing: .08em; line-height: 1.25; margin: 0 0 9px; }
.yg-branch-store-card h4 { font: 850 20px/1.32 'Microsoft YaHei UI', 'PingFang SC', sans-serif; letter-spacing: -.015em; margin: 0; }
.yg-branch-store-card h4 a { color: #2e3b52; text-decoration: none; }
.yg-branch-store-card__address { -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #758297; display: -webkit-box; font-size: 13px; line-height: 1.65; margin: 11px 0 15px; overflow: hidden; }
.yg-branch-store-card__link { align-items: center; color: #d25f55; display: inline-flex; font-size: 13px; font-weight: 850; gap: 8px; margin-top: auto; text-decoration: none; }
.yg-branch-store-card__link span { font-size: 17px; line-height: .8; transition: transform .2s ease; }
.yg-branch-store-card:hover .yg-branch-store-card__link span, .yg-branch-store-card:focus-within .yg-branch-store-card__link span { transform: translateX(3px); }
.yg-branch-store-card h4 a:focus-visible, .yg-branch-store-card__media:focus-visible, .yg-branch-store-card__link:focus-visible { border-radius: 4px; outline: 3px solid rgba(217, 98, 88, .52); outline-offset: 3px; }
.yg-branch-detail__navigation { align-items: center; background: #d96258; border-radius: 999px; color: #fff !important; display: inline-flex; font-size: 14px; font-weight: 850; gap: 9px; margin-top: 23px; padding: 12px 18px; text-decoration: none; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.yg-branch-detail__navigation:hover, .yg-branch-detail__navigation:focus-visible { background: #c6534b; box-shadow: 0 10px 20px rgba(194, 83, 74, .23); outline: none; }
.yg-branch-detail__navigation:active { transform: translateY(1px); }

@media (max-width: 980px) {
  .yg-branch-directory__toolbar { align-items: stretch; flex-direction: column; }
  .yg-branch-location-search { flex-basis: auto; max-width: 420px; }
  .yg-branch-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .yg-branch-directory--regional .yg-branch-heading { margin-bottom: 23px; }
  .yg-branch-directory__toolbar { gap: 15px; margin-bottom: 14px; padding-bottom: 15px; }
  .yg-branch-region-tabs { flex-wrap: nowrap; margin-inline: -16px; overflow-x: auto; padding-inline: 16px 24px; scrollbar-width: thin; }
  .yg-branch-region-tabs button { flex: 0 0 auto; min-height: 36px; padding: 8px 12px; }
  .yg-branch-location-search { max-width: none; }
  .yg-branch-directory--regional .yg-branch-directory__count { font-size: 13px; margin-bottom: 30px; }
  .yg-branch-regional-groups { gap: 38px; }
  .yg-branch-region-group { scroll-margin-top: 18px; }
  .yg-branch-region-group__header { align-items: flex-start; gap: 15px; margin-bottom: 16px; padding-bottom: 13px; }
  .yg-branch-region-group__header h3 { font-size: 28px; }
  .yg-branch-region-group__header p { font-size: 13px; margin-top: 6px; }
  .yg-branch-region-group__header > span { font-size: 12px; padding-top: 5px; }
  .yg-branch-store-grid { gap: 14px; grid-template-columns: 1fr; }
  .yg-branch-store-card { border-radius: 14px; min-height: 0; }
  .yg-branch-store-card__body { min-height: 194px; padding: 19px 18px 18px; }
  .yg-branch-store-card h4 { font-size: 19px; }
  .yg-branch-store-card__address { margin: 9px 0 14px; }
  .yg-branch-detail__navigation { font-size: 13px; margin-top: 20px; padding: 11px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .yg-branch-region-tabs button, .yg-branch-store-card, .yg-branch-store-card__media img, .yg-branch-store-card__link span { transition: none; }
}

/* Final /news/ layout: narrow archive, one banner, taxonomy controls, compact cards. */
.site-main--news-rebuilt { background: #fffdfb; }
.site-main--news-rebuilt .site-container { width: min(980px, calc(100% - 48px)); }
.site-main--news-rebuilt .yg-news-banner-region { padding: clamp(22px, 3vw, 38px) 0 0; }
.site-main--news-rebuilt .yg-news-banner { min-height: clamp(132px, 13vw, 160px); }
.site-main--news-rebuilt .yg-news-banner__inner { padding: 18px 24px 29px; }
.site-main--news-rebuilt .yg-news-banner h2 { font-size: clamp(27px, 3vw, 34px); }
.site-main--news-rebuilt .yg-news-banner p { font-size: 10px; margin-top: 4px; }
.site-main--news-rebuilt .yg-news-article-section { padding-bottom: clamp(62px, 8vw, 100px); }
.site-main--news-rebuilt .yg-news-filter-bar { margin: -18px auto 24px; max-width: 700px; min-height: 46px; }
.site-main--news-rebuilt .yg-news-filter-bar button { min-height: 46px; }
.site-main--news-rebuilt .yg-news-article-grid { gap: 18px; }
.site-main--news-rebuilt .yg-news-article-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-main--news-rebuilt .yg-news-article-card { border-radius: 8px; box-shadow: 0 10px 24px rgba(94, 64, 58, .055); }
.site-main--news-rebuilt .yg-news-article-card__media { aspect-ratio: 1.88; }
.site-main--news-rebuilt .yg-news-article-card__body { display: flex; flex-direction: column; min-height: 126px; padding: 12px 14px 13px; }
.site-main--news-rebuilt .yg-news-article-card h3 { font-size: 15px; line-height: 1.34; margin: 7px 0 6px; }
.site-main--news-rebuilt .yg-news-article-card p { font-size: 11px; line-height: 1.55; }
.site-main--news-rebuilt .yg-news-article-card__link { font-size: 11px; margin-top: auto; padding-top: 8px; }

@media (max-width: 1100px) and (min-width: 761px) {
  .site-main--news-rebuilt .yg-news-article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-main--news-rebuilt .site-container { width: calc(100% - 32px); }
  .site-main--news-rebuilt .yg-news-banner-region { padding-top: 16px; }
  .site-main--news-rebuilt .yg-news-banner { min-height: 118px; }
  .site-main--news-rebuilt .yg-news-banner__inner { padding: 17px 18px 25px; }
  .site-main--news-rebuilt .yg-news-filter-bar { margin: -14px auto 20px; }
  .site-main--news-rebuilt .yg-news-article-grid { gap: 14px; }
  .site-main--news-rebuilt .yg-news-article-grid { grid-template-columns: 1fr; }
  .site-main--news-rebuilt .yg-news-article-card__body { min-height: 118px; }
}

/* /news/ banner follows the approved case-story composition with WordPress-owned copy. */
.site-main--news-rebuilt .yg-news-banner-region {
  padding: 0;
}

.site-main--news-rebuilt .yg-news-banner-region > .site-container {
  max-width: none;
  width: 100%;
}

.site-main--news-rebuilt .yg-news-banner {
  background-image:
    linear-gradient(90deg, rgba(8, 20, 25, .68) 0%, rgba(8, 20, 25, .48) 50%, rgba(8, 20, 25, .62) 100%),
    var(--yg-news-banner-image);
  background-position: center;
  min-height: clamp(244px, 25vw, 350px);
}

.site-main--news-rebuilt .yg-news-banner__inner {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: inherit;
  padding: 0;
  position: relative;
  width: min(1100px, calc(100% - 64px));
}

.site-main--news-rebuilt .yg-news-banner__context {
  left: 0;
  position: absolute;
  text-align: left;
  top: 50%;
  transform: translateY(-50%);
}

.site-main--news-rebuilt .yg-news-banner__eyebrow {
  color: #ffc65e;
  display: block;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 74px;
}

.site-main--news-rebuilt .yg-news-banner__english {
  color: rgba(255, 255, 255, .92);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 13px;
  letter-spacing: .13em;
  line-height: 1.2;
  margin: 0;
}

.site-main--news-rebuilt .yg-news-banner h2 {
  color: #fff;
  font-size: clamp(38px, 4vw, 56px);
  text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
}

.site-main--news-rebuilt .yg-news-filter-bar {
  border: 0;
  border-radius: 15px;
  box-shadow: 0 18px 34px rgba(22, 30, 36, .16);
  margin: -38px auto 30px;
  max-width: 1080px;
  min-height: 70px;
}

.site-main--news-rebuilt .yg-news-filter-bar button {
  font-size: 16px;
  min-height: 70px;
  padding: 12px 20px;
}

.site-main--news-rebuilt .yg-news-filter-bar button.is-active {
  background: transparent;
  box-shadow: none;
  color: #e99a32;
}

.site-main--news-rebuilt .yg-news-filter-bar button.is-active::after {
  border: 1px solid #ffb54d;
  content: '';
  inset: 10px 18px;
  pointer-events: none;
  position: absolute;
}

.site-main--news-rebuilt .yg-news-filter-bar button {
  position: relative;
}

/* Final news archive hierarchy: restrained centered banner, taxonomy navigation, compact story cards. */
body.blog .site-main--news-rebuilt .yg-news-banner-region,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner-region {
  padding: 26px 0 0;
}

body.blog .site-main--news-rebuilt .yg-news-banner-region > .site-container,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner-region > .site-container {
  max-width: none;
  width: min(980px, calc(100% - 48px));
}

body.blog .site-main--news-rebuilt .yg-news-banner,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner {
  background-image:
    linear-gradient(90deg, rgba(16, 27, 33, .6) 0%, rgba(16, 27, 33, .47) 52%, rgba(16, 27, 33, .58) 100%),
    var(--yg-news-banner-image);
  min-height: clamp(150px, 15vw, 178px);
}

body.blog .site-main--news-rebuilt .yg-news-banner__inner,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  padding: 18px 24px 28px;
  text-align: center;
  width: 100%;
}

body.blog .site-main--news-rebuilt .yg-news-banner h2,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner h2 {
  font-size: clamp(29px, 3vw, 38px);
}

body.blog .site-main--news-rebuilt .yg-news-banner__english,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner__english {
  color: rgba(255, 255, 255, .92);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 10px;
  letter-spacing: .13em;
  line-height: 1.4;
  margin: 5px 0 0;
}

body.blog .site-main--news-rebuilt .yg-news-filter-bar,
body.page-id-11 .site-main--news-rebuilt .yg-news-filter-bar {
  border-radius: 9px;
  box-shadow: 0 12px 26px rgba(27, 35, 43, .13);
  margin: -20px auto 24px;
  max-width: 700px;
  min-height: 48px;
}

body.blog .site-main--news-rebuilt .yg-news-filter-bar button,
body.page-id-11 .site-main--news-rebuilt .yg-news-filter-bar button {
  font-size: 13px;
  min-height: 48px;
}

body.blog .site-main--news-rebuilt .yg-news-article-grid,
body.page-id-11 .site-main--news-rebuilt .yg-news-article-grid {
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.blog .site-main--news-rebuilt .yg-news-article-card__media,
body.page-id-11 .site-main--news-rebuilt .yg-news-article-card__media {
  aspect-ratio: 1.76;
}

body.blog .site-main--news-rebuilt .yg-news-article-card__body,
body.page-id-11 .site-main--news-rebuilt .yg-news-article-card__body {
  min-height: 122px;
  padding: 12px 14px 13px;
}

body.blog .site-main--news-rebuilt .yg-news-article-card h3,
body.page-id-11 .site-main--news-rebuilt .yg-news-article-card h3 {
  font-size: 15px;
}

@media (max-width: 760px) {
  body.blog .site-main--news-rebuilt .yg-news-banner-region,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner-region {
    padding-top: 16px;
  }

  body.blog .site-main--news-rebuilt .yg-news-banner-region > .site-container,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner-region > .site-container {
    width: calc(100% - 32px);
  }

  body.blog .site-main--news-rebuilt .yg-news-banner,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner {
    min-height: 130px;
  }

  body.blog .site-main--news-rebuilt .yg-news-banner__inner,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner__inner {
    padding: 16px 18px 23px;
  }

  body.blog .site-main--news-rebuilt .yg-news-banner h2,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner h2 {
    font-size: 28px;
  }

  body.blog .site-main--news-rebuilt .yg-news-article-grid,
  body.page-id-11 .site-main--news-rebuilt .yg-news-article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-main--news-rebuilt .yg-news-banner {
    min-height: 186px;
  }

  .site-main--news-rebuilt .yg-news-banner__inner {
    display: block;
    padding: 30px 24px 40px;
    text-align: center;
    width: calc(100% - 36px);
  }

  .site-main--news-rebuilt .yg-news-banner__context {
    left: auto;
    position: static;
    text-align: center;
    transform: none;
  }

  .site-main--news-rebuilt .yg-news-banner__eyebrow {
    font-size: 13px;
    margin: 0 0 8px;
  }

  .site-main--news-rebuilt .yg-news-banner__english {
    font-size: 10px;
    margin-bottom: 13px;
  }

  .site-main--news-rebuilt .yg-news-banner h2 {
    font-size: 33px;
  }

  .site-main--news-rebuilt .yg-news-filter-bar {
    border-radius: 10px;
    margin: -22px auto 22px;
    min-height: 54px;
  }

  .site-main--news-rebuilt .yg-news-filter-bar button {
    font-size: 12px;
    min-height: 54px;
    padding: 8px 4px;
  }

  .site-main--news-rebuilt .yg-news-filter-bar button.is-active::after {
    inset: 8px 5px;
  }
}

/* Keep the rebuilt news hero independent from legacy news-page declarations above. */
.site-main--news-rebuilt .yg-news-intro .page-banner--news {
  min-height: clamp(146px, 15vw, 202px) !important;
  padding: clamp(38px, 4.4vw, 64px) 0 clamp(22px, 2.6vw, 36px) !important;
}

.site-main--news-rebuilt .yg-news-intro .page-banner__inner h1 {
  font-size: clamp(38px, 4vw, 50px);
}

.site-main--news-rebuilt .yg-news-intro .page-banner__inner > p:not(.section-kicker) {
  font-size: 13px;
  line-height: 1.65;
  margin-top: 8px;
  max-width: 480px;
}

@media (max-width: 760px) {
  .site-main--news-rebuilt .yg-news-intro .page-banner--news {
    min-height: 0 !important;
    padding: 32px 0 23px !important;
  }

  .site-main--news-rebuilt .yg-news-intro .page-banner__inner h1 {
    font-size: 31px;
  }

  .site-main--news-rebuilt .yg-news-intro .page-banner__inner > p:not(.section-kicker) {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 6px;
  }
}

/* News archive structural pass: the banner and taxonomy controls lead the page. */
.site-main--news-rebuilt {
  background: #fffdfb;
}

.site-main--news-rebuilt .site-container {
  width: min(980px, calc(100% - 48px));
}

.yg-news-banner-region {
  padding: clamp(22px, 3vw, 38px) 0 0;
}

.yg-news-banner {
  min-height: clamp(132px, 13vw, 160px);
}

.yg-news-banner__inner {
  padding: 18px 24px 29px;
}

.yg-news-banner h2 {
  font-size: clamp(27px, 3vw, 34px);
}

.yg-news-banner p {
  font-size: 10px;
  margin-top: 4px;
}

.yg-news-article-section {
  padding-bottom: clamp(62px, 8vw, 100px);
}

.yg-news-filter-bar {
  margin: -18px auto 24px;
  max-width: 700px;
  min-height: 46px;
}

.yg-news-filter-bar button {
  min-height: 46px;
}

.yg-news-article-grid {
  gap: 18px;
}

.yg-news-article-card {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(94, 64, 58, .055);
}

.yg-news-article-card__media {
  aspect-ratio: 1.88;
}

.yg-news-article-card__body {
  display: flex;
  flex-direction: column;
  min-height: 126px;
  padding: 12px 14px 13px;
}

.yg-news-article-card__meta {
  font-size: 10px;
}

.yg-news-article-card h3 {
  font-size: 15px;
  line-height: 1.34;
  margin: 7px 0 6px;
}

.yg-news-article-card p {
  font-size: 11px;
  line-height: 1.55;
}

.yg-news-article-card__link {
  font-size: 11px;
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 760px) {
  .site-main--news-rebuilt .site-container {
    width: calc(100% - 32px);
  }

  .yg-news-banner-region {
    padding-top: 16px;
  }

  .yg-news-banner {
    min-height: 118px;
  }

  .yg-news-banner__inner {
    padding: 17px 18px 25px;
  }

  .yg-news-filter-bar {
    margin: -14px auto 20px;
  }

  .yg-news-article-grid {
    gap: 14px;
  }

  .yg-news-article-card__body {
    min-height: 118px;
  }
}

/* News archive rebuild: page copy, page feature image, article categories and posts remain WordPress-owned. */
body.blog,
body.page-id-11 {
  background: #fffdfb;
}

.site-main--news-rebuilt {
  --yg-news-ink: #243047;
  --yg-news-muted: #6f7888;
  --yg-news-coral: #f16f68;
  --yg-news-soft: #fff0ed;
  background:
    radial-gradient(circle at 82% 4%, rgba(255, 230, 152, .22), transparent 22rem),
    #fffdfb;
  color: var(--yg-news-ink);
  overflow: hidden;
}

.site-main--news-rebuilt,
.site-main--news-rebuilt * {
  box-sizing: border-box;
}

.site-main--news-rebuilt .yg-news-intro .page-banner--news {
  align-items: flex-start;
  background: radial-gradient(circle at 88% 49%, rgba(255, 227, 151, .22), transparent 19rem), #fffdfb;
  display: flex;
  min-height: clamp(146px, 15vw, 202px);
  padding: clamp(38px, 4.4vw, 64px) 0 clamp(22px, 2.6vw, 36px);
}

.site-main--news-rebuilt .yg-news-intro .page-banner__inner {
  margin-inline: auto;
  width: min(1180px, calc(100% - 48px));
}

.site-main--news-rebuilt .yg-news-intro .page-banner__actions {
  display: none;
}

.site-main--news-rebuilt .yg-news-intro .section-kicker {
  color: var(--yg-news-coral);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .05em;
  margin: 0 0 8px;
}

.site-main--news-rebuilt .yg-news-intro .section-kicker::before {
  background: var(--yg-news-coral);
  content: '';
  display: inline-block;
  height: 2px;
  margin: 0 9px 4px 0;
  vertical-align: middle;
  width: 28px;
}

.site-main--news-rebuilt .yg-news-intro h1 {
  color: var(--yg-news-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.04;
  margin: 0;
}

.site-main--news-rebuilt .yg-news-intro h1 + p {
  color: var(--yg-news-muted);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0 0;
  max-width: 480px;
}

.site-main--news-rebuilt .site-container {
  margin-inline: auto;
  width: min(1180px, calc(100% - 48px));
}

.yg-news-entry-section {
  padding: 0 0 clamp(28px, 3.2vw, 42px);
}

.yg-news-entry-section h2,
.yg-news-article-heading h2 {
  color: var(--yg-news-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(23px, 2.35vw, 30px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.18;
  margin: 0 0 16px;
}

.yg-news-entry-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yg-news-entry-card {
  color: inherit;
  display: block;
  min-width: 0;
  text-decoration: none;
}

.yg-news-entry-card__image,
.yg-news-entry-card__image img {
  display: block;
}

.yg-news-entry-card__image {
  aspect-ratio: 1.92;
  background: #f8e6e1;
  border-radius: 10px;
  overflow: hidden;
}

.yg-news-entry-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  width: 100%;
}

.yg-news-entry-card:hover .yg-news-entry-card__image img,
.yg-news-entry-card:focus-visible .yg-news-entry-card__image img {
  transform: scale(1.035);
}

.yg-news-entry-card__content {
  display: block;
  padding: 8px 2px 0;
}

.yg-news-entry-card__content strong {
  color: var(--yg-news-ink);
  display: block;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.32;
}

.yg-news-entry-card__content small {
  color: var(--yg-news-muted);
  display: block;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  display: -webkit-box;
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.yg-news-entry-card:focus-visible,
.yg-news-article-card a:focus-visible,
.yg-news-filter-bar button:focus-visible {
  outline: 3px solid rgba(241, 111, 104, .5);
  outline-offset: 4px;
}

.yg-news-banner-region {
  padding: 0;
}

.yg-news-banner {
  align-items: center;
  background-color: #d5c0ba;
  background-image:
    linear-gradient(90deg, rgba(31, 44, 59, .62) 0%, rgba(31, 44, 59, .46) 54%, rgba(31, 44, 59, .3) 100%),
    var(--yg-news-banner-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  min-height: clamp(142px, 13vw, 178px);
  text-align: center;
  position: relative;
}

.yg-news-banner__inner {
  padding: 23px 28px 34px;
}

.yg-news-banner__eyebrow {
  color: rgba(255, 255, 255, .9);
  display: inline-block;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.yg-news-banner h2 {
  color: #fff;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(27px, 2.9vw, 38px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 2px 18px rgba(26, 39, 52, .24);
}

.yg-news-banner p {
  color: rgba(255, 255, 255, .9);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.4;
  margin: 5px 0 0;
  max-width: 420px;
}

.yg-news-article-section {
  padding: 0 0 clamp(76px, 9vw, 126px);
}

.yg-news-filter-bar {
  align-items: center;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(241, 111, 104, .2);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(103, 69, 62, .1);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -17px auto 30px;
  max-width: 760px;
  min-height: 48px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.yg-news-filter-bar button {
  background: transparent;
  border: 0;
  color: #4f5d70;
  cursor: pointer;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 13px;
  font-weight: 700;
  min-height: 48px;
  padding: 8px 12px;
  transition: background .2s ease, color .2s ease;
}

.yg-news-filter-bar button + button {
  border-left: 1px solid rgba(229, 202, 196, .68);
}

.yg-news-filter-bar button:hover,
.yg-news-filter-bar button.is-active {
  background: #fff4f2;
  color: var(--yg-news-coral);
}

.yg-news-filter-bar button:active {
  transform: translateY(1px);
}

.yg-news-article-heading {
  margin-bottom: 16px;
}

.yg-news-article-heading h2 {
  margin-bottom: 0;
}

.yg-news-article-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yg-news-article-card {
  background: #fff;
  border: 1px solid rgba(231, 211, 207, .76);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(94, 64, 58, .065);
  min-width: 0;
  overflow: hidden;
  transition: box-shadow .24s ease, transform .24s ease;
}

.yg-news-article-card:hover {
  box-shadow: 0 18px 34px rgba(94, 64, 58, .12);
  transform: translateY(-2px);
}

.yg-news-article-card[hidden] {
  display: none;
}

.yg-news-article-card__media {
  aspect-ratio: 1.72;
  background: #f7e8e3;
  display: block;
  overflow: hidden;
}

.yg-news-article-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  width: 100%;
}

.yg-news-article-card:hover .yg-news-article-card__media img {
  transform: scale(1.035);
}

.yg-news-entry-card__image.is-empty,
.yg-news-article-card__media.is-empty {
  background: #f8e9e5;
}

.yg-news-article-card__body {
  padding: 13px 15px 15px;
}

.yg-news-article-card__meta {
  color: var(--yg-news-coral);
  display: flex;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 10px;
  font-weight: 700;
  gap: 12px;
  line-height: 1.4;
}

.yg-news-article-card__meta span::before {
  background: #ffd1cb;
  border-radius: 50%;
  content: '';
  display: inline-block;
  height: 4px;
  margin: 0 8px 2px 0;
  width: 4px;
}

.yg-news-article-card h3 {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.36;
  margin: 8px 0 7px;
}

.yg-news-article-card h3 a,
.yg-news-article-card__link {
  color: var(--yg-news-ink);
  text-decoration: none;
}

.yg-news-article-card p {
  color: var(--yg-news-muted);
  display: -webkit-box;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 12px;
  line-height: 1.58;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.yg-news-article-card__link {
  color: var(--yg-news-coral);
  display: inline-block;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 12px;
  font-weight: 750;
  margin-top: 10px;
}

.yg-news-article-card__link::after {
  content: ' →';
}

@media (max-width: 760px) {
  .site-main--news-rebuilt .yg-news-intro .page-banner--news {
    min-height: 0;
    padding: 32px 0 23px;
  }

  .site-main--news-rebuilt .yg-news-intro .page-banner__inner,
  .site-main--news-rebuilt .site-container {
    width: calc(100% - 32px);
  }

  .site-main--news-rebuilt .yg-news-intro h1 {
    font-size: 31px;
    letter-spacing: -.045em;
  }

  .site-main--news-rebuilt .yg-news-intro h1 + p {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 6px;
  }

  .yg-news-entry-section {
    padding-bottom: 30px;
  }

  .yg-news-entry-section h2,
  .yg-news-article-heading h2 {
    font-size: 22px;
    margin-bottom: 13px;
  }

  .yg-news-entry-grid,
  .yg-news-article-grid {
    grid-template-columns: 1fr;
  }

  .yg-news-entry-grid {
    gap: 10px;
  }

  .yg-news-entry-card {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 40% minmax(0, 1fr);
  }

  .yg-news-entry-card__image {
    aspect-ratio: 1.55;
  }

  .yg-news-entry-card__content {
    padding: 0;
  }

  .yg-news-entry-card__content strong {
    font-size: 14px;
  }

  .yg-news-banner {
    min-height: 132px;
  }

  .yg-news-banner__inner {
    padding: 18px 20px 27px;
  }

  .yg-news-banner__eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .yg-news-banner h2 {
    font-size: 26px;
  }

  .yg-news-banner p {
    font-size: 9px;
    max-width: 270px;
  }

  .yg-news-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -14px auto 26px;
    min-height: 0;
  }

  .yg-news-filter-bar button {
    font-size: 12px;
    min-height: 44px;
    padding: 8px 6px;
  }

  .yg-news-filter-bar button + button {
    border-left: 1px solid rgba(229, 202, 196, .68);
  }

  .yg-news-article-grid {
    gap: 20px;
  }

  .yg-news-article-card__body {
    padding: 18px 18px 20px;
  }

  .yg-news-article-card h3 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yg-news-entry-card__image img,
  .yg-news-article-card,
  .yg-news-article-card__media img,
  .yg-news-filter-bar button {
    transition: none;
  }
}

/* National campuses: archive-branch.php. */
body.post-type-archive-branch { background: #fff8f7; }
.yg-branch-page { color: #243149; overflow: hidden; }
.yg-branch-container { margin: 0 auto; max-width: 1180px; width: calc(100% - 48px); }
.yg-branch-hero { background: linear-gradient(112deg, #fff0ee 0%, #fff8f7 54%, #f3f9ff 100%); padding: 82px 0 64px; position: relative; }
.yg-branch-hero::before, .yg-branch-hero::after { border: 20px solid rgba(255, 126, 110, .13); border-radius: 50%; content: ''; pointer-events: none; position: absolute; }
.yg-branch-hero::before { height: 230px; right: -84px; top: -94px; width: 230px; }
.yg-branch-hero::after { bottom: -76px; height: 118px; left: 7%; width: 118px; }
.yg-branch-hero .yg-branch-container { position: relative; z-index: 1; }
.yg-branch-hero__copy { max-width: 790px; }
.yg-branch-hero h1, .yg-branch-heading h2 { color: #243149; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-weight: 900; letter-spacing: -.03em; margin: 0; }
.yg-branch-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; }
.yg-branch-hero p { color: #647088; font-size: 16px; line-height: 1.85; margin: 20px 0 0; max-width: 690px; }
.yg-branch-map-section { background: #fff; padding: 72px 0 84px; }
.yg-branch-heading { margin: 0 auto 28px; max-width: 720px; text-align: center; }
.yg-branch-heading h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; }
.yg-branch-heading p { color: #718096; font-size: 15px; line-height: 1.8; margin: 12px 0 0; }
.yg-branch-map-layout { background: #f7fbff; border: 1px solid #e3edf8; border-radius: 22px; box-shadow: 0 18px 46px rgba(73, 105, 136, .12); display: grid; grid-template-columns: minmax(330px, .88fr) minmax(0, 1.12fr); min-height: 480px; overflow: hidden; }
.yg-branch-map-panel { min-height: 480px; position: relative; }
.yg-branch-map-layout > .yg-branch-selector { grid-column: 1; grid-row: 1; }
.yg-branch-map-layout > .yg-branch-map-panel { grid-column: 2; grid-row: 1; }
.yg-branch-map-panel .branch-map__canvas { height: 100%; min-height: 480px; width: 100%; }
.yg-branch-map-panel .branch-map__state { align-items: center; background: rgba(247, 251, 255, .93); color: #68758b; display: flex; inset: 0; justify-content: center; padding: 24px; position: absolute; text-align: center; }
.yg-branch-map-panel:not(.has-state) .branch-map__state { display: none; }
.yg-branch-selector { background: #fffdfc; display: flex; flex-direction: column; min-height: 0; padding: 30px; }
.yg-branch-selector__head { align-items: baseline; display: flex; gap: 14px; justify-content: space-between; }
.yg-branch-selector__head strong { color: #26334a; font-size: 20px; font-weight: 900; }
.yg-branch-selector__head span { color: #ee6b61; font-size: 13px; font-weight: 700; }
.yg-branch-city-quick { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 16px; }
.yg-branch-city-quick button { background: #fff; border: 1px solid #e8eef5; border-radius: 10px; color: #34425a; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; min-height: 50px; padding: 8px; text-align: left; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease; }
.yg-branch-city-quick button:hover, .yg-branch-city-quick button:focus-visible, .yg-branch-city-quick button.is-active { background: #fff2ef; border-color: #ffb0a5; box-shadow: 0 8px 16px rgba(118, 90, 101, .08); color: #df5f55; transform: translateY(-1px); }
.yg-branch-selector__controls { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 20px 0; }
.yg-branch-selector label { color: #7d899b; display: grid; font-size: 12px; font-weight: 700; gap: 7px; }
.yg-branch-selector select { appearance: auto; background: #fff; border: 1px solid #dce7f2; border-radius: 10px; color: #34425a; font: inherit; min-height: 42px; outline-color: #ee6b61; padding: 0 10px; width: 100%; }
.yg-branch-results { display: grid; gap: 10px; grid-auto-rows: auto; max-height: 336px; min-height: 0; overflow-y: auto; padding-right: 4px; }
.yg-branch-result { background: #fff; border: 1px solid #e8eef5; border-radius: 12px; padding: 13px 15px; }
.yg-branch-result h3 { font-size: 15px; line-height: 1.35; margin: 0; }
.yg-branch-result h3 a { color: #2d3a52; text-decoration: none; }
.yg-branch-result p { font-size: 12px; line-height: 1.6; margin: 6px 0 0; }
.yg-branch-result__address { color: #77869a; text-decoration: none; }
.yg-branch-result:hover, .yg-branch-result:focus-within { border-color: #ffb4a8; box-shadow: 0 8px 18px rgba(118, 90, 101, .08); }
.yg-branch-empty { color: #7d899b; font-size: 13px; line-height: 1.7; margin: auto 0 0; }
.yg-branch-directory { background: linear-gradient(180deg, #fff8f7 0%, #fff 100%); padding: 84px 0 96px; }
.yg-branch-heading--directory { margin-bottom: 24px; }
.yg-branch-cities { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 44px; max-width: 980px; }
.yg-branch-cities a { background: #fff; border: 1px solid #f2d8d3; border-radius: 999px; color: #5f6e82; font-size: 14px; font-weight: 700; line-height: 1; padding: 11px 16px; text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.yg-branch-cities a:hover, .yg-branch-cities a:focus-visible { background: #ee6b61; border-color: #ee6b61; color: #fff; transform: translateY(-1px); }
.yg-branch-groups { display: grid; gap: 30px; }
.yg-branch-group { background: rgba(255,255,255,.78); border: 1px solid #f1e0dc; border-radius: 20px; padding: 26px; scroll-margin-top: 96px; }
.yg-branch-group > header { align-items: baseline; display: flex; justify-content: space-between; margin-bottom: 18px; }
.yg-branch-group h3 { color: #2a3750; font-family: sans-serif; font-size: 26px; line-height: 1.1; margin: 0; }
.yg-branch-group > header span { color: #e87367; font-size: 13px; font-weight: 700; }
.yg-branch-cards { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yg-branch-card { background: #fff; border: 1px solid #edf0f4; border-radius: 14px; min-height: 170px; padding: 20px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.yg-branch-card:hover { border-color: #ffc3ba; box-shadow: 0 14px 28px rgba(111, 80, 86, .1); transform: translateY(-2px); }
.yg-branch-card h4 { font-size: 17px; line-height: 1.4; margin: 0 0 10px; }
.yg-branch-card h4 a { color: #2c3a52; text-decoration: none; }
.yg-branch-card p { font-size: 13px; line-height: 1.7; margin: 0 0 12px; }
.yg-branch-card__address { color: #718096; text-decoration: none; }
.yg-branch-card__address:hover, .yg-branch-card__address:focus-visible, .yg-branch-card__phone:hover, .yg-branch-card__phone:focus-visible { color: #e75f56; text-decoration: underline; text-underline-offset: 3px; }
.yg-branch-card__phone { color: #e75f56; display: block; font-size: 13px; font-weight: 800; margin-top: 5px; text-decoration: none; }
.yg-branch-card small { color: #8b96a6; display: block; font-size: 12px; line-height: 1.6; margin-top: 5px; }
.yg-branch-no-results { background: #fff; border: 1px dashed #e7c8c2; border-radius: 18px; padding: 42px 28px; text-align: center; }
.yg-branch-no-results h2 { color: #2b3850; font-size: 24px; margin: 0; }
.yg-branch-no-results p { color: #718096; margin: 12px 0 0; }
@media (max-width: 900px) { .yg-branch-map-layout { grid-template-columns: 1fr; } .yg-branch-map-layout > .yg-branch-selector, .yg-branch-map-layout > .yg-branch-map-panel { grid-column: 1; } .yg-branch-map-layout > .yg-branch-selector { grid-row: 1; } .yg-branch-map-layout > .yg-branch-map-panel { grid-row: 2; } .yg-branch-map-panel, .yg-branch-map-panel .branch-map__canvas { min-height: 370px; } .yg-branch-selector { min-height: 390px; } .yg-branch-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .yg-branch-container { width: calc(100% - 32px); } .yg-branch-hero { padding: 52px 0 46px; } .yg-branch-hero h1 { font-size: 38px; } .yg-branch-hero p { font-size: 14px; margin-top: 15px; } .yg-branch-map-section, .yg-branch-directory { padding: 54px 0 64px; } .yg-branch-heading { margin-bottom: 22px; } .yg-branch-heading h2 { font-size: 29px; } .yg-branch-heading p { font-size: 14px; } .yg-branch-map-layout { border-radius: 16px; } .yg-branch-map-panel, .yg-branch-map-panel .branch-map__canvas { min-height: 300px; } .yg-branch-selector { min-height: 0; padding: 22px 18px; } .yg-branch-selector__head strong { font-size: 18px; } .yg-branch-city-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yg-branch-results { max-height: 320px; } .yg-branch-cities { justify-content: flex-start; margin-bottom: 28px; } .yg-branch-cities a { font-size: 13px; padding: 10px 13px; } .yg-branch-group { border-radius: 16px; padding: 20px 16px; } .yg-branch-group h3 { font-size: 23px; } .yg-branch-cards { grid-template-columns: 1fr; } .yg-branch-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .yg-branch-cities a, .yg-branch-card, .yg-branch-result { transition: none; } }

/* National campuses: regional directory and editable branch detail. */
.yg-branch-directory--regions { background: linear-gradient(180deg, #fff 0%, #fff8f7 100%); }
.yg-branch-directory--regions .yg-branch-heading { margin-bottom: 10px; }
.yg-branch-directory__count { color: #d96258; font-size: 14px; font-weight: 800; letter-spacing: .02em; margin: 0 0 34px; text-align: center; }
.yg-branch-region-grid { align-items: start; display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yg-branch-region { background: rgba(255, 255, 255, .86); border: 1px solid #f0ddd9; border-radius: 18px; box-shadow: 0 15px 36px rgba(100, 68, 69, .07); min-width: 0; overflow: hidden; scroll-margin-top: 100px; }
.yg-branch-region__header { align-items: baseline; background: linear-gradient(104deg, #fff0ed 0%, #fff9f8 100%); border-bottom: 1px solid #f4e1dd; display: flex; justify-content: space-between; padding: 20px 20px 17px; }
.yg-branch-region__header h3 { color: #29364d; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: 25px; font-weight: 900; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
.yg-branch-region__header span { color: #d8645a; font-size: 12px; font-weight: 800; white-space: nowrap; }
.yg-branch-region__list { display: grid; gap: 0; }
.yg-branch-mini-card { border-bottom: 1px solid #f1eceb; padding: 17px 20px 18px; }
.yg-branch-mini-card:last-child { border-bottom: 0; }
.yg-branch-mini-card h4 { font-size: 16px; line-height: 1.42; margin: 0; }
.yg-branch-mini-card h4 a { color: #2d3a52; text-decoration: none; }
.yg-branch-mini-card p { color: #768397; display: -webkit-box; font-size: 12px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.65; margin: 7px 0 0; overflow: hidden; }
.yg-branch-mini-card__link { align-items: center; color: #dd6257; display: inline-flex; font-size: 13px; font-weight: 800; gap: 7px; margin-top: 11px; text-decoration: none; }
.yg-branch-mini-card__link span { font-size: 17px; line-height: .8; transition: transform .2s ease; }
.yg-branch-mini-card:hover h4 a, .yg-branch-mini-card:focus-within h4 a { color: #d95850; }
.yg-branch-mini-card:hover .yg-branch-mini-card__link span, .yg-branch-mini-card:focus-within .yg-branch-mini-card__link span { transform: translateX(3px); }
.yg-branch-mini-card h4 a:focus-visible, .yg-branch-mini-card__link:focus-visible, .yg-branch-detail__back:focus-visible, .yg-branch-detail-contact a:focus-visible { border-radius: 4px; outline: 3px solid rgba(221, 98, 87, .52); outline-offset: 3px; }

body.single-branch { background: #fff8f7; }
.yg-branch-detail-page { color: #29364d; overflow: hidden; }
.yg-branch-detail-container { margin: 0 auto; max-width: 1120px; width: calc(100% - 48px); }
.yg-branch-detail-hero { background: linear-gradient(112deg, #fff0ed 0%, #fff8f7 54%, #f4f9ff 100%); padding: 54px 0 58px; position: relative; }
.yg-branch-detail-hero::after { border: 18px solid rgba(255, 126, 110, .13); border-radius: 50%; content: ''; height: 186px; pointer-events: none; position: absolute; right: -52px; top: -72px; width: 186px; }
.yg-branch-detail-hero .yg-branch-detail-container { position: relative; z-index: 1; }
.yg-branch-detail__back { color: #c95952; display: inline-block; font-size: 14px; font-weight: 800; margin-bottom: 24px; text-decoration: none; }
.yg-branch-detail__city { color: #df6358; font-size: 14px; font-weight: 850; letter-spacing: .08em; margin: 0 0 10px; }
.yg-branch-detail-hero h1, .yg-branch-detail-copy h2, .yg-branch-detail-contact h2, .yg-branch-detail-map-heading h2 { color: #28354d; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-weight: 900; letter-spacing: -.03em; }
.yg-branch-detail-hero h1 { font-size: clamp(36px, 4.5vw, 55px); line-height: 1.12; margin: 0; }
.yg-branch-detail-section { background: #fff; padding: clamp(58px, 7vw, 88px) 0; }
.yg-branch-detail-intro { align-items: stretch; display: grid; gap: clamp(28px, 4vw, 54px); grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
.yg-branch-detail-copy { background: #fffaf9; border: 1px solid #f0dfdb; border-radius: 18px; padding: clamp(28px, 4vw, 48px); }
.yg-branch-detail-copy h2, .yg-branch-detail-contact h2, .yg-branch-detail-map-heading h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; margin: 0 0 20px; }
.yg-branch-detail-content { color: #627088; font-size: 15px; line-height: 1.9; }
.yg-branch-detail-content > :first-child { margin-top: 0; }
.yg-branch-detail-content > :last-child { margin-bottom: 0; }
.yg-branch-detail-content img { border-radius: 12px; height: auto; max-width: 100%; }
.yg-branch-detail-media { border-radius: 18px; box-shadow: 0 22px 46px rgba(81, 61, 63, .13); margin: 0; min-height: 320px; overflow: hidden; }
.yg-branch-detail-media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.yg-branch-detail-contact { border-top: 1px solid #f0e5e2; margin-top: clamp(38px, 5vw, 58px); padding-top: clamp(38px, 5vw, 58px); }
.yg-branch-detail-contact > section { background: #f8fbff; border: 1px solid #e2ecf7; border-radius: 16px; padding: clamp(24px, 3vw, 34px); }
.yg-branch-detail-contact h2 { margin-bottom: 19px; }
.yg-branch-detail-contact dl { display: grid; gap: 14px; margin: 0; }
.yg-branch-detail-contact dl > div { display: grid; gap: 16px; grid-template-columns: 74px minmax(0, 1fr); }
.yg-branch-detail-contact dt { color: #718096; font-size: 14px; font-weight: 800; }
.yg-branch-detail-contact dd { color: #33425b; font-size: 14px; line-height: 1.7; margin: 0; }
.yg-branch-detail-contact a { color: #d75d53; font-weight: 750; text-decoration: none; }
.yg-branch-detail-map-section { background: linear-gradient(180deg, #fff8f7 0%, #fff 100%); padding: clamp(58px, 7vw, 88px) 0 clamp(70px, 8vw, 100px); }
.yg-branch-detail-map-heading { margin-bottom: 25px; }
.yg-branch-detail-map-heading h2 { margin-bottom: 9px; }
.yg-branch-detail-map-heading p { color: #718096; font-size: 15px; line-height: 1.75; margin: 0; }
.yg-branch-detail-map { background: #edf5fc; border: 1px solid #dce9f5; border-radius: 18px; box-shadow: 0 18px 42px rgba(70, 103, 133, .12); overflow: hidden; position: relative; }
.yg-branch-detail-map.branch-section { display: block; }
.yg-branch-detail-map__canvas, .yg-branch-detail-map__canvas .branch-map__canvas { height: clamp(360px, 45vw, 520px); min-height: 360px; width: 100%; }
.yg-branch-detail-map__canvas { position: relative; }
.yg-branch-detail-map .branch-map__state { align-items: center; background: rgba(247, 251, 255, .94); color: #68758b; display: flex; inset: 0; justify-content: center; padding: 24px; position: absolute; text-align: center; }
.yg-branch-detail-map__canvas:not(.has-state) .branch-map__state { display: none; }
.yg-branch-detail-map__seed { height: 1px; overflow: hidden; position: absolute; width: 1px; }
.yg-branch-detail-map-embed { background: #fff; border: 1px solid #e5e9ef; border-radius: 18px; overflow: hidden; }
.yg-branch-detail-map-embed iframe { border: 0; display: block; height: clamp(360px, 45vw, 520px); width: 100%; }
@media (max-width: 980px) { .yg-branch-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yg-branch-detail-intro { grid-template-columns: 1fr; } .yg-branch-detail-media { min-height: 0; aspect-ratio: 1.6; } }
@media (max-width: 640px) { .yg-branch-region-grid { gap: 15px; grid-template-columns: 1fr; } .yg-branch-directory__count { margin-bottom: 24px; } .yg-branch-region__header { padding: 18px 17px 15px; } .yg-branch-region__header h3 { font-size: 23px; } .yg-branch-mini-card { padding: 15px 17px 16px; } .yg-branch-detail-container { width: calc(100% - 32px); } .yg-branch-detail-hero { padding: 38px 0 42px; } .yg-branch-detail__back { margin-bottom: 18px; } .yg-branch-detail-hero h1 { font-size: 36px; } .yg-branch-detail-section { padding: 50px 0; } .yg-branch-detail-copy { border-radius: 15px; padding: 24px 20px; } .yg-branch-detail-content { font-size: 14px; line-height: 1.82; } .yg-branch-detail-media { border-radius: 15px; } .yg-branch-detail-contact dl > div { gap: 10px; grid-template-columns: 62px minmax(0, 1fr); } .yg-branch-detail-map-section { padding: 50px 0 62px; } .yg-branch-detail-map, .yg-branch-detail-map-embed { border-radius: 15px; } .yg-branch-detail-map__canvas, .yg-branch-detail-map__canvas .branch-map__canvas, .yg-branch-detail-map-embed iframe { height: 330px; min-height: 330px; } }
@media (prefers-reduced-motion: reduce) { .yg-branch-mini-card__link span { transition: none; } }

/* Branch detail: unified four-module detail structure. */
body.single-branch { background: #fff8f7; }
.yg-branch-detail-page { color: #29364d; overflow: hidden; }
.yg-branch-detail-container { margin: 0 auto; max-width: 1120px; width: calc(100% - 48px); }
.yg-branch-detail-hero { background: linear-gradient(112deg, #fff0ed 0%, #fff8f7 54%, #f4f9ff 100%); padding: 54px 0 58px; position: relative; }
.yg-branch-detail-hero::after { border: 18px solid rgba(255, 126, 110, .13); border-radius: 50%; content: ''; height: 186px; pointer-events: none; position: absolute; right: -52px; top: -72px; width: 186px; }
.yg-branch-detail-hero .yg-branch-detail-container { position: relative; z-index: 1; }
.yg-branch-detail__back { color: #c95952; display: inline-block; font-size: 14px; font-weight: 800; margin-bottom: 24px; text-decoration: none; }
.yg-branch-detail__city { color: #df6358; font-size: 14px; font-weight: 850; letter-spacing: .08em; margin: 0 0 10px; }
.yg-branch-detail-hero h1, .yg-branch-detail-panel h2, .yg-branch-detail-heading h2, .yg-branch-arrival h2 { color: #28354d; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-weight: 900; letter-spacing: -.03em; }
.yg-branch-detail-hero h1 { font-size: clamp(36px, 4.5vw, 55px); line-height: 1.12; margin: 0; }
.yg-branch-detail-section { background: #fff; padding: clamp(58px, 7vw, 86px) 0; }
.yg-branch-detail-section--overview .yg-branch-detail-container { align-items: stretch; display: grid; gap: clamp(22px, 3vw, 34px); grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); }
.yg-branch-detail-panel { border-radius: 20px; padding: clamp(26px, 3.5vw, 42px); }
.yg-branch-detail-panel--intro { background: #fffaf9; border: 1px solid #f0dfdb; }
.yg-branch-detail-panel--info { background: #f8fbff; border: 1px solid #e2ecf7; }
.yg-branch-detail-panel h2, .yg-branch-detail-heading h2, .yg-branch-arrival h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.16; margin: 0 0 18px; }
.yg-branch-detail-content { color: #627088; font-size: 15px; line-height: 1.9; }
.yg-branch-detail-content > :first-child { margin-top: 0; }
.yg-branch-detail-content > :last-child { margin-bottom: 0; }
.yg-branch-detail-content img { border-radius: 14px; height: auto; max-width: 100%; }
.yg-branch-detail-panel dl, .yg-branch-arrival dl { display: grid; gap: 14px; margin: 0; }
.yg-branch-detail-panel dl > div, .yg-branch-arrival dl > div { display: grid; gap: 14px; grid-template-columns: 82px minmax(0, 1fr); }
.yg-branch-detail-panel dt, .yg-branch-arrival dt { color: #718096; font-size: 14px; font-weight: 800; }
.yg-branch-detail-panel dd, .yg-branch-arrival dd { color: #33425b; font-size: 14px; line-height: 1.7; margin: 0; }
.yg-branch-detail-panel a, .yg-branch-arrival a { color: #d75d53; font-weight: 750; text-decoration: none; }
.yg-branch-detail__navigation { align-items: center; background: #d96258; border-radius: 999px; color: #fff !important; display: inline-flex; font-size: 14px; font-weight: 850; gap: 9px; margin-top: 23px; padding: 12px 18px; text-decoration: none; transition: background .18s ease, box-shadow .18s ease, transform .18s ease; }
.yg-branch-detail__navigation:hover, .yg-branch-detail__navigation:focus-visible { background: #c6534b; box-shadow: 0 10px 20px rgba(194, 83, 74, .23); outline: none; }
.yg-branch-detail__navigation:active { transform: translateY(1px); }
.yg-branch-detail-heading { margin-bottom: 26px; }
.yg-branch-detail-heading p { color: #718096; font-size: 15px; line-height: 1.75; margin: 0; }
.yg-branch-detail-section--gallery { background: linear-gradient(180deg, #fff 0%, #fff8f7 100%); }
.yg-branch-gallery { display: grid; gap: 18px; }
.yg-branch-gallery__stage { aspect-ratio: 16 / 9; background: #f4efed; border-radius: 22px; box-shadow: 0 22px 52px rgba(81, 61, 63, .13); overflow: hidden; position: relative; }
.yg-branch-gallery__slide { inset: 0; margin: 0; opacity: 0; position: absolute; transition: opacity .28s ease; visibility: hidden; }
.yg-branch-gallery__slide.is-active { opacity: 1; visibility: visible; }
.yg-branch-gallery__slide img { display: block; height: 100%; object-fit: cover; width: 100%; }
.yg-branch-gallery__arrow { align-items: center; background: rgba(60, 47, 42, .55); border: 0; border-radius: 18px; color: #fff; cursor: pointer; display: flex; font-size: 54px; height: 82px; justify-content: center; line-height: 0; padding: 0; position: absolute; top: 50%; transform: translateY(-50%); width: 62px; z-index: 2; }
.yg-branch-gallery__arrow:hover, .yg-branch-gallery__arrow:focus-visible { background: rgba(44, 33, 30, .72); outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 3px; }
.yg-branch-gallery__arrow--prev { left: 22px; }
.yg-branch-gallery__arrow--next { right: 22px; }
.yg-branch-gallery__counter { background: rgba(255, 255, 255, .92); border-radius: 999px; color: #33425b; font-size: 14px; font-weight: 850; left: 22px; padding: 10px 16px; position: absolute; top: 20px; z-index: 2; }
.yg-branch-gallery__counter::first-letter { color: #e76057; }
.yg-branch-gallery__thumbs { background: #fff; border: 1px solid #f0dfdb; border-radius: 18px; display: flex; gap: 12px; overflow-x: auto; padding: 12px; }
.yg-branch-gallery__thumb { background: #f5efed; border: 2px solid transparent; border-radius: 14px; cursor: pointer; flex: 0 0 132px; height: 84px; overflow: hidden; padding: 0; }
.yg-branch-gallery__thumb.is-active, .yg-branch-gallery__thumb:focus-visible { border-color: #e76057; outline: none; }
.yg-branch-gallery__thumb img { display: block; height: 100%; object-fit: cover; width: 100%; }
.yg-branch-detail-empty { background: #fffaf9; border: 1px dashed #f0cfc8; border-radius: 18px; color: #718096; margin: 0; padding: 28px; }
.yg-branch-detail-section--arrival { background: #fff; }
.yg-branch-arrival { align-items: stretch; display: grid; gap: clamp(24px, 3.5vw, 44px); grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); }
.yg-branch-arrival__copy { background: #fffaf9; border: 1px solid #f0dfdb; border-radius: 20px; padding: clamp(26px, 3.5vw, 42px); }
.yg-branch-arrival__copy p { color: #627088; font-size: 15px; line-height: 1.82; margin: 0 0 22px; }
.yg-branch-arrival__image { border-radius: 22px; box-shadow: 0 22px 52px rgba(81, 61, 63, .13); margin: 0; min-height: 360px; overflow: hidden; }
.yg-branch-arrival__image img { display: block; height: 100%; object-fit: cover; width: 100%; }
.yg-branch-detail-map-section { background: linear-gradient(180deg, #fff8f7 0%, #fff 100%); padding: clamp(58px, 7vw, 88px) 0 clamp(70px, 8vw, 100px); }
.yg-branch-detail-map-heading { align-items: end; display: grid; gap: 12px 22px; grid-template-columns: minmax(0, 1fr) auto; }
.yg-branch-detail-map-heading h2, .yg-branch-detail-map-heading p { grid-column: 1; }
.yg-branch-detail__navigation--map { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; white-space: nowrap; }
.yg-branch-detail-map { background: #edf5fc; border: 1px solid #dce9f5; border-radius: 18px; box-shadow: 0 18px 42px rgba(70, 103, 133, .12); overflow: hidden; position: relative; }
.yg-branch-detail-map.branch-section { display: block; }
.yg-branch-detail-map__canvas, .yg-branch-detail-map__canvas .branch-map__canvas { height: clamp(360px, 45vw, 520px); min-height: 360px; width: 100%; }
.yg-branch-detail-map__canvas { position: relative; }
.yg-branch-detail-map .branch-map__state { align-items: center; background: rgba(247, 251, 255, .94); color: #68758b; display: flex; inset: 0; justify-content: center; padding: 24px; position: absolute; text-align: center; }
.yg-branch-detail-map__canvas:not(.has-state) .branch-map__state { display: none; }
.yg-branch-detail-map__seed { height: 1px; overflow: hidden; position: absolute; width: 1px; }
.yg-branch-detail-map-embed { background: #fff; border: 1px solid #e5e9ef; border-radius: 18px; overflow: hidden; }
.yg-branch-detail-map-embed iframe { border: 0; display: block; height: clamp(360px, 45vw, 520px); width: 100%; }
.yg-branch-detail__back:focus-visible, .yg-branch-gallery__thumb:focus-visible, .yg-branch-detail-panel a:focus-visible, .yg-branch-arrival a:focus-visible { border-radius: 4px; outline: 3px solid rgba(221, 98, 87, .52); outline-offset: 3px; }

@media (max-width: 980px) {
  .yg-branch-detail-section--overview .yg-branch-detail-container, .yg-branch-arrival { grid-template-columns: 1fr; }
  .yg-branch-gallery__stage { aspect-ratio: 4 / 3; }
  .yg-branch-arrival__image { min-height: 0; aspect-ratio: 1.45; }
}

@media (max-width: 640px) {
  .yg-branch-detail-container { width: calc(100% - 32px); }
  .yg-branch-detail-hero { padding: 38px 0 42px; }
  .yg-branch-detail__back { margin-bottom: 18px; }
  .yg-branch-detail-hero h1 { font-size: 36px; }
  .yg-branch-detail-section { padding: 50px 0; }
  .yg-branch-detail-panel, .yg-branch-arrival__copy { border-radius: 16px; padding: 24px 20px; }
  .yg-branch-detail-panel h2, .yg-branch-detail-heading h2, .yg-branch-arrival h2 { font-size: 30px; }
  .yg-branch-detail-content { font-size: 14px; line-height: 1.82; }
  .yg-branch-detail-panel dl > div, .yg-branch-arrival dl > div { gap: 10px; grid-template-columns: 72px minmax(0, 1fr); }
  .yg-branch-gallery__stage { border-radius: 16px; }
  .yg-branch-gallery__arrow { border-radius: 14px; font-size: 40px; height: 62px; width: 48px; }
  .yg-branch-gallery__arrow--prev { left: 12px; }
  .yg-branch-gallery__arrow--next { right: 12px; }
  .yg-branch-gallery__counter { left: 12px; top: 12px; }
  .yg-branch-gallery__thumb { flex-basis: 104px; height: 68px; }
  .yg-branch-arrival__image { border-radius: 16px; }
  .yg-branch-detail-map-section { padding: 50px 0 62px; }
  .yg-branch-detail-map-heading { align-items: start; grid-template-columns: 1fr; }
  .yg-branch-detail__navigation--map { grid-column: 1; grid-row: auto; width: fit-content; }
  .yg-branch-detail-map, .yg-branch-detail-map-embed { border-radius: 15px; }
  .yg-branch-detail-map__canvas, .yg-branch-detail-map__canvas .branch-map__canvas, .yg-branch-detail-map-embed iframe { height: 330px; min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  .yg-branch-gallery__slide, .yg-branch-detail__navigation { transition: none; }
}

/* National stores archive: place editable intro copy over the dimmed hero photo. */
body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image {
  align-items: center;
  background: #1f2838;
  display: flex;
  min-height: clamp(360px, 42vw, 560px) !important;
  overflow: hidden;
  padding: 0;
  position: relative;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image::before {
  background: rgba(14, 22, 34, .46);
  content: '';
  display: block;
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image::after {
  display: none;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero__media {
  height: 100%;
  inset: 0;
  margin: 0;
  position: absolute;
  width: 100%;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero__media img {
  display: block;
  filter: saturate(.94) brightness(.74);
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  width: 100%;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image .yg-branch-container {
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image .yg-branch-hero__copy {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image h1 {
  color: #fff;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image p {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.35;
  margin: 18px auto 0;
  max-width: 760px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  text-transform: uppercase;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-page-intro {
  display: none;
}

@media (max-width: 640px) {
  body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image {
    min-height: 330px !important;
  }

  body.post-type-archive-branch .yg-branch-page .yg-branch-hero__media img {
    object-position: 55% center;
  }

  body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image h1 {
    font-size: 36px;
  }

  body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image p {
    font-size: 12px;
    letter-spacing: .14em;
    line-height: 1.4;
    margin-top: 14px;
  }
}

/* Branch archive hero: a clean, editable photograph followed by the regional directory. */
.yg-branch-hero--with-image { background: #f6f4f2; min-height: 0; overflow: hidden; padding: 0; }
.yg-branch-hero--with-image::before, .yg-branch-hero--with-image::after { display: none; }
.yg-branch-hero__media { aspect-ratio: 16 / 5; margin: 0; overflow: hidden; }
.yg-branch-hero__media img { display: block; height: 100%; object-fit: cover; object-position: center 52%; width: 100%; }
.yg-branch-page-intro { background: #fff; padding: clamp(38px, 5vw, 62px) 0 clamp(20px, 3vw, 30px); }
.yg-branch-page-intro .yg-branch-hero__copy { margin: 0 auto; max-width: 780px; text-align: center; }
.yg-branch-page-intro h1 { color: #243149; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: clamp(34px, 4.2vw, 52px); font-weight: 900; letter-spacing: -.03em; line-height: 1.12; margin: 0; }
.yg-branch-page-intro p { color: #647088; font-size: 16px; line-height: 1.85; margin: 16px auto 0; max-width: 690px; }
.yg-branch-directory--regions { padding-top: clamp(28px, 4vw, 48px); }
@media (max-width: 640px) { .yg-branch-hero__media { aspect-ratio: 16 / 7; } .yg-branch-hero__media img { object-position: 56% center; } .yg-branch-page-intro { padding: 30px 0 16px; } .yg-branch-page-intro h1 { font-size: 31px; } .yg-branch-page-intro p { font-size: 14px; line-height: 1.75; margin-top: 12px; } .yg-branch-directory--regions { padding-top: 26px; } }

@media (max-width: 760px) {
  .yg-branch-map-layout > .yg-branch-selector { grid-column: 1; grid-row: 1; min-width: 0; }
  .yg-branch-map-layout > .yg-branch-map-panel { grid-column: 1; grid-row: 2; min-width: 0; }
  .yg-branch-selector { overflow: hidden; }
  .yg-branch-city-quick { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; width: 100%; }
  .yg-branch-city-quick button { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Team directory: page-level copy is editable on Pages > 师资团队; profiles are team_member posts. */
body.page-id-408,
body.post-type-archive-team_member {
  background: #fff9f7;
}

.yg-team-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.yg-team-intro {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 142px) 0 clamp(58px, 8vw, 112px);
  background:
    radial-gradient(circle at 86% 26%, rgba(255, 141, 140, .19) 0 7%, transparent 7.2%),
    radial-gradient(circle at 76% 70%, rgba(255, 186, 151, .2) 0 12%, transparent 12.2%),
    linear-gradient(116deg, #fff1ed 0%, #fffafa 59%, #fff4f0 100%);
}

.yg-team-intro::after {
  position: absolute;
  right: clamp(7%, 14vw, 18%);
  bottom: -58px;
  width: 174px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 111, 112, .28);
  border-radius: 50%;
  content: "";
}

.yg-team-intro h1 {
  position: relative;
  z-index: 1;
  max-width: 15ch;
  margin: 0;
  color: var(--yg-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.yg-team-intro p {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin: 26px 0 0;
  color: #5f6677;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.85;
}

.yg-team-directory {
  padding: clamp(60px, 8vw, 116px) 0 clamp(76px, 10vw, 144px);
}

.yg-team-directory__heading {
  max-width: 660px;
  margin-bottom: clamp(46px, 6vw, 72px);
}

.yg-team-directory__heading h2,
.yg-team-group__header h3,
.yg-team-empty h2 {
  margin: 0;
  color: var(--yg-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-weight: 900;
  letter-spacing: -.035em;
}

.yg-team-directory__heading h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
}

.yg-team-directory__heading p,
.yg-team-group__header p,
.yg-team-showcase__bio,
.yg-team-empty p {
  color: #697184;
  line-height: 1.82;
}

.yg-team-directory__heading p { margin: 16px 0 0; font-size: 16px; }
.yg-team-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(68px, 9vw, 124px); }
.yg-team-group { min-width: 0; scroll-margin-top: 32px; }
.yg-team-group__header { max-width: 720px; margin-bottom: 27px; }
.yg-team-group__header h3 { font-size: clamp(25px, 3vw, 39px); line-height: 1.18; }
.yg-team-group__header p { margin: 12px 0 0; font-size: 15px; }

.yg-team-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr);
  align-items: stretch;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 127, 124, .26);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 164, 147, .19) 0 10%, transparent 10.2%),
    linear-gradient(118deg, #fff 0%, #fff 58%, #fff6f4 100%);
  box-shadow: 0 24px 54px rgba(115, 68, 58, .09);
}

.yg-team-showcase__portrait {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: end center;
  overflow: hidden;
  background: linear-gradient(145deg, #ff9a91, #ffc19b);
  min-width: 0;
}

.yg-team-showcase__portrait::after {
  position: absolute;
  top: 10%;
  left: 12%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 50%;
  content: "";
}

.yg-team-showcase__portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center bottom;
  min-width: 0;
}

.yg-team-showcase__portrait > span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(56px, 7vw, 94px);
  font-weight: 900;
}

.yg-team-showcase__copy {
  align-self: center;
  max-width: 670px;
  padding: clamp(34px, 5vw, 68px);
}

.yg-team-showcase__role {
  width: fit-content;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 102, 108, .1);
  color: #dd545c;
  font-size: 13px;
  font-weight: 800;
}

.yg-team-showcase h4 {
  margin: 0;
  color: var(--yg-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(35px, 4vw, 55px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.yg-team-showcase__bio { max-width: 42ch; margin: 18px 0 0; font-size: 16px; }
.yg-team-showcase__link { display: inline-flex; margin-top: 28px; color: #e6535c; font-size: 15px; font-weight: 850; text-decoration: none; }
.yg-team-showcase__link::after { margin-left: 8px; content: '→'; transition: transform .2s ease; }
.yg-team-showcase__link:hover::after, .yg-team-showcase__link:focus-visible::after { transform: translateX(4px); }
.yg-team-showcase__link:focus-visible, .yg-team-selector__item:focus-visible { outline: 3px solid rgba(232, 86, 93, .34); outline-offset: 4px; }

.yg-team-selector {
  display: grid;
  grid-auto-columns: minmax(190px, 230px);
  grid-auto-flow: column;
  gap: 12px;
  margin-top: 18px;
  padding: 4px 2px 15px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(230, 83, 92, .5) rgba(255, 218, 214, .75);
}

.yg-team-selector__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(255, 143, 136, .26);
  border-radius: 17px;
  background: rgba(255, 255, 255, .78);
  color: var(--yg-ink);
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.yg-team-selector__item:hover { transform: translateY(-2px); border-color: rgba(236, 87, 95, .62); }
.yg-team-selector__item.is-active { border-color: #f2686d; background: #fff1ef; box-shadow: 0 13px 26px rgba(236, 87, 95, .12); }
.yg-team-selector__avatar { display: grid; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg, #ff807e, #ffad88); color: #fff; }
.yg-team-selector__avatar img { width: 100%; height: 100%; object-fit: cover; }
.yg-team-selector__avatar b { font-size: 17px; }
.yg-team-selector__item > span:last-child { min-width: 0; }
.yg-team-selector__item strong, .yg-team-selector__item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yg-team-selector__item strong { font-size: 15px; line-height: 1.35; }
.yg-team-selector__item small { margin-top: 3px; color: #737b8d; font-size: 12px; }
.yg-team-empty { max-width: 600px; padding: 38px; border: 1px solid rgba(255, 127, 124, .26); border-radius: 24px; background: #fff; }
.yg-team-empty h2 { font-size: 28px; }.yg-team-empty p { margin: 10px 0 0; }

@media (max-width: 760px) {
  .yg-team-container { width: min(100% - 32px, 1180px); }
  .yg-team-intro { padding: 68px 0 62px; }
  .yg-team-intro h1 { max-width: 12ch; font-size: clamp(38px, 11vw, 52px); }
  .yg-team-intro p { margin-top: 20px; font-size: 15px; }
  .yg-team-intro::after { right: -42px; bottom: -68px; width: 152px; }
  .yg-team-directory { padding: 64px 0 94px; }
  .yg-team-directory__heading { margin-bottom: 47px; }
  .yg-team-directory__heading h2 { font-size: 34px; }
  .yg-team-groups { gap: 72px; }
  .yg-team-showcase { grid-template-columns: 1fr; min-height: 0; border-radius: 23px; }
  .yg-team-showcase__portrait { min-height: 260px; max-height: 320px; }
  .yg-team-showcase__portrait img { max-height: 320px; }
  .yg-team-showcase__copy { padding: 28px 23px 30px; }
  .yg-team-showcase h4 { font-size: 39px; }
  .yg-team-showcase__bio { margin-top: 13px; font-size: 15px; }
  .yg-team-showcase__link { margin-top: 20px; }
  .yg-team-selector { grid-auto-columns: minmax(188px, 78vw); margin-top: 14px; }

  body.page-id-408 .floating-sidebar,
  body.post-type-archive-team_member .floating-sidebar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .yg-team-showcase__link::after,
  .yg-team-selector__item { transition: none; }
}

/* PDF-aligned teacher selector: one quiet profile stage, no repeated category cards. */
.yg-team-pdf-page { background: #fff9f7; }
.yg-team-pdf { padding: clamp(76px, 10vw, 136px) 0 clamp(84px, 10vw, 142px); background: radial-gradient(circle at 11% 18%, rgba(255, 156, 147, .14), transparent 24%), #fff9f7; }
.yg-team-pdf__container { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.yg-team-pdf__heading { max-width: 770px; margin: 0 auto clamp(34px, 4.2vw, 54px); text-align: center; }
.yg-team-pdf__heading > span { display: block; margin: 0 0 13px; color: #ef666c; font-size: 13px; font-weight: 800; letter-spacing: .22em; }
.yg-team-pdf__heading h1, .yg-team-pdf__profile h2, .yg-team-pdf__empty h2 { margin: 0; color: var(--yg-ink); font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-weight: 900; letter-spacing: -.04em; }
.yg-team-pdf__heading h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.1; }
.yg-team-pdf__heading p { max-width: 54ch; margin: 18px auto 0; color: #707789; font-size: 15px; line-height: 1.86; }
.yg-team-pdf__stage { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; min-height: 260px; padding: clamp(28px, 4vw, 46px); border: 1px solid rgba(228, 114, 110, .22); border-radius: 30px; background: #fff; box-shadow: 0 20px 54px rgba(108, 66, 58, .075); }
.yg-team-pdf__avatar { display: grid; width: 170px; height: 170px; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg, #f1747b, #f4a59d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 14px 30px rgba(238, 107, 112, .17); }
.yg-team-pdf__avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.yg-team-pdf__avatar > span { color: #fff; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: 52px; font-weight: 900; }
.yg-team-pdf__profile { min-width: 0; }
.yg-team-pdf__role { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #fff0ef; color: #e55f67; font-size: 13px; font-weight: 800; }
.yg-team-pdf__profile h2 { font-size: clamp(30px, 3.4vw, 45px); line-height: 1.12; }
.yg-team-pdf__bio { max-width: 58ch; margin: 15px 0 0; color: #6f7482; font-size: 15px; line-height: 1.82; }
.yg-team-pdf__link { display: inline-flex; gap: 9px; align-items: center; margin-top: 22px; color: #e3535c; font-size: 14px; font-weight: 850; text-decoration: none; }
.yg-team-pdf__link span { transition: transform .2s ease; }.yg-team-pdf__link:hover span, .yg-team-pdf__link:focus-visible span { transform: translateX(4px); }.yg-team-pdf__link:focus-visible, .yg-team-pdf__person:focus-visible { outline: 3px solid rgba(231, 83, 92, .32); outline-offset: 4px; }
.yg-team-pdf__hint { margin: 20px 0 12px; color: #8a8e9a; font-size: 13px; text-align: center; }
.yg-team-pdf__selector { display: grid; grid-auto-columns: minmax(174px, 205px); grid-auto-flow: column; gap: 12px; padding: 5px 4px 17px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-color: rgba(229, 91, 98, .5) rgba(255, 226, 222, .78); }
.yg-team-pdf__person { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 76px; padding: 11px; border: 1px solid rgba(237, 125, 121, .21); border-radius: 17px; background: rgba(255, 255, 255, .72); color: var(--yg-ink); cursor: pointer; scroll-snap-align: start; text-align: left; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.yg-team-pdf__person:hover { transform: translateY(-2px); border-color: rgba(232, 88, 95, .54); }.yg-team-pdf__person.is-active { border-color: #f1696e; background: #fff4f2; box-shadow: 0 12px 24px rgba(230, 84, 92, .12); }
.yg-team-pdf__person-avatar { display: grid; width: 52px; height: 52px; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg, #f27a7e, #f7af9d); color: #fff; }.yg-team-pdf__person-avatar img { width: 100%; height: 100%; object-fit: cover; }.yg-team-pdf__person-avatar b { font-size: 18px; }.yg-team-pdf__person > span:last-child { min-width: 0; }.yg-team-pdf__person strong, .yg-team-pdf__person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.yg-team-pdf__person strong { font-size: 14px; line-height: 1.35; }.yg-team-pdf__person small { margin-top: 3px; color: #777d8b; font-size: 12px; }
.yg-team-pdf__empty { max-width: 630px; margin-inline: auto; padding: 40px; border: 1px solid rgba(228, 114, 110, .22); border-radius: 26px; background: #fff; text-align: center; }.yg-team-pdf__empty h2 { font-size: 28px; }.yg-team-pdf__empty p { margin: 11px 0 0; color: #727887; line-height: 1.8; }
@media (max-width: 720px) { .yg-team-pdf { padding: 62px 0 88px; }.yg-team-pdf__container { width: min(100% - 32px, 1100px); }.yg-team-pdf__heading { margin-bottom: 32px; }.yg-team-pdf__heading h1 { font-size: 39px; }.yg-team-pdf__heading p { font-size: 14px; }.yg-team-pdf__stage { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding: 29px 22px; border-radius: 24px; text-align: center; }.yg-team-pdf__avatar { width: 138px; height: 138px; margin-inline: auto; }.yg-team-pdf__avatar > span { font-size: 42px; }.yg-team-pdf__role { margin-bottom: 10px; }.yg-team-pdf__profile h2 { font-size: 36px; }.yg-team-pdf__bio { margin: 13px auto 0; font-size: 14px; }.yg-team-pdf__link { margin-top: 18px; }.yg-team-pdf__hint { margin: 18px 8px 10px; line-height: 1.65; }.yg-team-pdf__selector { grid-auto-columns: minmax(170px, 71vw); }.yg-team-pdf__person { min-height: 72px; } }

/* Teacher catalogue: taxonomy entrances, profile cards, and an accessible detail dialog. */
.yg-team-catalog-page { background: #f6f9fd; }
.yg-team-catalog { padding: clamp(64px, 8vw, 112px) 0 clamp(86px, 9vw, 136px); background: linear-gradient(180deg, #fff 0, #f6f9fd 38%, #fff 100%); }
.yg-team-catalog__container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.yg-team-catalog__heading { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 78px); text-align: center; }
.yg-team-catalog__heading h1, .yg-team-catalog__section-heading h2, .yg-team-group__heading h2, .yg-team-catalog__empty h2, .yg-team-modal__body h2 { margin: 0; color: #183e72; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-weight: 900; letter-spacing: -.035em; }
.yg-team-catalog__heading h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.13; }
.yg-team-catalog__heading p { margin: 18px auto 0; color: #67758b; font-size: 15px; line-height: 1.86; }
.yg-team-catalog__section-heading { max-width: 740px; margin: 0 auto 30px; text-align: center; }
.yg-team-catalog__section-heading h2, .yg-team-group__heading h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.18; }
.yg-team-catalog__section-heading p, .yg-team-group__heading p { margin: 12px auto 0; color: #79879b; font-size: 14px; line-height: 1.75; }
.yg-team-catalog__category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.yg-team-category-card { position: relative; display: block; min-height: 250px; overflow: hidden; border-radius: 6px; background: #dce8f4; color: #183e72; isolation: isolate; text-decoration: none; box-shadow: 0 14px 30px rgba(25, 65, 112, .12); }
.yg-team-category-card::after { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 31%, rgba(17, 38, 70, .17) 58%, rgba(16, 36, 67, .65) 100%); content: ''; pointer-events: none; }
.yg-team-category-card__media, .yg-team-category-card__media img { display: block; width: 100%; height: 100%; }
.yg-team-category-card__media { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #7ea6ce, #d9e6f3); }
.yg-team-category-card__media img { object-fit: cover; transition: transform .45s cubic-bezier(.2,.75,.2,1); }
.yg-team-category-card__media > span { display: grid; width: 100%; height: 100%; place-items: center; color: #fff; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: 58px; font-weight: 900; }
.yg-team-category-card__caption { position: absolute; right: clamp(18px, 4vw, 30px); bottom: 0; left: clamp(18px, 4vw, 30px); display: grid; gap: 5px; padding: 19px 20px 18px; border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, .95); text-align: center; transition: background-color .2s ease, transform .2s ease; }
.yg-team-category-card__caption strong { color: #244b82; font-size: clamp(18px, 2vw, 23px); line-height: 1.25; }.yg-team-category-card__caption small { color: #73839a; font-size: 13px; }
.yg-team-category-card:hover img, .yg-team-category-card:focus-visible img { transform: scale(1.035); }.yg-team-category-card:hover .yg-team-category-card__caption { background: #fff; transform: translateY(-2px); }.yg-team-category-card:focus-visible, .yg-team-member-card:focus-visible, .yg-team-modal__close:focus-visible, .yg-team-modal__link:focus-visible { outline: 3px solid rgba(52, 115, 185, .42); outline-offset: 4px; }
.yg-team-catalog__groups { margin-top: clamp(72px, 9vw, 124px); }
.yg-team-group { scroll-margin-top: 112px; padding-top: clamp(66px, 8vw, 100px); border-top: 1px solid #dce5ef; }
.yg-team-group + .yg-team-group { margin-top: clamp(66px, 8vw, 104px); }
.yg-team-group__heading { max-width: 770px; margin: 0 auto 34px; text-align: center; }
.yg-team-group__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.yg-team-member-card { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: transparent; color: #183e72; cursor: pointer; text-align: center; }
.yg-team-member-card__portrait { display: grid; aspect-ratio: 4 / 4.35; place-items: center; overflow: hidden; border-radius: 8px 8px 0 0; background: linear-gradient(150deg, #d9e5f1, #f8fbff); box-shadow: inset 0 0 0 1px rgba(94, 132, 177, .1); }
.yg-team-member-card__portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform .28s ease; }
.yg-team-member-card__portrait b { display: grid; width: 70%; aspect-ratio: 1; place-items: center; border-radius: 50%; background: #5d8fc6; color: #fff; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: clamp(29px, 4vw, 46px); font-weight: 900; }
.yg-team-member-card__caption { display: grid; gap: 4px; min-height: 61px; margin: -15px 12px 0; padding: 13px 9px 11px; border-radius: 3px; background: rgba(255,255,255,.94); box-shadow: 0 9px 17px rgba(32, 64, 108, .08); transform: translateZ(0); transition: background-color .2s ease, transform .2s ease; }
.yg-team-member-card__caption strong { overflow: hidden; color: #1f477f; font-size: 16px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }.yg-team-member-card__caption small { overflow: hidden; color: #5c82b4; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.yg-team-member-card:hover .yg-team-member-card__portrait img { transform: scale(1.025); }.yg-team-member-card:hover .yg-team-member-card__caption { background: #fff; transform: translateY(-3px); }
.yg-team-catalog__empty { max-width: 600px; margin-inline: auto; padding: 48px; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; text-align: center; }.yg-team-catalog__empty h2 { font-size: 30px; }.yg-team-catalog__empty p { margin: 12px 0 0; color: #718096; line-height: 1.8; }
.yg-team-modal[hidden] { display: none; }.yg-team-modal { position: fixed; z-index: 100020; inset: 0; display: grid; place-items: center; padding: 28px; }.yg-team-modal__backdrop { position: absolute; inset: 0; background: rgba(14, 30, 51, .72); backdrop-filter: blur(5px); }
.yg-team-modal__dialog { position: relative; display: grid; grid-template-columns: minmax(166px, 208px) minmax(0, 1fr); gap: 32px; width: min(790px, 100%); max-height: min(680px, calc(100dvh - 56px)); padding: clamp(30px, 5vw, 48px); overflow: auto; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 30px 74px rgba(3, 15, 32, .3); outline: 0; }
.yg-team-modal__close { position: absolute; top: 15px; right: 15px; display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #7b8797; cursor: pointer; font-family: inherit; font-size: 27px; line-height: 1; }.yg-team-modal__close:hover { background: #eff5fa; color: #244b82; }
.yg-team-modal__portrait { display: grid; align-self: start; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 50%; background: linear-gradient(145deg, #d8e5f1, #f9fcff); }.yg-team-modal__portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }.yg-team-modal__portrait span { display: grid; width: 100%; height: 100%; place-items: center; background: #5d8fc6; color: #fff; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: 48px; font-weight: 900; }
.yg-team-modal__body { min-width: 0; padding-right: 6px; }.yg-team-modal__body > p:first-child { display: inline-block; margin: 0 0 10px; padding: 5px 10px; border-radius: 999px; background: #edf4fb; color: #3d70aa; font-size: 13px; font-weight: 800; }.yg-team-modal__body h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.15; }.yg-team-modal__summary { margin: 15px 0 0; color: #3c5c7f; font-size: 14px; font-weight: 700; line-height: 1.7; }.yg-team-modal__detail { margin: 15px 0 0; color: #68778a; font-size: 14px; line-height: 1.85; white-space: pre-line; }.yg-team-modal__link { display: inline-flex; gap: 9px; margin-top: 21px; color: #2f6fb3; font-size: 14px; font-weight: 850; text-decoration: none; }.yg-team-modal__link span { transition: transform .18s ease; }.yg-team-modal__link:hover span { transform: translateX(4px); }
body.yg-team-modal-open { overflow: hidden; }
@media (max-width: 760px) { .yg-team-catalog { padding: 58px 0 86px; }.yg-team-catalog__container { width: min(100% - 32px, 1160px); }.yg-team-catalog__heading { margin-bottom: 43px; }.yg-team-catalog__heading h1 { font-size: 39px; }.yg-team-catalog__heading p { font-size: 14px; }.yg-team-catalog__category-grid { grid-template-columns: 1fr; gap: 16px; }.yg-team-category-card { min-height: 208px; }.yg-team-category-card__caption { right: 16px; left: 16px; padding: 15px 16px; }.yg-team-catalog__groups { margin-top: 66px; }.yg-team-group { padding-top: 58px; }.yg-team-group + .yg-team-group { margin-top: 64px; }.yg-team-group__heading { margin-bottom: 25px; }.yg-team-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }.yg-team-member-card__caption { margin-inline: 8px; }.yg-team-member-card__caption strong { font-size: 15px; }.yg-team-modal { align-items: end; padding: 0; }.yg-team-modal__dialog { grid-template-columns: 104px minmax(0, 1fr); gap: 19px; width: 100%; max-height: min(700px, calc(100dvh - 22px)); padding: 34px 24px 30px; border-radius: 18px 18px 0 0; }.yg-team-modal__portrait { align-self: start; }.yg-team-modal__body h2 { font-size: 28px; }.yg-team-modal__summary, .yg-team-modal__detail { font-size: 13px; }.yg-team-modal__detail { grid-column: 1 / -1; }.yg-team-modal__close { top: 10px; right: 10px; } }
@media (prefers-reduced-motion: reduce) { .yg-team-category-card__media img, .yg-team-category-card__caption, .yg-team-member-card__portrait img, .yg-team-member-card__caption, .yg-team-modal__link span { transition: none; } }

/* Reference-directed team experience: four compact direction cards, a four-person rail, then a focused biography dialog. */
.yg-direction-page { background: #fff; }
.yg-direction-directory { min-height: 560px; padding: clamp(56px, 7vw, 94px) 0 clamp(74px, 9vw, 120px); background: #fff; }
.yg-direction-directory__container { width: min(660px, calc(100% - 36px)); margin-inline: auto; }
.yg-direction-directory__overview h1 { margin: 0 0 28px; color: #153d74; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: clamp(24px, 2.4vw, 31px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-align: center; }
.yg-direction-directory__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.yg-direction-entry { position: relative; display: block; min-width: 0; min-height: 237px; padding: 0; overflow: hidden; border: 1px solid #ebedf0; border-radius: 5px; background: #f5f7fa; color: #183b6d; cursor: pointer; text-align: center; box-shadow: 0 1px 2px rgba(28, 56, 94, .05); }
.yg-direction-entry__media, .yg-direction-entry__media img { display: block; width: 100%; height: 100%; }.yg-direction-entry__media { position: absolute; inset: 0; overflow: hidden; background: #dfe8f1; }.yg-direction-entry__media img { object-fit: cover; object-position: center; transition: transform .24s ease; }.yg-direction-entry__media > span { display: grid; width: 100%; height: 100%; place-items: center; color: #58708e; font-size: 14px; }
.yg-direction-entry::after { position: absolute; right: 6px; bottom: 20px; left: 6px; height: 45px; border-radius: 3px 3px 0 0; background: rgba(255,255,255,.96); content: ''; }.yg-direction-entry__label { position: absolute; right: 10px; bottom: 0; left: 10px; z-index: 1; display: grid; height: 46px; place-items: center; overflow: hidden; color: #1a3764; font-size: 14px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.yg-direction-entry:hover img, .yg-direction-entry:focus-visible img { transform: scale(1.025); }.yg-direction-entry:focus-visible, .yg-direction-detail__back:focus-visible, .yg-direction-person:focus-visible, .yg-direction-modal__close:focus-visible { outline: 3px solid rgba(39, 96, 163, .35); outline-offset: 4px; }
.yg-direction-detail { position: relative; padding-top: 8px; }.yg-direction-detail__back { display: inline-flex; align-items: center; min-height: 32px; padding: 0; border: 0; background: transparent; color: #376da8; cursor: pointer; font-size: 13px; font-weight: 700; }.yg-direction-detail__back::before { margin-right: 7px; content: '‹'; font-size: 22px; line-height: 0; }
.yg-direction-detail__heading { max-width: 600px; margin: 15px auto 25px; text-align: center; }.yg-direction-detail__heading h2 { margin: 0; color: #183d75; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; }.yg-direction-detail__heading p { margin: 12px auto 0; color: #6f7f94; font-size: 12px; line-height: 1.7; }
.yg-direction-people { display: grid; grid-auto-columns: calc((100% - 54px) / 4); grid-auto-flow: column; justify-content: center; gap: 18px; padding: 4px 2px 13px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #bdcce0 transparent; scroll-snap-type: x mandatory; }.yg-direction-people::-webkit-scrollbar { height: 6px; }.yg-direction-people::-webkit-scrollbar-thumb { border-radius: 999px; background: #c5d3e5; }
.yg-direction-person { display: block; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 12px 12px 3px 3px; background: transparent; color: #173c73; cursor: pointer; scroll-snap-align: start; text-align: center; }.yg-direction-person__portrait { display: grid; aspect-ratio: 1 / 1.15; place-items: center; overflow: hidden; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, #e8eef4 0%, #f7f9fb 100%); }.yg-direction-person__portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform .2s ease; }.yg-direction-person__portrait b { display: grid; width: 62%; aspect-ratio: 1; place-items: center; border-radius: 50%; background: #9eb5d1; color: #fff; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: 30px; font-weight: 800; }.yg-direction-person:hover img { transform: scale(1.025); }
.yg-direction-person__caption { display: grid; gap: 3px; min-height: 45px; margin: -14px 8px 0; padding: 10px 5px 7px; border-radius: 3px; background: rgba(255,255,255,.96); box-shadow: 0 8px 14px rgba(29,61,105,.08); }.yg-direction-person__caption strong, .yg-direction-person__caption small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.yg-direction-person__caption strong { color: #254c84; font-size: 13px; line-height: 1.2; }.yg-direction-person__caption small { color: #5d86bd; font-size: 10px; line-height: 1.25; }.yg-direction-detail__empty { margin: 0; padding: 42px 20px; border: 1px dashed #c7d2e0; color: #718094; font-size: 14px; text-align: center; }
.yg-direction-directory__empty { padding: 70px 25px; border: 1px dashed #c9d4e2; color: #6d7c90; text-align: center; }.yg-direction-directory__empty h1 { margin: 0; color: #183d75; font-size: 28px; }.yg-direction-directory__empty p { margin: 12px 0 0; }
.yg-direction-modal[hidden] { display: none; }.yg-direction-modal { position: fixed; z-index: 100020; inset: 0; display: grid; place-items: center; padding: 22px; }.yg-direction-modal__backdrop { position: absolute; inset: 0; background: rgba(16, 30, 50, .72); }.yg-direction-modal__dialog { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 20px; width: min(670px, 100%); max-height: min(720px, calc(100dvh - 44px)); padding: 31px 38px 32px 31px; overflow: auto; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 24px 68px rgba(3, 14, 29, .3); outline: 0; }.yg-direction-modal__close { position: absolute; top: 12px; right: 12px; display: grid; width: 31px; height: 31px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #8a97a5; cursor: pointer; font-family: inherit; font-size: 25px; line-height: 1; }.yg-direction-modal__close:hover { background: #eef4f9; color: #244c84; }
.yg-direction-modal__portrait { display: grid; align-self: start; width: 84px; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 50%; background: #e5edf5; }.yg-direction-modal__portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }.yg-direction-modal__portrait span { display: grid; width: 100%; height: 100%; place-items: center; background: #9ab3d0; color: #fff; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: 29px; font-weight: 800; }.yg-direction-modal__body { min-width: 0; }.yg-direction-modal__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; padding-right: 22px; }.yg-direction-modal__title h2 { margin: 0; color: #233e65; font-size: 18px; font-weight: 800; line-height: 1.4; }.yg-direction-modal__title span { color: #526882; font-size: 12px; }.yg-direction-modal__description { margin: 14px 0 0; color: #526277; font-size: 12px; line-height: 1.85; white-space: pre-line; }
body.yg-direction-modal-open { overflow: hidden; }
@media (max-width: 700px) { .yg-direction-directory { min-height: 520px; padding: 48px 0 70px; }.yg-direction-directory__container { width: min(100% - 32px, 660px); }.yg-direction-directory__overview h1 { margin-bottom: 23px; font-size: 25px; }.yg-direction-directory__grid { gap: 14px; }.yg-direction-entry { min-height: 151px; }.yg-direction-entry::after { right: 5px; bottom: 15px; left: 5px; height: 39px; }.yg-direction-entry__label { right: 8px; bottom: 0; left: 8px; height: 40px; font-size: 12px; }.yg-direction-detail__heading { margin: 11px auto 20px; }.yg-direction-detail__heading h2 { font-size: 24px; }.yg-direction-people { grid-auto-columns: minmax(130px, 42vw); gap: 13px; }.yg-direction-person__caption { min-height: 43px; margin-inline: 7px; }.yg-direction-modal { align-items: end; padding: 0; }.yg-direction-modal__dialog { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; width: 100%; max-height: min(690px, calc(100dvh - 18px)); padding: 30px 24px 28px; border-radius: 15px 15px 0 0; }.yg-direction-modal__portrait { width: 64px; }.yg-direction-modal__title { gap: 8px; }.yg-direction-modal__title h2 { font-size: 17px; }.yg-direction-modal__description { margin-top: 12px; font-size: 12px; line-height: 1.78; } }
@media (prefers-reduced-motion: reduce) { .yg-direction-entry__media img, .yg-direction-person__portrait img { transition: none; } }

/* Hero carousel refinement: keep the three-photo language without covering the main teaching photo. */
body.home .yg-ref-hero {
  padding-bottom: 42px;
}

body.home .yg-ref-hero__grid {
  gap: clamp(68px, 8vw, 116px);
  grid-template-columns: minmax(0, .94fr) minmax(440px, .9fr);
}

body.home .yg-ref-hero h1 {
  font-family: 'Eryu Wangxingyuan', 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(42px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  max-width: 590px;
}

body.home .yg-ref-hero__copy p {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 2;
  max-width: 590px;
}

body.home .yg-ref-hero__media {
  border-radius: 34px;
  height: 410px;
  overflow: hidden;
}

body.home .yg-ref-hero__main {
  left: clamp(34px, 4.8vw, 58px);
  width: 286px;
  height: 286px;
}

body.home .yg-ref-hero__bubble {
  border-width: 5px;
}

body.home .yg-ref-hero__bubble--top,
body.home .yg-ref-hero__bubble--bottom {
  right: clamp(18px, 2.8vw, 24px);
}

body.home .yg-ref-hero__bubble--top {
  top: 82px;
  width: 88px;
  height: 88px;
}

body.home .yg-ref-hero__bubble--bottom {
  bottom: 82px;
  width: 88px;
  height: 88px;
}

body.home .yg-ref-hero__dots {
  bottom: 19px;
}

@media (max-width: 1180px) {
  body.home .yg-ref-hero__grid {
    gap: clamp(44px, 5.5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr);
  }

  body.home .yg-ref-hero__main {
    left: 30px;
    width: 248px;
    height: 248px;
  }

  body.home .yg-ref-hero__bubble--top,
  body.home .yg-ref-hero__bubble--bottom {
    right: 22px;
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 980px) {
  body.home .yg-ref-hero__grid {
    grid-template-columns: 1fr;
  }

  body.home .yg-ref-hero__media {
    height: 350px;
  }

  body.home .yg-ref-hero__main {
    left: clamp(38px, 9vw, 72px);
    width: 258px;
    height: 258px;
  }

  body.home .yg-ref-hero__bubble--top,
  body.home .yg-ref-hero__bubble--bottom {
    right: clamp(42px, 16vw, 128px);
  }

  body.home .yg-ref-hero__bubble--top {
    top: 64px;
  }

  body.home .yg-ref-hero__bubble--bottom {
    bottom: 64px;
  }
}

@media (max-width: 720px) {
  body.home .yg-ref-hero h1 {
    font-size: clamp(32px, 9vw, 40px);
    font-weight: 800;
    line-height: 1.16;
  }

  body.home .yg-ref-hero__media {
    height: 270px;
  }

  body.home .yg-ref-hero__main {
    left: 22px;
    width: 204px;
    height: 204px;
  }

  body.home .yg-ref-hero__bubble {
    border-width: 4px;
  }

  body.home .yg-ref-hero__bubble--top,
  body.home .yg-ref-hero__bubble--bottom {
    right: 20px;
  }

  body.home .yg-ref-hero__bubble--top {
    top: 52px;
    width: 66px;
    height: 66px;
  }

  body.home .yg-ref-hero__bubble--bottom {
    bottom: 52px;
    width: 72px;
    height: 72px;
  }
}

/* Team archive rebuild: course-page hero, full-width level tabs, and image-led teacher cards. */
.yg-team-page {
  --yg-team-ink: #172238;
  --yg-team-coral: #ff5f66;
  --yg-team-coral-deep: #e24e57;
  --yg-team-paper: #fff8f5;
  background: var(--yg-team-paper);
  color: var(--yg-team-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
}

.yg-team-hero {
  position: relative;
  min-height: var(--yg-page-hero-height, clamp(370px, 32vw, 460px));
  background:
    linear-gradient(90deg, rgba(19, 28, 39, .7) 0%, rgba(19, 28, 39, .54) 38%, rgba(19, 28, 39, .26) 68%, rgba(19, 28, 39, .18) 100%),
    var(--yg-team-hero-image, #d77b73) center 48% / cover no-repeat;
  isolation: isolate;
}

.yg-team-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(11, 19, 30, .16), transparent 52%);
  content: "";
}

.yg-team-hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  text-align: center;
}

.yg-team-hero__copy {
  max-width: 720px;
}

.yg-team-hero .yg-team-hero__eyebrow {
  margin: 13px 0 0;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.2;
  text-shadow: none;
}

.yg-team-hero h1 {
  margin: 0;
  color: #fff !important;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  text-shadow: 0 2px 20px rgba(10, 16, 27, .34);
}

.yg-team-hero p {
  max-width: 38em;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, .92) !important;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.85;
  text-shadow: 0 1px 14px rgba(10, 16, 27, .28);
}

.yg-team-category-nav {
  position: relative;
  z-index: 20;
  background: rgba(255, 253, 252, .96);
  border-bottom: 1px solid rgba(255, 184, 174, .46);
  box-shadow: 0 16px 32px rgba(105, 65, 58, .07);
}

.yg-team-category-nav__inner {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.yg-team-category-nav__panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  align-items: stretch;
  min-height: 58px;
}

.yg-team-category-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: #3b4355;
  cursor: pointer;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.yg-team-category-nav button:hover,
.yg-team-category-nav button:focus-visible,
.yg-team-category-nav button[aria-selected="true"] {
  background: #fff7f4;
  border-color: var(--yg-team-coral);
  color: var(--yg-team-coral-deep);
  outline: none;
}

.yg-team-listing {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 124px) 0 clamp(86px, 10vw, 138px);
  background:
    radial-gradient(circle at 7% 18%, rgba(255, 238, 233, .86), transparent 19%),
    linear-gradient(180deg, #fff8f5 0%, #fffdfb 58%, #fff8f5 100%);
}

.yg-team-listing::before {
  position: absolute;
  right: -42px;
  top: 86px;
  width: 170px;
  height: 136px;
  background: url('/wp-content/uploads/2026/08/儿语工坊气泡符号_RBG_1-7.png') center / contain no-repeat;
  content: "";
  opacity: .08;
  pointer-events: none;
}

.yg-team-listing__container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.yg-team-panel[hidden] {
  display: none;
}

.yg-team-panel__heading {
  max-width: 780px;
  margin: 0 auto clamp(36px, 4.8vw, 56px);
  text-align: center;
}

.yg-team-panel__heading p {
  margin: 0 0 12px;
  color: var(--yg-team-coral);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .15em;
}

.yg-team-panel__heading h2 {
  margin: 0;
  color: var(--yg-team-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.yg-team-panel__heading span {
  display: block;
  max-width: 56em;
  margin: 18px auto 0;
  color: #687284;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.yg-team-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.yg-team-card-grid:has(.yg-team-person-card:only-child) {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}

.yg-team-card-grid:has(.yg-team-person-card:first-child:nth-last-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
}

.yg-team-person-card {
  display: flex;
  min-height: 470px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 111, 112, .24);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  text-align: left;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.yg-team-person-card:hover,
.yg-team-person-card:focus-visible {
  border-color: rgba(255, 95, 102, .56);
  box-shadow: 0 20px 42px rgba(112, 62, 54, .1);
  color: inherit;
  outline: none;
  transform: translateY(-3px);
}

.yg-team-person-card__media {
  display: block;
  aspect-ratio: 1.34 / 1;
  overflow: hidden;
  background: #ffe5e1;
}

.yg-team-person-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .24s ease;
}

.yg-team-person-card__placeholder,
.yg-team-profile-modal__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, .42) 0 20%, transparent 21%),
    linear-gradient(135deg, #ff7c78 0%, #ffa66f 100%);
}

.yg-team-person-card__placeholder b,
.yg-team-profile-modal__placeholder b {
  display: grid;
  width: clamp(96px, 42%, 150px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 32%;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.yg-team-person-card:hover .yg-team-person-card__media img,
.yg-team-person-card:focus-visible .yg-team-person-card__media img {
  transform: scale(1.025);
}

.yg-team-person-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 22px 22px;
}

.yg-team-person-card__body small {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff0ef;
  color: var(--yg-team-coral-deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.yg-team-person-card__body strong {
  display: block;
  margin: 0;
  color: var(--yg-team-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.yg-team-person-card__body span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 16px 0 0;
  overflow: hidden;
  color: #687284;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.72;
}

.yg-team-person-card__body em {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
  color: var(--yg-team-coral-deep);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.yg-team-person-card__body em::after {
  content: ">";
  transition: transform .18s ease;
}

.yg-team-person-card:hover em::after,
.yg-team-person-card:focus-visible em::after {
  transform: translateX(4px);
}

.yg-team-panel__empty {
  margin: 0;
  padding: 36px;
  border: 1px dashed rgba(255, 111, 112, .36);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  color: #687284;
  text-align: center;
}

.yg-team-profile-modal[hidden] {
  display: none;
}

.yg-team-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: grid;
  place-items: center;
  padding: 28px;
}

.yg-team-profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 25, 39, .72);
  backdrop-filter: blur(5px);
}

.yg-team-profile-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 34px;
  width: min(820px, 100%);
  max-height: min(720px, calc(100dvh - 56px));
  overflow: auto;
  padding: clamp(30px, 4vw, 46px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 78px rgba(0, 0, 0, .28);
  outline: 0;
}

.yg-team-profile-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff4f2;
  color: var(--yg-team-coral-deep);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.yg-team-profile-modal__close:hover,
.yg-team-profile-modal__close:focus-visible {
  background: var(--yg-team-coral);
  color: #fff;
  outline: none;
}

.yg-team-profile-modal__media {
  overflow: hidden;
  align-self: start;
  aspect-ratio: 1 / 1.16;
  border-radius: 18px;
  background: #ffe5e1;
}

.yg-team-profile-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.yg-team-profile-modal__body {
  min-width: 0;
  padding-right: 8px;
}

.yg-team-profile-modal__body p {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff0ef;
  color: var(--yg-team-coral-deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.yg-team-profile-modal__body h2 {
  margin: 0;
  color: var(--yg-team-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.yg-team-profile-modal__body div {
  margin-top: 18px;
  color: #5f6878;
  font-size: 15px;
  line-height: 1.88;
  white-space: pre-line;
}

body.yg-team-modal-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .yg-team-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .yg-team-hero {
    min-height: var(--yg-page-hero-height-mobile, 330px);
    background-position: 58% center;
  }

  .yg-team-hero__inner,
  .yg-team-listing__container {
    width: min(100% - 32px, 620px);
  }

  .yg-team-hero h1 {
    font-size: 42px;
  }

  .yg-team-hero p {
    font-size: 15px;
  }

  .yg-team-category-nav__inner {
    width: calc(100% - 30px);
  }

  .yg-team-category-nav__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yg-team-category-nav button {
    min-height: 48px;
    font-size: 14px;
  }

  .yg-team-listing {
    padding: 62px 0 92px;
  }

  .yg-team-panel__heading p {
    font-size: 13px;
  }

  .yg-team-panel__heading h2 {
    font-size: 40px;
  }

  .yg-team-panel__heading span {
    font-size: 14px;
  }

  .yg-team-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .yg-team-person-card {
    min-height: 0;
  }

  .yg-team-person-card__media {
    aspect-ratio: 1.52 / 1;
  }

  .yg-team-person-card__body {
    padding: 22px 19px 20px;
  }

  .yg-team-person-card__body strong {
    font-size: 25px;
  }

  .yg-team-profile-modal {
    align-items: end;
    padding: 0;
  }

  .yg-team-profile-modal__dialog {
    grid-template-columns: 1fr;
    gap: 22px;
    width: 100%;
    max-height: min(720px, calc(100dvh - 18px));
    padding: 34px 24px 30px;
    border-radius: 22px 22px 0 0;
  }

  .yg-team-profile-modal__media {
    width: min(100%, 260px);
    margin-inline: auto;
  }

  .yg-team-profile-modal__body {
    padding-right: 0;
    text-align: center;
  }

  .yg-team-profile-modal__body p {
    margin-inline: auto;
  }

  .yg-team-profile-modal__body div {
    text-align: left;
  }
}

/* Header rhythm: give the top menu enough breathing room and separate it from the hero. */
body.home .yg-ref-site-header {
  background: #fffefd;
  border-bottom: 1px solid #ffe3de;
  box-shadow: 0 12px 28px rgba(84, 46, 38, .035);
}

body.home .yg-ref-site-header .header-shell {
  min-height: 104px;
}

body.home .yg-ref-primary-menu {
  gap: clamp(1.35rem, 2.2vw, 2.65rem);
}

body.home .yg-ref-primary-menu > li > a {
  min-height: 104px;
  padding-inline: 0.12rem;
  font-size: 16px;
  font-weight: 720;
  letter-spacing: 0.01em;
}

body.home .yg-ref-primary-menu > li > a:hover,
body.home .yg-ref-primary-menu > li > a:focus-visible {
  color: var(--yg-coral-deep);
}

body.home .yg-ref-hero {
  background:
    linear-gradient(180deg, rgba(255, 227, 219, .44) 0%, rgba(255, 246, 241, .76) 48%, rgba(255, 250, 246, .9) 72%, #fffdf9 100%);
  border-top: 1px solid rgba(255, 229, 223, .66);
}

body.home .yg-ref-hero__grid {
  position: relative;
  z-index: 1;
}

body.home .yg-ref-statbar {
  border-top: 1px solid rgba(255, 218, 214, .82);
  margin-top: 46px;
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

/* About section cleanup: remove duplicate stats and align copy/cards as one balanced row. */
body.home .yg-ref-about__grid {
  align-items: start;
  gap: clamp(64px, 8vw, 112px);
  grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
}

body.home .yg-ref-about__copy {
  max-width: 720px;
}

body.home .yg-ref-about__copy h2 {
  margin-bottom: 26px;
}

body.home .yg-ref-about__copy p {
  max-width: 680px;
}

body.home .yg-ref-about__copy p + p {
  margin-top: 30px;
}

body.home .yg-ref-about__cards {
  gap: 22px;
  padding-top: 2px;
}

body.home .yg-ref-about-card {
  min-height: 132px;
  padding: 26px 30px;
}

@media (max-width: 980px) {
  body.home .yg-ref-about__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body.home .yg-ref-about__copy,
  body.home .yg-ref-about__copy p {
    max-width: none;
  }

  body.home .yg-ref-about__cards {
    padding-top: 0;
  }
}

/* Comparison section: stack the decision copy above the table for calmer scanning. */
body.home .yg-ref-compare__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 4.6vw, 54px);
  align-items: stretch;
}

body.home .yg-ref-compare__copy {
  margin-inline: auto;
  max-width: 760px;
  text-align: center;
}

body.home .yg-ref-compare__copy::before {
  left: 50%;
  top: 118px;
  transform: translateX(-50%);
}

body.home .yg-ref-compare__copy h2 {
  margin-inline: auto;
  max-width: 520px;
}

body.home .yg-ref-compare__copy p {
  margin-inline: auto;
  max-width: 680px;
}

body.home .yg-ref-compare__actions {
  justify-content: center;
}

/* News archive: edit the hero in Pages > 新闻资讯; edit cards in Posts and Categories. */
body.home,
body.blog,
body.page-id-11 {
  background: #fffaf8;
}

.site-main--gutenberg-news {
  background:
    radial-gradient(circle at 86% 9%, rgba(255, 198, 125, .17), transparent 22rem),
    radial-gradient(circle at 12% 29%, rgba(255, 112, 116, .07), transparent 19rem),
    #fffaf8;
  padding-bottom: clamp(70px, 9vw, 130px);
}

.site-main--gutenberg-news .yg-news-intro {
  margin: 0;
  max-width: none;
}

.site-main--gutenberg-news .page-banner--news {
  background: transparent;
  margin: 0;
  min-height: clamp(330px, 35vw, 460px);
  padding: clamp(84px, 11vw, 156px) 0 clamp(48px, 7vw, 88px);
}

.site-main--gutenberg-news .page-banner--news .wp-block-group__inner-container,
.site-main--gutenberg-news .page-banner__inner .wp-block-group__inner-container {
  max-width: none;
}

.site-main--gutenberg-news .page-banner__inner {
  display: grid;
  gap: 13px;
  margin: 0 auto;
  width: min(1180px, calc(100% - 44px));
}

.site-main--gutenberg-news .page-banner__inner > * { margin: 0; }

.site-main--gutenberg-news .page-banner__inner .section-kicker,
.site-main--gutenberg-news .news-category-group__header .section-kicker {
  align-items: center;
  background: #fff0ef;
  border-radius: 999px;
  color: #ff656c;
  display: inline-flex;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  justify-self: start;
  letter-spacing: 0;
  line-height: 1;
  padding: 8px 13px;
}

.site-main--gutenberg-news .page-banner__inner .section-kicker::before,
.site-main--gutenberg-news .news-category-group__header .section-kicker::before {
  background: currentColor;
  content: '';
  height: 2px;
  width: 31px;
}

.site-main--gutenberg-news .page-banner__inner h1 {
  color: #152942;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.site-main--gutenberg-news .page-banner__inner > p:not(.section-kicker) {
  color: #586981;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  max-width: 42rem;
}

.site-main--gutenberg-news .page-banner__actions {
  display: flex;
  gap: 13px;
  margin-top: 8px;
}

.site-main--gutenberg-news .page-banner__actions .wp-block-button__link {
  background: linear-gradient(120deg, #ff5e67, #ffad62);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(255, 104, 103, .22);
  color: #fff;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 800;
  min-width: 130px;
  padding: 13px 25px;
}

.site-main--gutenberg-news .page-banner__actions .is-style-outline .wp-block-button__link {
  background: rgba(255,255,255,.8);
  border: 1px solid #dce2e9;
  box-shadow: none;
  color: #152942;
}

.news-archive-shell {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 22px;
  width: 100%;
}

.yg-news-category-nav {
  align-items: center;
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(255, 119, 121, .2);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(86, 50, 43, .06);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 0 clamp(38px, 5vw, 66px);
  padding: 19px 22px;
}

.yg-news-category-nav > span { color: #152942; font-weight: 800; }
.yg-news-category-nav > div { display: flex; flex-wrap: wrap; gap: 9px; }
.yg-news-category-nav a { background: #fff0f0; border-radius: 999px; color: #ff656c; font-size: 14px; padding: 9px 18px; text-decoration: none; transition: background .18s ease, color .18s ease; }
.yg-news-category-nav a:hover, .yg-news-category-nav a:focus-visible { background: #ff6b70; color: #fff; outline: none; }

.news-archive-groups { display: grid; gap: clamp(58px, 8vw, 104px); }
.news-category-group { border-top: 1px solid rgba(255, 126, 125, .25); padding-top: 28px; scroll-margin-top: 120px; }
.news-category-group__header { display: grid; gap: 11px; margin-bottom: 27px; }
.news-category-group__header h2 { color: #152942; font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: clamp(30px, 3.1vw, 42px); font-weight: 850; letter-spacing: -.035em; line-height: 1.12; margin: 0; }
.news-category-group__header p { color: #64748b; margin: 0; max-width: 52rem; }
.news-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card { background: rgba(255,255,255,.94); border: 1px solid rgba(255, 126, 125, .22); border-radius: 22px; box-shadow: 0 16px 38px rgba(86, 50, 43, .06); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.news-card:hover, .news-card:focus-within { box-shadow: 0 22px 48px rgba(86, 50, 43, .12); transform: translateY(-3px); }
.news-card__media { aspect-ratio: 1.52; background: linear-gradient(135deg,#fff4f4,#eefaff); display: block; margin: 24px 24px 0; overflow: hidden; }
.news-card__media img { display: block; height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.news-card:hover .news-card__media img { transform: scale(1.035); }
.news-card__media--placeholder { align-items: center; color: #ff656c; display: flex; font-size: 15px; justify-content: center; }
.news-card__body { display: grid; gap: 16px; padding: 20px 24px 28px; }
.news-card__meta { align-items: center; background: #fff0f1; border-radius: 999px; color: #ff656c; display: flex; font-size: 14px; gap: 12px; line-height: 1; padding: 7px 10px; }
.news-card__meta span + span { border-left: 1px solid rgba(255,101,108,.22); padding-left: 12px; }
.news-card h2 { font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif; font-size: 21px; font-weight: 850; letter-spacing: -.02em; line-height: 1.38; margin: 0; }
.news-card h2 a { color: #152942; text-decoration: none; }
.news-card h2 a:hover, .news-card h2 a:focus-visible { color: #ef5d64; }
.news-card p { color: #596a82; font-size: 15px; line-height: 1.8; margin: 0; }

@media (max-width: 920px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .site-main--gutenberg-news .page-banner--news { min-height: 0; padding: 66px 0 58px; }
  .site-main--gutenberg-news .page-banner__inner { width: min(100% - 30px, 1180px); }
  .site-main--gutenberg-news .page-banner__inner h1 { font-size: 42px; }
  .site-main--gutenberg-news .page-banner__inner > p:not(.section-kicker) { font-size: 15px; }
  .site-main--gutenberg-news .page-banner__actions { gap: 10px; }
  .site-main--gutenberg-news .page-banner__actions .wp-block-button__link { font-size: 15px; min-width: 0; padding: 12px 21px; }
  .news-archive-shell { padding: 0 10px; }
  .yg-news-category-nav { align-items: flex-start; flex-direction: column; gap: 14px; padding: 19px; }
  .news-category-group { padding-top: 24px; }
  .news-category-group__header { margin-bottom: 20px; }
  .news-grid { gap: 28px; grid-template-columns: 1fr; }
  .news-card { border-radius: 20px; }
  .news-card__media { margin: 24px 24px 0; }
  .news-card h2 { font-size: 20px; }
}

body.home .yg-ref-compare__table-wrap {
  margin-inline: auto;
  width: min(100%, 1020px);
}

@media (max-width: 720px) {
  body.home .yg-ref-compare__grid {
    gap: 28px;
  }

  body.home .yg-ref-compare__copy {
    text-align: left;
  }

  body.home .yg-ref-compare__copy::before {
    left: -42px;
    top: 124px;
    transform: none;
  }

  body.home .yg-ref-compare__copy h2,
  body.home .yg-ref-compare__copy p {
    margin-inline: 0;
  }

  body.home .yg-ref-compare__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1260px) {
  body.home .yg-ref-primary-menu {
    gap: clamp(1rem, 1.55vw, 1.55rem);
  }

  body.home .yg-ref-primary-menu > li > a {
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  body.home .yg-ref-site-header .header-shell {
    min-height: 82px;
  }

  body.home .yg-ref-primary-menu {
    gap: 0;
  }

  body.home .yg-ref-primary-menu > li > a {
    min-height: auto;
    padding-inline: 0;
  }
}

/* Section atmosphere: subtle background separation with speech-bubble symbol watermarks. */
body.home .yg-ref-hero,
body.home .yg-ref-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body.home .yg-ref-hero > .site-container,
body.home .yg-ref-section > .site-container,
body.home .yg-ref-section .site-container {
  position: relative;
  z-index: 1;
}

body.home .yg-ref-hero::before,
body.home .yg-ref-hero::after,
body.home .yg-ref-section::before,
body.home .yg-ref-section::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

body.home .site-main > .yg-ref-section::before,
body.home .site-main > .yg-ref-section::after {
  content: '' !important;
  display: block;
}

body.home .yg-ref-hero::before,
body.home .yg-ref-section::before {
  width: var(--yg-watermark-a, 210px);
  height: var(--yg-watermark-a, 210px);
  right: var(--yg-watermark-a-right, -72px);
  top: var(--yg-watermark-a-top, 34px);
  border: 0;
  border-radius: 0;
  background: url('assets/images/bubble-watermark.png') center / contain no-repeat;
  box-shadow: none;
  filter: saturate(.92);
  opacity: var(--yg-brandmark-opacity, .105);
  transform: rotate(var(--yg-watermark-rotate, -4deg));
}

body.home .yg-ref-hero::after,
body.home .yg-ref-section::after {
  width: var(--yg-watermark-b, 118px);
  height: var(--yg-watermark-b, 118px);
  left: var(--yg-watermark-b-left, -40px);
  bottom: var(--yg-watermark-b-bottom, 34px);
  border: 0;
  border-radius: 0;
  background: url('assets/images/bubble-watermark.png') center / contain no-repeat;
  box-shadow: none;
  filter: saturate(.9);
  opacity: var(--yg-brandmark-small-opacity, .075);
  transform: rotate(var(--yg-watermark-small-rotate, 7deg));
}

body.home .yg-ref-hero {
  background: linear-gradient(180deg, #fffaf7 0%, #fff4ef 100%);
  --yg-watermark-a: 260px;
  --yg-watermark-a-right: -92px;
  --yg-watermark-a-top: 68px;
  --yg-watermark-b: 150px;
  --yg-watermark-b-left: -56px;
  --yg-watermark-b-bottom: 52px;
  --yg-watermark-rotate: -7deg;
  --yg-watermark-small-rotate: 6deg;
  --yg-brandmark-opacity: .13;
  --yg-brandmark-small-opacity: .085;
}

body.home .yg-ref-about {
  background: linear-gradient(180deg, #fffefd 0%, #fff8f5 100%);
  --yg-watermark-a: 190px;
  --yg-watermark-a-right: 3vw;
  --yg-watermark-a-top: -78px;
  --yg-watermark-b-left: 7vw;
  --yg-watermark-b-bottom: -54px;
  --yg-watermark-rotate: 8deg;
}

body.home .site-main > #about-workshop.yg-ref-about {
  background: linear-gradient(180deg, #fffefd 0%, #fff8f5 100%);
}

body.home .yg-ref-process {
  background: linear-gradient(180deg, #fff8f5 0%, #fffdfa 100%);
  --yg-watermark-a: 170px;
  --yg-watermark-a-right: -50px;
  --yg-watermark-a-top: 78px;
  --yg-watermark-b: 96px;
  --yg-watermark-b-left: 8vw;
  --yg-watermark-rotate: -10deg;
}

body.home .site-main > #services.yg-ref-process {
  background: linear-gradient(180deg, #fff8f5 0%, #fffdfa 100%);
}

body.home .yg-ref-problems {
  background: linear-gradient(180deg, #fbfbff 0%, #fff9f6 100%);
  --yg-watermark-a: 230px;
  --yg-watermark-a-right: 8vw;
  --yg-watermark-a-top: -96px;
  --yg-watermark-b-left: -32px;
  --yg-watermark-b-bottom: 46px;
  --yg-watermark-rotate: 5deg;
}

body.home .site-main > #network.yg-ref-problems {
  background: linear-gradient(180deg, #fbfbff 0%, #fff9f6 100%);
}

body.home .yg-ref-team {
  background: linear-gradient(180deg, #fffaf6 0%, #f8fbff 100%);
  --yg-watermark-a: 210px;
  --yg-watermark-a-right: -66px;
  --yg-watermark-a-top: 112px;
  --yg-watermark-b-left: 12vw;
  --yg-watermark-b-bottom: -64px;
  --yg-watermark-rotate: -6deg;
  --yg-watermark-small-rotate: -9deg;
}

body.home .yg-ref-course {
  background: linear-gradient(180deg, #fffefd 0%, #fff7f4 100%);
  --yg-watermark-a: 180px;
  --yg-watermark-a-right: 10vw;
  --yg-watermark-a-top: -72px;
  --yg-watermark-b: 104px;
  --yg-watermark-b-left: -30px;
  --yg-watermark-rotate: 9deg;
}

body.home .site-main > #courses.yg-ref-course {
  background: linear-gradient(180deg, #fffefd 0%, #fff7f4 100%);
}

body.home .yg-ref-compare {
  background: linear-gradient(180deg, #fbfbff 0%, #fffdfa 100%);
  --yg-watermark-a: 220px;
  --yg-watermark-a-right: -78px;
  --yg-watermark-a-top: 54px;
  --yg-watermark-b-left: 6vw;
  --yg-watermark-b-bottom: -46px;
  --yg-watermark-rotate: -3deg;
}

body.home .yg-ref-search {
  background: linear-gradient(180deg, #fff8f5 0%, #f9fbff 100%);
  --yg-watermark-a: 190px;
  --yg-watermark-a-right: 7vw;
  --yg-watermark-a-top: -82px;
  --yg-watermark-b: 96px;
  --yg-watermark-rotate: 7deg;
}

body.home .site-main > #geo-search.yg-ref-search {
  background: linear-gradient(180deg, #fff8f5 0%, #f9fbff 100%);
}

body.home .site-main > #geo-search.yg-ref-search .yg-ref-heading {
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

body.home .yg-ref-faq {
  background: linear-gradient(180deg, #fffdfa 0%, #fff6f2 100%);
  --yg-watermark-a: 230px;
  --yg-watermark-a-right: -88px;
  --yg-watermark-a-top: 92px;
  --yg-watermark-b-left: 9vw;
  --yg-watermark-b-bottom: -52px;
  --yg-watermark-rotate: -8deg;
}

body.home .site-main > #branches.yg-ref-map,
body.home .yg-ref-section#branches.yg-ref-map {
  background: linear-gradient(180deg, #f7fbff 0%, #fff6f1 100%);
  --yg-watermark-a: 250px;
  --yg-watermark-a-right: 6vw;
  --yg-watermark-a-top: -112px;
  --yg-watermark-b-left: -44px;
  --yg-watermark-b-bottom: 80px;
  --yg-watermark-rotate: 6deg;
}

body.home .yg-ref-appointment {
  background: linear-gradient(180deg, #fff8f5 0%, #fffdfa 100%);
  --yg-watermark-a: 210px;
  --yg-watermark-a-right: -64px;
  --yg-watermark-a-top: 88px;
  --yg-watermark-b: 130px;
  --yg-watermark-b-left: 8vw;
  --yg-watermark-b-bottom: -56px;
  --yg-watermark-rotate: -5deg;
}

@media (max-width: 720px) {
  body.home .yg-ref-hero::before,
  body.home .yg-ref-section::before {
    width: calc(var(--yg-watermark-a, 180px) * .68);
    height: calc(var(--yg-watermark-a, 180px) * .68);
    opacity: var(--yg-brandmark-opacity, .105);
  }

  body.home .yg-ref-hero::after,
  body.home .yg-ref-section::after {
    width: calc(var(--yg-watermark-b, 108px) * .72);
    height: calc(var(--yg-watermark-b, 108px) * .72);
    opacity: var(--yg-brandmark-small-opacity, .075);
  }
}

/* Hero typography and framed carousel refinement. */
body.home .yg-ref-hero h1 {
  font-family: 'Eryu Fangyuan', 'Eryu Wangxingyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-weight: 760;
  letter-spacing: 0;
}

body.home .yg-ref-statbar strong {
  font-family: 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-weight: 780;
  letter-spacing: 0;
}

body.home .yg-ref-statbar span {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-weight: 400;
  color: #657087;
}

body.home .yg-ref-hero__media {
  border: 1px solid rgba(255, 222, 215, .78);
  border-radius: 36px;
  background: #fff1ed;
  box-shadow: 0 18px 48px rgba(126, 76, 66, .08);
  overflow: hidden;
}

body.home .yg-ref-hero__carousel,
body.home .yg-ref-hero__slide {
  border-radius: inherit;
  overflow: hidden;
}

body.home .yg-ref-hero__slide {
  transform: none;
}

body.home .yg-ref-hero__slide.is-active {
  transform: none;
}

body.home .yg-ref-hero__main {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  transform: none;
}

body.home .yg-ref-hero__main::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 244, 240, .06), rgba(255, 244, 240, .16));
}

body.home .yg-ref-hero__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.home .yg-ref-hero__bubble {
  display: none;
}

body.home .yg-ref-hero__dots {
  bottom: 18px;
  filter: drop-shadow(0 1px 4px rgba(255, 255, 255, .7));
}

@media (max-width: 1180px) {
  body.home .yg-ref-hero__main {
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 980px) {
  body.home .yg-ref-hero__media {
    border-radius: 28px;
  }

  body.home .yg-ref-hero__main {
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 720px) {
  body.home .yg-ref-hero h1 {
    font-weight: 760;
  }

  body.home .yg-ref-hero__media {
    border-radius: 22px;
  }

  body.home .yg-ref-hero__main {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body.home .yg-ref-statbar span {
    font-weight: 400;
  }
}

/* About section: stack the trust copy above the three core cards to remove the empty lower-left area. */
body.home .yg-ref-about__grid {
  grid-template-columns: 1fr;
  gap: clamp(34px, 4.4vw, 54px);
  align-items: stretch;
}

body.home .yg-ref-about__copy {
  max-width: 920px;
}

body.home .yg-ref-about__copy p {
  max-width: 860px;
}

body.home .yg-ref-about__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  padding-top: 0;
}

body.home .yg-ref-about-card {
  min-height: 164px;
  padding: 28px 30px;
}

@media (max-width: 980px) {
  body.home .yg-ref-about__copy,
  body.home .yg-ref-about__copy p {
    max-width: none;
  }

  body.home .yg-ref-about__cards {
    grid-template-columns: 1fr;
  }

body.home .yg-ref-about-card {
  min-height: auto;
  }
}

/* Adjacent section contrast: keep About airy, then move Courses onto a clearer warm-tinted canvas. */
body.home .yg-ref-about,
body.home .site-main > #about-workshop.yg-ref-about {
  background:
    radial-gradient(circle at 92% -12%, rgba(255, 112, 118, .055) 0 170px, transparent 171px),
    linear-gradient(180deg, #fffefd 0%, #fffdfb 62%, #fffaf7 100%);
}

body.home .yg-ref-process,
body.home .site-main > #services.yg-ref-process {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58) 0, rgba(255, 255, 255, 0) 120px),
    radial-gradient(circle at 9% 86%, rgba(255, 112, 118, .075) 0 132px, transparent 133px),
    linear-gradient(180deg, #fff1ed 0%, #fff6f2 52%, #fffaf7 100%);
  border-top: 1px solid rgba(255, 204, 195, .62);
  box-shadow: inset 0 26px 46px rgba(156, 92, 78, .045);
  --yg-brandmark-opacity: .13;
  --yg-brandmark-small-opacity: .095;
}

/* Map section intro now belongs with the title, before the interactive campus map. */
body.home .yg-ref-map__heading {
  max-width: 980px;
  margin-bottom: clamp(28px, 3.6vw, 42px);
}

body.home .yg-ref-map__heading .yg-ref-map__summary {
  margin: 14px auto 0;
  max-width: 900px;
}

body.home .yg-ref-map__heading .yg-ref-map__summary p {
  color: #697487;
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

body.home .yg-ref-map__heading .yg-ref-center {
  margin-top: 18px;
}

body.home .yg-ref-map > .site-container > .yg-ref-map__summary,
body.home .yg-ref-map > .site-container > .yg-ref-center {
  display: none;
}

@media (max-width: 720px) {
  body.home .yg-ref-map__heading {
    margin-bottom: 24px;
  }

  body.home .yg-ref-map__heading .yg-ref-map__summary p {
    font-size: 12px;
    line-height: 1.8;
    text-align: left;
  }

  body.home .yg-ref-map__heading .yg-ref-center {
    margin-top: 14px;
  }
}

/* Visual entry cards for courses, fit groups and team. */
body.home .yg-ref-process__grid,
body.home .yg-ref-problems__grid {
  align-items: stretch;
}

body.home .yg-ref-process__grid article,
body.home .yg-ref-problems__grid article {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(255, 207, 199, .9);
  min-height: 0;
  padding: 0;
}

body.home .yg-ref-process__grid article:hover,
body.home .yg-ref-problems__grid article:hover,
body.home .yg-ref-process__grid article:focus-within,
body.home .yg-ref-problems__grid article:focus-within {
  border-color: rgba(255, 95, 101, .5);
  box-shadow: 0 18px 38px rgba(123, 74, 66, .11);
  transform: translateY(-3px);
}

body.home .yg-ref-process__grid article::before,
body.home .yg-ref-process__grid article::after,
body.home .yg-ref-problems__grid article::before,
body.home .yg-ref-problems__grid article::after {
  display: none;
}

body.home .yg-ref-process__grid article > a,
body.home .yg-ref-problems__grid article > a {
  color: inherit;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 100%;
  padding: 0;
  text-decoration: none;
}

body.home .yg-ref-card-media {
  aspect-ratio: 1.55;
  background: #fff2ee;
  border-bottom: 1px solid rgba(255, 215, 208, .82);
  display: block;
  overflow: hidden;
  position: relative;
}

body.home .yg-ref-card-media::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 44%, rgba(255, 245, 241, .72) 100%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

body.home .yg-ref-card-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.home .yg-ref-card-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 22px 24px;
}

body.home .yg-ref-process__grid i {
  align-items: center;
  background: #fff3f0;
  border-radius: 999px;
  color: var(--yg-coral-deep);
  display: inline-flex;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  letter-spacing: .03em;
  line-height: 1;
  margin: 0 0 16px;
  width: 46px;
}

body.home .yg-ref-process__grid i::after {
  display: none;
}

body.home .yg-ref-process h3,
body.home .yg-ref-problems__grid h3 {
  color: var(--yg-ink);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.34;
  margin: 0 0 12px;
}

body.home .yg-ref-process p,
body.home .yg-ref-problems__grid p {
  color: #697386;
  font-size: 13px;
  line-height: 1.82;
  margin: 0;
}

body.home .yg-ref-card-body em,
body.home .yg-ref-problems__support em {
  color: var(--yg-coral-deep);
  display: inline-flex;
  font-size: 13px;
  font-style: normal;
  font-weight: 780;
  margin-top: auto;
  padding-top: 18px;
}

body.home .yg-ref-card-body em::after,
body.home .yg-ref-problems__support em::after {
  content: '›';
  font-size: 18px;
  line-height: 1;
  margin-left: 7px;
  transform: translateY(-1px);
}

body.home .yg-ref-problems__support {
  background: rgba(255, 255, 255, .9);
}

body.home .yg-ref-problems__support article a {
  border-radius: 12px;
  color: inherit;
  display: block;
  min-height: 100%;
  padding: 4px 6px;
  text-decoration: none;
}

body.home .yg-ref-problems__support article a:hover h3,
body.home .yg-ref-problems__support article a:focus-visible h3 {
  color: var(--yg-coral-deep);
}

body.home .yg-ref-problems__support article a:focus-visible,
body.home .yg-ref-process__grid article > a:focus-visible,
body.home .yg-ref-problems__grid article > a:focus-visible {
  outline: 3px solid rgba(255, 95, 101, .25);
  outline-offset: -6px;
}

body.home .yg-ref-team__feature {
  grid-template-columns: minmax(190px, .38fr) minmax(0, 1fr);
  min-height: 260px;
  padding: 0;
}

body.home .yg-ref-team__feature::before,
body.home .yg-ref-team__feature::after {
  opacity: .24;
}

body.home .yg-ref-team__portrait {
  align-self: stretch;
  aspect-ratio: auto;
  border-radius: 0;
  height: 100%;
  min-height: 260px;
  width: 100%;
}

body.home .yg-ref-team__portrait img {
  object-position: center top;
}

body.home .yg-ref-team__feature-copy {
  align-self: center;
  padding: 30px 34px 30px 4px;
}

body.home .yg-ref-team__link {
  align-items: center;
  background: #fff5f2;
  border: 1px solid rgba(255, 95, 101, .26);
  border-radius: 999px;
  margin-top: 20px;
  min-height: 38px;
  padding: 0 16px;
  width: fit-content;
}

body.home .yg-ref-team__link::after {
  content: '›';
  font-size: 18px;
  margin-left: 8px;
}

body.home .yg-ref-team__thumb {
  grid-template-columns: 70px minmax(0, 1fr);
  min-height: 104px;
  padding: 12px;
}

body.home .yg-ref-team__thumb-media {
  border-radius: 14px;
  width: 70px;
}

@media (max-width: 980px) {
  body.home .yg-ref-process__grid,
  body.home .yg-ref-problems__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.home .yg-ref-process__grid,
  body.home .yg-ref-problems__grid {
    grid-template-columns: 1fr;
  }

  body.home .yg-ref-card-media {
    aspect-ratio: 1.9;
  }

  body.home .yg-ref-card-body {
    padding: 20px;
  }

  body.home .yg-ref-process__grid article,
  body.home .yg-ref-problems__grid article {
    padding: 0;
  }

  body.home .yg-ref-team__feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.home .yg-ref-team__portrait {
    aspect-ratio: 1.7;
    min-height: 0;
  }

  body.home .yg-ref-team__feature-copy {
    padding: 22px 20px 24px;
  }

  body.home .yg-ref-team__thumb {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  body.home .yg-ref-team__thumb-media {
    width: 64px;
  }
}

/* Homepage typography system: align matching heading levels across sections. */
body.home .yg-ref-home,
body.home .yg-ref-home button,
body.home .yg-ref-home input,
body.home .yg-ref-home select,
body.home .yg-ref-home textarea {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
}

body.home .yg-ref-hero h1,
body.home .yg-ref-heading h2,
body.home .yg-ref-about__copy h2,
body.home .yg-ref-compare__copy h2,
body.home .yg-ref-faq__heading h2,
body.home .yg-ref-cta h2,
body.home .yg-ref-appointment__heading h2,
body.home .yg-ref-appointment__copy h2 {
  font-family: 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-weight: 760;
  letter-spacing: 0;
}

body.home .yg-ref-heading h2,
body.home .yg-ref-about__copy h2,
body.home .yg-ref-compare__copy h2,
body.home .yg-ref-faq__heading h2,
body.home .yg-ref-cta h2,
body.home .yg-ref-appointment__heading h2 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.22;
  margin: 10px 0 14px;
}

body.home .yg-ref-appointment__copy h2 {
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.22;
}

body.home .yg-ref-kicker,
body.home .yg-ref-heading--center .yg-ref-kicker,
body.home .yg-ref-problems__support > strong {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: .1em;
  line-height: 1.2;
}

body.home .yg-ref-about-card h3,
body.home .yg-ref-process h3,
body.home .yg-ref-problems__grid h3,
body.home .yg-ref-problems__support h3,
body.home .yg-ref-course__cards h3,
body.home .yg-ref-city-grid h3,
body.home .yg-ref-map__selector-head strong,
body.home .yg-ref-map__summary h3,
body.home .yg-ref-faq__question,
body.home .yg-ref-appointment__note strong {
  font-family: 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 18px;
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.42;
}

body.home .yg-ref-card-body h3 {
  min-height: calc(18px * 1.42 * 2);
}

body.home .yg-ref-team__feature h3 {
  font-family: 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.22;
}

body.home .yg-ref-team__thumb-copy strong {
  font-family: 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 740;
  line-height: 1.25;
}

body.home .yg-ref-heading p,
body.home .yg-ref-about p,
body.home .yg-ref-process p,
body.home .yg-ref-problems p,
body.home .yg-ref-course p,
body.home .yg-ref-compare p,
body.home .yg-ref-team__feature p,
body.home .yg-ref-faq__answer p,
body.home .yg-ref-appointment p {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-weight: 400;
}

@media (max-width: 720px) {
  body.home .yg-ref-heading h2,
  body.home .yg-ref-about__copy h2,
  body.home .yg-ref-compare__copy h2,
  body.home .yg-ref-faq__heading h2,
  body.home .yg-ref-cta h2,
  body.home .yg-ref-appointment__heading h2,
  body.home .yg-ref-appointment__copy h2 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.24;
  }

  body.home .yg-ref-about-card h3,
  body.home .yg-ref-process h3,
  body.home .yg-ref-problems__grid h3,
  body.home .yg-ref-problems__support h3,
  body.home .yg-ref-course__cards h3,
  body.home .yg-ref-city-grid h3,
  body.home .yg-ref-map__selector-head strong,
  body.home .yg-ref-map__summary h3,
  body.home .yg-ref-faq__question,
  body.home .yg-ref-appointment__note strong {
    font-size: 17px;
    line-height: 1.42;
  }

  body.home .yg-ref-card-body h3 {
    min-height: auto;
  }
}

/* Preview-approved visual density pass: image-led cards and clearer copy rhythm. */
body.home .yg-ref-course,
body.home .site-main > #courses.yg-ref-course {
  background:
    radial-gradient(circle at 12% 92%, rgba(255, 95, 101, .08) 0 180px, transparent 181px),
    linear-gradient(180deg, #fffaf8 0%, #fff0ec 100%);
}

body.home .yg-ref-course__cards {
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.home .yg-ref-course__cards article {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(255, 153, 140, .46);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(121, 63, 55, .09);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  transition: box-shadow .2s ease, transform .2s ease;
}

body.home .yg-ref-course__cards article::before,
body.home .yg-ref-course__cards article::after {
  display: none;
}

body.home .yg-ref-course__cards article:hover,
body.home .yg-ref-course__cards article:focus-within {
  box-shadow: 0 22px 48px rgba(121, 63, 55, .12);
  transform: translateY(-3px);
}

body.home .yg-ref-course__media {
  aspect-ratio: 1.58;
  background: #fff4f0;
  display: block;
  overflow: hidden;
}

body.home .yg-ref-course__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body.home .yg-ref-course__body {
  display: grid;
  gap: 12px;
  padding: 24px 24px 26px;
}

body.home .yg-ref-course__cards i {
  background: transparent;
  color: var(--yg-coral-deep);
  display: block;
  font-size: 17px;
  font-weight: 900;
  height: auto;
  letter-spacing: .03em;
  margin: 0;
  width: auto;
}

body.home .yg-ref-course__cards h3 {
  font-size: 23px;
  font-weight: 850;
  line-height: 1.22;
  margin: 0;
  min-height: auto;
}

body.home .yg-ref-course__cards p {
  color: #657084;
  font-size: 14px;
  line-height: 1.72;
  margin: 0;
}

body.home .yg-ref-compare {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 95, 101, .055) 0 180px, transparent 181px),
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

body.home .yg-ref-compare__copy h2 {
  font-size: clamp(32px, 3.1vw, 42px);
  line-height: 1.14;
  max-width: 420px;
}

body.home .yg-ref-compare__copy p {
  font-size: 16px;
  line-height: 1.9;
  max-width: 470px;
}

body.home .yg-ref-faq {
  background:
    radial-gradient(circle at 91% 4%, rgba(255, 95, 101, .06) 0 150px, transparent 151px),
    linear-gradient(180deg, #fffaf8 0%, #fff 100%);
}

body.home .yg-ref-faq__list {
  gap: 14px;
  max-width: 980px;
}

body.home .yg-ref-faq__button {
  grid-template-columns: 64px minmax(0, 1fr) 38px;
  min-height: 78px;
  padding: 0 26px;
}

body.home .yg-ref-faq__question {
  font-size: 19px;
  font-weight: 850;
  line-height: 1.38;
}

body.home .yg-ref-faq__answer p {
  font-size: 15px;
  line-height: 1.9;
  padding-bottom: 28px;
}

body.home .yg-ref-appointment {
  background:
    radial-gradient(circle at 12% 96%, rgba(255, 95, 101, .07) 0 190px, transparent 191px),
    linear-gradient(180deg, #f7f9fc 0%, #fff7f4 100%);
}

body.home .yg-ref-appointment__layout {
  align-items: stretch;
  gap: 36px;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  max-width: 1040px;
}

body.home .yg-ref-appointment__visual {
  background: #fff5f1;
  border: 1px solid rgba(255, 153, 140, .36);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

body.home .yg-ref-appointment__visual img {
  aspect-ratio: 1.25;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

body.home .yg-ref-appointment__visual div {
  padding: 24px;
}

body.home .yg-ref-appointment__visual h3 {
  color: var(--yg-ink);
  font-family: 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.2;
  margin: 0 0 10px;
}

body.home .yg-ref-appointment__visual p {
  color: #657084;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 980px) {
  body.home .yg-ref-course__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.home .yg-ref-course__cards {
    grid-template-columns: 1fr;
  }

  body.home .yg-ref-course__cards article {
    padding: 0;
  }

  body.home .yg-ref-course__media {
    aspect-ratio: 1.72;
  }

  body.home .yg-ref-course__cards h3 {
    font-size: 21px;
  }

  body.home .yg-ref-compare__copy h2 {
    font-size: 31px;
  }

  body.home .yg-ref-faq__button {
    grid-template-columns: 46px minmax(0, 1fr) 32px;
    min-height: 72px;
    padding: 0 15px;
  }

  body.home .yg-ref-faq__question {
    font-size: 16px;
  }

  body.home .yg-ref-appointment__layout {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  body.home .yg-ref-appointment__visual img {
    aspect-ratio: 1.5;
  }

  body.home .yg-ref-appointment__visual h3 {
    font-size: 23px;
  }
}

/* Requested hero title face: use the system font stack only for the first-screen headline. */
body.home .yg-ref-hero h1 {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
}

/* Requested homepage typography unification: apply the system font to visible homepage text. */
body.home .site-header,
body.home .site-header :where(a, button, span, strong),
body.home .site-footer,
body.home .site-footer :where(h1, h2, h3, h4, h5, h6, p, a, button, span, strong, small, li, label),
body.home .yg-ref-home,
body.home .yg-ref-home :where(p, a, button, span, strong, small, label, input, select, textarea, th, td, li, em, b),
body.home .yg-ref-hero h1,
body.home .yg-ref-hero h2,
body.home .yg-ref-heading h2,
body.home .yg-ref-about__copy h2,
body.home .yg-ref-compare__copy h2,
body.home .yg-ref-faq__heading h2,
body.home .yg-ref-cta h2,
body.home .yg-ref-appointment__heading h2,
body.home .yg-ref-appointment__copy h2,
body.home .yg-ref-about-card h3,
body.home .yg-ref-process h3,
body.home .yg-ref-problems__grid h3,
body.home .yg-ref-problems__support h3,
body.home .yg-ref-course__cards h3,
body.home .yg-ref-city-grid h3,
body.home .yg-ref-map__selector-head strong,
body.home .yg-ref-map__summary h3,
body.home .yg-ref-faq__question,
body.home .yg-ref-appointment__note strong,
body.home .yg-ref-appointment__visual h3,
body.home .yg-ref-team__feature h3,
body.home .yg-ref-team__thumb-copy strong,
body.home .yg-ref-statbar strong,
body.home .yg-ref-statbar span,
body.home .yg-ref-button,
body.home .yg-ref-hero .yg-ref-button,
body.home .yg-ref-compare__actions .yg-ref-button,
body.home .yg-ref-compare__actions > a:not(.yg-ref-button) {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
}

/* Advantages requested back to concise text cards, without image media. */
body.home .yg-ref-advantages {
  background:
    radial-gradient(circle at 9% 90%, rgba(255, 95, 101, .09) 0 170px, transparent 171px),
    linear-gradient(180deg, #fff7f4 0%, #fffaf8 100%);
}

body.home .yg-ref-advantages__heading {
  margin-bottom: 46px;
}

body.home .yg-ref-advantages__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.home .yg-ref-advantages__grid article {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 153, 140, .42);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(121, 63, 55, .06);
  min-height: 230px;
  overflow: hidden;
  padding: 28px 28px 30px;
  position: relative;
}

body.home .yg-ref-advantages__grid article::before {
  background: rgba(255, 95, 101, .045);
  border-radius: 999px;
  content: "";
  height: 120px;
  position: absolute;
  right: -42px;
  top: -52px;
  width: 120px;
}

body.home .yg-ref-advantages__grid article::after {
  border: 1px solid rgba(255, 153, 140, .16);
  border-radius: 999px;
  bottom: 24px;
  content: "";
  height: 48px;
  position: absolute;
  right: 24px;
  width: 48px;
}

body.home .yg-ref-advantages__grid i {
  color: var(--yg-coral-deep);
  display: block;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1;
  margin: 0 0 28px;
  position: relative;
  z-index: 1;
}

body.home .yg-ref-advantages__grid h3 {
  color: var(--yg-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.28;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

body.home .yg-ref-advantages__grid p {
  color: #657084;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.78;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  body.home .yg-ref-advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.home .yg-ref-advantages__heading {
    margin-bottom: 28px;
  }

  body.home .yg-ref-advantages__grid {
    grid-template-columns: 1fr;
  }

  body.home .yg-ref-advantages__grid article {
    min-height: 0;
    padding: 24px 22px;
  }

body.home .yg-ref-advantages__grid h3 {
    font-size: 21px;
  }
}

/* About copy/card alignment pass: keep intro text aligned to the three-card row. */
body.home .yg-ref-about__grid {
  gap: clamp(30px, 3.8vw, 48px);
}

body.home .yg-ref-about__copy {
  max-width: none;
  width: 100%;
}

body.home .yg-ref-about__copy p {
  color: #6f7a8d;
  font-size: 15px;
  line-height: 1.9;
  max-width: none;
  width: 100%;
}

body.home .yg-ref-about__copy p + p {
  margin-top: 16px;
}

body.home .yg-ref-about__cards {
  align-items: stretch;
  width: 100%;
}

body.home .yg-ref-about-card {
  min-height: 156px;
}

body.home .yg-ref-about-card p {
  font-size: 14px;
  line-height: 1.75;
}

@media (min-width: 981px) {
  body.home .yg-ref-about-card--2 p {
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  body.home .yg-ref-about__copy p {
    font-size: 15px;
    line-height: 1.86;
  }

  body.home .yg-ref-about__copy p + p {
    margin-top: 14px;
  }
}

/* Section subhead unification requested: match the calmer For Whom small-copy style. */
body.home .yg-ref-process__heading p,
body.home .yg-ref-team__heading p,
body.home .yg-ref-advantages__heading p,
body.home .yg-ref-compare__copy > p {
  color: #657084;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  margin: 14px auto 0;
  max-width: min(980px, 100%);
  text-align: center;
}

body.home .yg-ref-compare__copy > p {
  max-width: min(920px, 100%);
}

body.home .yg-ref-advantages__heading {
  margin-bottom: 48px;
}

body.home .yg-ref-advantages__heading p {
  margin-top: 14px;
}

@media (min-width: 981px) {
  body.home .yg-ref-process__heading p,
  body.home .yg-ref-team__heading p,
  body.home .yg-ref-advantages__heading p,
  body.home .yg-ref-compare__copy > p {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  body.home .yg-ref-process__heading p,
  body.home .yg-ref-team__heading p,
  body.home .yg-ref-advantages__heading p,
  body.home .yg-ref-compare__copy > p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.78;
    margin-top: 10px;
    text-align: center;
  }

  body.home .yg-ref-advantages__heading {
    margin-bottom: 34px;
  }

  body.home .yg-ref-advantages__heading p {
    margin-top: 12px;
  }
}

/* Why Eryu: center the heading block and keep a single secondary action. */
body.home .yg-ref-compare {
  padding-top: clamp(64px, 7vw, 96px);
}

body.home .yg-ref-compare__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  align-items: stretch;
}

body.home .yg-ref-compare__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  max-width: min(980px, 100%);
  text-align: center;
}

body.home .yg-ref-compare__copy::before {
  left: 50%;
  top: 165px;
  transform: translateX(-50%);
}

body.home .yg-ref-compare__copy h2 {
  margin: 12px auto 0;
  max-width: none;
  text-align: center;
}

body.home .yg-ref-compare__copy > p {
  margin: 16px auto 0;
  max-width: min(920px, 100%);
  text-align: center;
}

body.home .yg-ref-compare__actions {
  justify-content: center;
  margin-top: 30px;
}

body.home .yg-ref-compare__actions > a:not(.yg-ref-button) {
  align-items: center;
  border: 1px solid rgba(255, 95, 101, .28);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(255, 95, 101, .10);
  color: var(--yg-coral-deep);
  display: inline-flex;
  font-size: 15px;
  font-weight: 760;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.home .yg-ref-compare__actions > a:not(.yg-ref-button):hover,
body.home .yg-ref-compare__actions > a:not(.yg-ref-button):focus-visible {
  background: #fff7f5;
  border-color: rgba(255, 95, 101, .46);
  box-shadow: 0 16px 32px rgba(255, 95, 101, .14);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  body.home .yg-ref-compare {
    padding-top: 50px;
  }

  body.home .yg-ref-compare__copy {
    text-align: center;
  }

  body.home .yg-ref-compare__copy::before {
    left: 50%;
    top: 150px;
    transform: translateX(-50%);
  }

  body.home .yg-ref-compare__copy h2,
  body.home .yg-ref-compare__copy > p {
    margin-inline: auto;
    text-align: center;
  }

body.home .yg-ref-compare__actions {
    justify-content: center;
    margin-top: 24px;
  }
}

/* Graduation cases: the archive content remains in Gutenberg and the cards remain
 * a live query of the Case Studies post type. These styles only shape that page. */
.site-main--gutenberg-case-studies {
  --yg-cases-paper: #fffaf8;
  --yg-cases-panel: #fffefe;
  --yg-cases-ink: #26324a;
  --yg-cases-muted: #66738d;
  --yg-cases-accent: #e95a63;
  --yg-cases-line: rgba(233, 90, 99, .2);
  background: var(--yg-cases-paper);
  color: var(--yg-cases-ink);
  overflow: hidden;
}

.site-main--gutenberg-case-studies,
.site-main--gutenberg-case-studies :where(h1, h2, h3, p, a, span) {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
}

.site-main--gutenberg-case-studies .page-banner--case_study {
  background:
    radial-gradient(circle at 88% 24%, rgba(255, 255, 255, .72) 0 10%, transparent 10.2%),
    radial-gradient(circle at 91% 16%, rgba(255, 218, 216, .82) 0 18%, transparent 18.2%),
    linear-gradient(125deg, #fff5f2 0%, #ffe9e7 54%, #ffdedd 100%);
  min-height: clamp(310px, 31vw, 430px);
  overflow: hidden;
  position: relative;
}

.site-main--gutenberg-case-studies .page-banner--case_study::before,
.site-main--gutenberg-case-studies .page-banner--case_study::after {
  border: 1px solid rgba(233, 90, 99, .2);
  border-radius: 50%;
  content: '';
  pointer-events: none;
  position: absolute;
}

.site-main--gutenberg-case-studies .page-banner--case_study::before {
  height: min(28vw, 380px);
  right: -7vw;
  top: -11vw;
  width: min(28vw, 380px);
}

.site-main--gutenberg-case-studies .page-banner--case_study::after {
  height: min(15vw, 205px);
  right: 19vw;
  top: 9vw;
  width: min(15vw, 205px);
}

.site-main--gutenberg-case-studies .page-banner--case_study > .wp-block-group__inner-container {
  min-height: inherit;
}

.site-main--gutenberg-case-studies .page-banner--case_study .page-banner__inner {
  align-content: center;
  display: grid;
  min-height: inherit;
  padding: clamp(56px, 7vw, 86px) 0;
  position: relative;
  width: min(var(--yg-shell), calc(100% - 48px));
  z-index: 1;
}

.site-main--gutenberg-case-studies .page-banner--case_study .section-kicker,
.site-main--gutenberg-case-studies .archive-shell .section-kicker {
  color: var(--yg-cases-accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  margin: 0 0 15px;
}

.site-main--gutenberg-case-studies .page-banner--case_study h1 {
  color: var(--yg-cases-ink);
  font-family: 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 0;
  max-width: 11em;
}

.site-main--gutenberg-case-studies .page-banner--case_study h1 + p {
  color: #59677e;
  font-size: 17px;
  line-height: 1.8;
  margin: 19px 0 0;
  max-width: 35em;
}

.site-main--gutenberg-case-studies .page-banner__actions {
  gap: 12px;
  margin: 29px 0 0;
}

.site-main--gutenberg-case-studies .page-banner__actions .wp-block-button__link {
  align-items: center;
  background: var(--yg-cases-accent);
  border: 1px solid var(--yg-cases-accent);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(183, 69, 77, .18);
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 750;
  min-height: 46px;
  padding: 0 23px;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.site-main--gutenberg-case-studies .page-banner__actions .wp-block-button__link:hover,
.site-main--gutenberg-case-studies .page-banner__actions .wp-block-button__link:focus-visible {
  background: #cf4c56;
  box-shadow: 0 16px 32px rgba(183, 69, 77, .24);
  color: #fff;
  transform: translateY(-2px);
}

.site-main--gutenberg-case-studies .page-banner__actions .wp-block-button__link:active {
  transform: translateY(0) scale(.98);
}

.site-main--gutenberg-case-studies .page-banner__actions .is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, .65);
  border-color: rgba(233, 90, 99, .36);
  box-shadow: none;
  color: #bc4a53;
}

.site-main--gutenberg-case-studies .page-banner__actions .is-style-outline .wp-block-button__link:hover,
.site-main--gutenberg-case-studies .page-banner__actions .is-style-outline .wp-block-button__link:focus-visible {
  background: #fff;
  border-color: rgba(233, 90, 99, .62);
  color: #a93d46;
}

.site-main--gutenberg-case-studies .archive-shell.ygt-edit-section {
  margin: 0 auto;
  max-width: none;
  padding: clamp(66px, 8vw, 114px) max(24px, calc((100vw - var(--yg-shell)) / 2));
  width: 100%;
}

.site-main--gutenberg-case-studies .archive-shell.ygt-edit-section > .wp-block-group__inner-container {
  margin: 0 auto;
  max-width: var(--yg-shell);
}

.site-main--gutenberg-case-studies .archive-shell .section-heading {
  border-bottom: 1px solid var(--yg-cases-line);
  margin: 0 0 clamp(30px, 4vw, 48px);
  max-width: none;
  padding: 0 0 27px;
  text-align: left;
}

.site-main--gutenberg-case-studies .archive-shell .section-heading h2 {
  color: var(--yg-cases-ink);
  font-family: 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.18;
  margin: 0;
}

.site-main--gutenberg-case-studies .archive-shell .section-heading h2 + p {
  color: var(--yg-cases-muted);
  font-size: 16px;
  line-height: 1.78;
  margin: 13px 0 0;
  max-width: 43em;
}

.site-main--gutenberg-case-studies .wpgw-content-list-grid.story-grid {
  display: grid;
  gap: clamp(18px, 2.2vw, 30px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.site-main--gutenberg-case-studies .story-card.story-card--with-media {
  background: var(--yg-cases-panel);
  border: 1px solid rgba(39, 50, 74, .1);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(79, 56, 65, .07);
  display: grid;
  grid-column: span 4;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.site-main--gutenberg-case-studies .story-card.story-card--with-media:first-child {
  grid-column: span 8;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  grid-template-rows: 1fr;
}

.site-main--gutenberg-case-studies .story-card.story-card--with-media:hover,
.site-main--gutenberg-case-studies .story-card.story-card--with-media:focus-within {
  border-color: rgba(233, 90, 99, .42);
  box-shadow: 0 22px 44px rgba(104, 60, 67, .12);
  transform: translateY(-3px);
}

.site-main--gutenberg-case-studies .story-card__media {
  aspect-ratio: 1.42;
  background: #f8dfdc;
  display: block;
  overflow: hidden;
}

.site-main--gutenberg-case-studies .story-card:first-child .story-card__media {
  aspect-ratio: auto;
  min-height: 315px;
}

.site-main--gutenberg-case-studies .story-card__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  width: 100%;
}

.site-main--gutenberg-case-studies .story-card:hover .story-card__media img,
.site-main--gutenberg-case-studies .story-card:focus-within .story-card__media img {
  transform: scale(1.035);
}

.site-main--gutenberg-case-studies .story-card__body {
  display: flex;
  flex-direction: column;
  padding: 23px 24px 26px;
}

.site-main--gutenberg-case-studies .story-card:first-child .story-card__body {
  justify-content: center;
  padding: clamp(28px, 3.4vw, 46px);
}

.site-main--gutenberg-case-studies .story-card__meta {
  color: var(--yg-cases-accent);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.site-main--gutenberg-case-studies .story-card h2 {
  color: var(--yg-cases-ink);
  font-family: 'Eryu Fangyuan', 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(22px, 1.72vw, 27px);
  font-weight: 760;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 10px 0 0;
}

.site-main--gutenberg-case-studies .story-card:first-child h2 {
  font-size: clamp(27px, 2.5vw, 38px);
  line-height: 1.22;
}

.site-main--gutenberg-case-studies .story-card h2 a {
  color: inherit;
  text-decoration: none;
}

.site-main--gutenberg-case-studies .story-card h2 a:focus-visible,
.site-main--gutenberg-case-studies .story-card__media:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(233, 90, 99, .62);
  outline-offset: 3px;
}

.site-main--gutenberg-case-studies .story-card p {
  color: var(--yg-cases-muted);
  font-size: 15px;
  line-height: 1.78;
  margin: 13px 0 0;
}

@media (max-width: 900px) {
  .site-main--gutenberg-case-studies .story-card.story-card--with-media,
  .site-main--gutenberg-case-studies .story-card.story-card--with-media:first-child {
    grid-column: span 6;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .site-main--gutenberg-case-studies .story-card:first-child .story-card__media {
    aspect-ratio: 1.42;
    min-height: 0;
  }

  .site-main--gutenberg-case-studies .story-card:first-child .story-card__body {
    justify-content: flex-start;
    padding: 23px 24px 26px;
  }

  .site-main--gutenberg-case-studies .story-card:first-child h2 {
    font-size: clamp(22px, 3vw, 28px);
  }
}

@media (max-width: 620px) {
  .site-main--gutenberg-case-studies .page-banner--case_study {
    min-height: 0;
  }

  .site-main--gutenberg-case-studies .page-banner--case_study::before {
    height: 220px;
    right: -86px;
    top: -100px;
    width: 220px;
  }

  .site-main--gutenberg-case-studies .page-banner--case_study::after {
    height: 116px;
    right: 43px;
    top: 99px;
    width: 116px;
  }

  .site-main--gutenberg-case-studies .page-banner--case_study .page-banner__inner {
    padding: 54px 0 58px;
    width: calc(100% - 32px);
  }

  .site-main--gutenberg-case-studies .page-banner--case_study h1 {
    font-size: clamp(34px, 10vw, 42px);
    max-width: 8.5em;
  }

  .site-main--gutenberg-case-studies .page-banner--case_study h1 + p {
    font-size: 15px;
    line-height: 1.75;
    max-width: 24em;
  }

  .site-main--gutenberg-case-studies .page-banner__actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-main--gutenberg-case-studies .page-banner__actions .wp-block-button,
  .site-main--gutenberg-case-studies .page-banner__actions .wp-block-button__link {
    width: 100%;
  }

  .site-main--gutenberg-case-studies .page-banner__actions .wp-block-button__link {
    font-size: 14px;
    justify-content: center;
    padding: 0 12px;
  }

  .site-main--gutenberg-case-studies .archive-shell.ygt-edit-section {
    padding: 52px 16px 60px;
  }

  .site-main--gutenberg-case-studies .archive-shell .section-heading {
    margin-bottom: 27px;
    padding-bottom: 22px;
  }

  .site-main--gutenberg-case-studies .archive-shell .section-heading h2 {
    font-size: 29px;
  }

  .site-main--gutenberg-case-studies .archive-shell .section-heading h2 + p {
    font-size: 14px;
  }

  .site-main--gutenberg-case-studies .wpgw-content-list-grid.story-grid {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .site-main--gutenberg-case-studies .story-card.story-card--with-media,
  .site-main--gutenberg-case-studies .story-card.story-card--with-media:first-child {
    grid-column: auto;
  }

  .site-main--gutenberg-case-studies .story-card__body,
  .site-main--gutenberg-case-studies .story-card:first-child .story-card__body {
    padding: 21px 20px 23px;
  }

  .site-main--gutenberg-case-studies .story-card h2,
  .site-main--gutenberg-case-studies .story-card:first-child h2 {
    font-size: 23px;
  }

  .site-main--gutenberg-case-studies .story-card p {
    font-size: 14px;
    line-height: 1.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-main--gutenberg-case-studies .page-banner__actions .wp-block-button__link,
  .site-main--gutenberg-case-studies .story-card.story-card--with-media,
  .site-main--gutenberg-case-studies .story-card__media img {
    transition: none;
  }
}

@media (max-width: 620px) {
  body.page-id-407 .floating-sidebar,
  body.post-type-archive-case_study .floating-sidebar {
    display: none;
  }
}

/* About page redesign: hero banner, clickable tabs, editable image-text sections. */
body.page-template-template-about {
  background: #fffaf8;
}

body.page-template-template-about .floating-sidebar {
  display: none;
}

.yg-about-page,
.yg-about-page *,
.yg-about-page *::before,
.yg-about-page *::after {
  box-sizing: border-box;
}

.yg-about-page {
  --yg-about-shell: 1180px;
  color: var(--yg-ink);
  background: #fffaf8;
  overflow: hidden;
}

.yg-about-container {
  margin-inline: auto;
  width: min(var(--yg-about-shell), calc(100% - 44px));
}

.yg-about-hero {
  align-items: center;
  background: var(--yg-about-hero-image) center center/cover no-repeat;
  display: flex;
  min-height: clamp(370px, 32vw, 460px);
  position: relative;
}

.yg-about-hero::after {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, .54), rgba(17, 24, 39, .28) 42%, rgba(17, 24, 39, .50)),
    linear-gradient(180deg, rgba(17, 24, 39, .10), rgba(17, 24, 39, .30));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.yg-about-hero__inner {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  padding-inline: clamp(22px, 5vw, 72px);
  position: relative;
  text-align: center;
  width: min(var(--yg-about-shell), calc(100% - 44px));
  z-index: 1;
}

.yg-about-hero h1 {
  color: #fff !important;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .32);
}

.yg-about-hero span {
  color: rgba(255, 255, 255, .88) !important;
  display: inline-block;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  margin-top: 18px;
}

.yg-about-tabs {
  background: rgba(255, 253, 252, .96);
  border-bottom: 1px solid rgba(255, 184, 174, .46);
  box-shadow: 0 16px 32px rgba(105, 65, 58, .07);
  position: sticky;
  top: 0;
  z-index: 20;
}

.yg-about-tabs .yg-about-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 58px;
}

.yg-about-tabs a {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #3b4355;
  display: inline-flex;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 15px;
  font-weight: 650;
  justify-content: center;
  line-height: 1.2;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.yg-about-tabs a:hover,
.yg-about-tabs a:focus-visible,
.yg-about-tabs a.is-active {
  background: #fff7f4;
  border-color: var(--yg-coral);
  color: var(--yg-coral-deep);
  outline: none;
}

.yg-about-tabs a:active {
  transform: translateY(1px);
}

.yg-about-section {
  padding: clamp(66px, 7vw, 98px) 0;
  position: relative;
  scroll-margin-top: 82px;
}

.yg-about-section:nth-of-type(odd) {
  background: #fffaf8;
}

.yg-about-section:nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff 0%, #fff5f2 100%);
}

.yg-about-kicker {
  align-items: center;
  color: var(--yg-coral);
  display: inline-flex;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: .08em;
  line-height: 1.2;
}

.yg-about-kicker::before {
  background: linear-gradient(90deg, var(--yg-peach), var(--yg-coral));
  content: "";
  height: 2px;
  width: 46px;
}

.yg-about-heading {
  margin: 0 auto 38px;
  max-width: 820px;
  text-align: center;
}

.yg-about-heading .yg-about-kicker {
  justify-content: center;
}

.yg-about-heading h2,
.yg-about-intro__copy h2 {
  color: var(--yg-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 13px 0 16px;
}

.yg-about-heading p,
.yg-about-intro__copy p,
.yg-about-principles p,
.yg-about-history p,
.yg-about-culture p {
  color: #68758b;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.86;
  margin: 0;
}

.yg-about-intro > .yg-about-container:first-child {
  align-items: center;
  display: grid;
  gap: clamp(44px, 5vw, 72px);
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
}

.yg-about-intro__media {
  min-height: 490px;
  position: relative;
}

.yg-about-intro__main,
.yg-about-intro__side {
  margin: 0;
  overflow: hidden;
}

.yg-about-intro__main {
  aspect-ratio: 1.08;
  border: 1px solid rgba(255, 184, 174, .56);
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(113, 68, 59, .12);
  width: min(430px, 88%);
}

.yg-about-intro__side {
  aspect-ratio: 1.55;
  border: 1px solid rgba(255, 184, 174, .56);
  border-radius: 16px;
  bottom: 18px;
  box-shadow: 0 18px 40px rgba(113, 68, 59, .16);
  position: absolute;
  right: 0;
  width: min(330px, 58%);
}

.yg-about-intro__main img,
.yg-about-intro__side img,
.yg-about-history figure img,
.yg-about-culture figure img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.yg-about-intro__copy p + p {
  margin-top: 16px;
}

.yg-about-stats {
  border-top: 1px solid rgba(255, 184, 174, .45);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(42px, 5vw, 68px);
  padding-top: 28px;
}

.yg-about-stats article {
  min-width: 0;
  padding: 0 22px;
  position: relative;
  text-align: center;
}

.yg-about-stats article:not(:last-child)::after {
  background: #ffe0dc;
  content: "";
  height: 54px;
  position: absolute;
  right: 0;
  top: 8px;
  width: 1px;
}

.yg-about-stats strong {
  color: var(--yg-coral-deep);
  display: block;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.05;
}

.yg-about-stats span {
  color: #637085;
  display: block;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 10px;
}

.yg-about-principles__grid,
.yg-about-culture__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.yg-about-culture__grid {
  align-items: stretch;
  grid-auto-columns: clamp(280px, 30vw, 390px);
  grid-auto-flow: column;
  grid-template-columns: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 8px 4px 20px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 100, 102, .58) rgba(255, 232, 226, .75);
  scrollbar-width: thin;
}

.yg-about-culture__grid::-webkit-scrollbar { height: 9px; }
.yg-about-culture__grid::-webkit-scrollbar-track { background: rgba(255, 232, 226, .75); border-radius: 999px; }
.yg-about-culture__grid::-webkit-scrollbar-thumb { background: rgba(255, 100, 102, .58); border: 2px solid rgba(255, 248, 246, .96); border-radius: 999px; }
.yg-about-culture__grid:focus-visible { outline: 3px solid rgba(255, 100, 102, .55); outline-offset: 6px; }

.yg-about-process-cards {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-auto-columns: clamp(270px, 22vw, 340px);
  grid-auto-flow: column;
  grid-template-columns: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 8px 4px 20px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 100, 102, .58) rgba(255, 232, 226, .75);
  scrollbar-width: thin;
}

.yg-about-process-cards::-webkit-scrollbar { height: 9px; }
.yg-about-process-cards::-webkit-scrollbar-track { background: rgba(255, 232, 226, .75); border-radius: 999px; }
.yg-about-process-cards::-webkit-scrollbar-thumb { background: rgba(255, 100, 102, .58); border: 2px solid rgba(255, 248, 246, .96); border-radius: 999px; }
.yg-about-process-cards:focus-visible { outline: 3px solid rgba(255, 100, 102, .55); outline-offset: 6px; }

.yg-about-process-heading { margin-bottom: clamp(24px, 2.6vw, 36px) !important; }
.yg-about-process-heading h2 { margin: 0; }

.yg-about-process-card {
  align-items: stretch !important;
  background: #25303d !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 40px rgba(38, 46, 56, .16) !important;
  display: grid !important;
  isolation: isolate;
  justify-content: stretch !important;
  min-height: clamp(392px, 31vw, 450px) !important;
  overflow: hidden;
  padding: 0 !important;
  position: relative;
  text-align: center !important;
  scroll-snap-align: start;
}

.yg-about-process-card::before {
  background: rgba(12, 19, 29, .64);
  content: "";
  inset: 0;
  mix-blend-mode: normal;
  position: absolute;
  z-index: 1;
}

.yg-about-process-card:nth-child(n)::before { background: rgba(12, 19, 29, .64); }

.yg-about-process-card__media {
  filter: brightness(.78) contrast(.98) saturate(.82);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: filter .24s ease, transform .24s ease;
  width: 100%;
}

.yg-about-process-card:hover .yg-about-process-card__media {
  filter: brightness(.86) contrast(1) saturate(.92);
  transform: scale(1.035);
}

.yg-about-process-card__content {
  align-content: center;
  color: #fff;
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 100%;
  padding: 28px 16px;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .52);
  z-index: 2;
}

.yg-about-process-card__step {
  color: rgba(255, 255, 255, .9);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .06em;
  line-height: 1.2;
}

.yg-about-principles .yg-about-process-card h3 {
  color: #fff;
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.18;
  margin: 0;
}

.yg-about-principles .yg-about-process-card p {
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 18ch;
}

.yg-about-process-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
}

.yg-about-process-card__tags li {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  color: #fff;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 9px;
}

.yg-about-principles article,
.yg-about-culture article {
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 184, 174, .56);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(113, 68, 59, .07);
  min-height: 188px;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.yg-about-culture article {
  min-height: 260px !important;
  scroll-snap-align: start;
}

.yg-about-culture article {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  text-align: left;
}

.yg-about-culture figure {
  aspect-ratio: 1.36;
  background: #fff2ee;
  margin: 0;
  overflow: hidden;
}

.yg-about-culture article > h3,
.yg-about-culture article > p {
  margin-left: 24px;
  margin-right: 24px;
}

.yg-about-culture article > h3 { margin-top: 24px; }
.yg-about-culture article > p { margin-bottom: 26px; }

/* About page alignment: the hero, anchor navigation and centered value blocks share one visual axis. */
.yg-about-hero__inner {
  justify-content: center;
  text-align: center;
}

.yg-about-tabs .yg-about-container,
.yg-about-principles__grid,
.yg-about-culture__grid {
  margin-inline: auto;
  max-width: var(--yg-about-shell);
}

.yg-about-principles .yg-about-heading,
.yg-about-culture .yg-about-heading {
  margin-bottom: clamp(30px, 3vw, 42px);
}

.yg-about-principles article,
.yg-about-culture article {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.yg-about-principles article p,
.yg-about-culture article p {
  max-width: 28ch;
}

.yg-about-principles h3,
.yg-about-culture h3,
.yg-about-history h3 {
  color: var(--yg-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.28;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.yg-about-history__track {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-auto-columns: clamp(280px, 29vw, 370px);
  grid-auto-flow: column;
  grid-template-columns: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 8px 4px 20px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 100, 102, .58) rgba(255, 232, 226, .75);
  scrollbar-width: thin;
}

.yg-about-history__track::-webkit-scrollbar { height: 9px; }
.yg-about-history__track::-webkit-scrollbar-track { background: rgba(255, 232, 226, .75); border-radius: 999px; }
.yg-about-history__track::-webkit-scrollbar-thumb { background: rgba(255, 100, 102, .58); border: 2px solid rgba(255, 248, 246, .96); border-radius: 999px; }
.yg-about-history__track:focus-visible { outline: 3px solid rgba(255, 100, 102, .55); outline-offset: 6px; }

.yg-about-history article {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 184, 174, .5);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(113, 68, 59, .08);
  overflow: hidden;
  scroll-snap-align: start;
}

.yg-about-history figure {
  aspect-ratio: 1.36;
  background: #fff2ee;
  margin: 0;
  overflow: hidden;
}

.yg-about-history article > div {
  padding: 24px 24px 26px;
}

.yg-about-history strong {
  color: var(--yg-coral);
  display: block;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
}

@media (max-width: 1080px) {
  .yg-about-process-cards {
    grid-auto-columns: minmax(280px, 38vw);
  }

  .yg-about-history__track {
    grid-auto-columns: minmax(280px, 42vw);
  }

  .yg-about-culture__grid { grid-auto-columns: minmax(280px, 42vw); }
}

@media (max-width: 860px) {
  .yg-about-process-cards {
    grid-auto-columns: minmax(270px, 54vw);
  }

  .yg-about-intro > .yg-about-container:first-child {
    grid-template-columns: 1fr;
  }

  .yg-about-intro__media {
    min-height: 430px;
  }

  .yg-about-principles__grid,
  .yg-about-culture__grid {
    grid-template-columns: 1fr;
  }

  .yg-about-culture__grid { grid-template-columns: none; grid-auto-columns: minmax(270px, 58vw); }
}

@media (max-width: 720px) {
  .yg-about-container {
    width: calc(100% - 30px);
  }

  .yg-about-hero {
    background: var(--yg-about-hero-image) 52% 12%/cover no-repeat;
    min-height: 370px;
  }

  .yg-about-hero__inner {
    padding-inline: 24px;
  }

  .yg-about-tabs .yg-about-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .yg-about-tabs a {
    font-size: 14px;
    min-height: 48px;
  }

  .yg-about-section {
    padding: 54px 0;
    scroll-margin-top: 24px;
  }

  .yg-about-heading {
    margin-bottom: 26px;
  }

  .yg-about-heading h2,
  .yg-about-intro__copy h2 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.22;
  }

  .yg-about-heading p,
  .yg-about-intro__copy p,
  .yg-about-principles p,
  .yg-about-history p,
  .yg-about-culture p {
    font-size: 14px;
    line-height: 1.78;
  }

  .yg-about-intro__media {
    min-height: 0;
  }

  .yg-about-intro__main {
    width: 100%;
  }

  .yg-about-intro__side {
    margin-top: 14px;
    position: static;
    width: 78%;
  }

  .yg-about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .yg-about-stats article {
    padding: 0 10px;
  }

  .yg-about-stats article:nth-child(2)::after {
    display: none;
  }

  .yg-about-history__track {
    grid-auto-columns: minmax(270px, 82vw);
  }

  .yg-about-principles article,
  .yg-about-culture article {
    min-height: 0;
    padding: 24px 22px;
  }

  .yg-about-culture__grid { grid-auto-columns: minmax(260px, 82vw); }
  .yg-about-culture article { min-height: 250px !important; }
  .yg-about-culture article > h3,
  .yg-about-culture article > p { margin-left: 22px; margin-right: 22px; }

  .yg-about-process-cards {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .yg-about-process-card {
    min-height: 340px !important;
  }
}

/* Final narrow-screen containment for the national-campus archive. */
@media (max-width: 640px) {
  body.post-type-archive-branch { overflow-x: hidden; }
  body.post-type-archive-branch .yg-ref-site-header .header-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 72px; padding-inline: 16px; width: 100%; }
  body.post-type-archive-branch .yg-ref-site-header .brand-cluster { min-width: 0; }
  body.post-type-archive-branch .yg-ref-site-header .brand-cluster img { height: auto; max-width: 154px; width: 100%; }
  body.post-type-archive-branch .yg-ref-site-header .hotline-chip--mobile,
  body.post-type-archive-branch .yg-ref-site-header .header-tools { display: none !important; }
  body.post-type-archive-branch .yg-ref-site-header .header-toggle { align-items: center; display: inline-flex !important; justify-content: center; }
  body.post-type-archive-branch .yg-ref-site-header .yg-ref-primary-nav { display: none; left: 0; top: 100%; width: 100%; }
  body.post-type-archive-branch .yg-ref-site-header.is-menu-open .yg-ref-primary-nav { display: block; }
  body.post-type-archive-branch .yg-branch-map-layout.branch-section { display: grid; grid-template-columns: minmax(0, 1fr) !important; min-width: 0; width: 100%; }
  body.post-type-archive-branch .yg-branch-map-layout.branch-section,
  body.post-type-archive-branch .yg-branch-map-panel,
  body.post-type-archive-branch .yg-branch-selector { max-width: 100%; }
  body.post-type-archive-branch .yg-branch-heading { max-width: 100%; padding-inline: 4px; }
  body.post-type-archive-branch .yg-branch-heading h2 { font-size: 27px; letter-spacing: -.04em; overflow-wrap: anywhere; }
}

/* Terminal page-hero scale override: About, Courses, Cases, Campuses and News. */
:root {
  --yg-page-hero-height: clamp(336px, 28vw, 420px);
  --yg-page-hero-height-mobile: 258px;
}

.yg-curriculum-hero,
.yg-about-hero,
.site-main--case-compact .cases-hero--compact,
.site-main--gutenberg-case-studies .page-banner--case_study,
.site-main--gutenberg-news .page-banner--news,
.site-main--news-rebuilt .yg-news-intro .page-banner--news,
.yg-branch-hero--with-image,
.yg-news-banner-region {
  min-height: var(--yg-page-hero-height) !important;
}

.yg-about-hero {
  background-position: center center !important;
}

.yg-news-banner-region {
  align-items: stretch;
  display: flex;
  padding: 0 !important;
}

.yg-news-banner,
.site-main--news-rebuilt .yg-news-banner {
  min-height: var(--yg-page-hero-height) !important;
  width: min(1290px, calc(100% - 44px));
}

.yg-news-banner__inner {
  align-content: center;
  display: grid;
  min-height: inherit;
}

.site-main--gutenberg-news .page-banner--news,
.site-main--news-rebuilt .yg-news-intro .page-banner--news {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.yg-branch-hero__media {
  aspect-ratio: auto;
  height: var(--yg-page-hero-height);
  width: 100%;
}

@media (max-width: 720px) {
  .yg-curriculum-hero,
  .yg-about-hero,
  .site-main--case-compact .cases-hero--compact,
  .site-main--gutenberg-case-studies .page-banner--case_study,
  .site-main--gutenberg-news .page-banner--news,
  .site-main--news-rebuilt .yg-news-intro .page-banner--news,
  .yg-branch-hero--with-image,
  .yg-news-banner-region {
    min-height: var(--yg-page-hero-height-mobile) !important;
  }

  .yg-about-hero {
    background-position: 52% center !important;
  }

  .yg-branch-hero__media {
    height: var(--yg-page-hero-height-mobile);
  }

  .yg-news-banner,
  .site-main--news-rebuilt .yg-news-banner {
    min-height: var(--yg-page-hero-height-mobile) !important;
    width: min(100% - 30px, 1290px);
  }
}

/* Final /news/ hero alignment: banner and tabs fill like the course archive. */
body.blog .site-main--news-rebuilt,
body.page-id-11 .site-main--news-rebuilt {
  --yg-news-module-shell: min(1180px, calc(100vw - 88px));
  --yg-news-hero-shell: calc(100vw - 12px);
}

body.blog .site-main--news-rebuilt .yg-news-banner-region,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner-region {
  display: block;
  min-height: 0 !important;
  padding: 0 !important;
}

body.blog .site-main--news-rebuilt .yg-news-banner-region > .site-container,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner-region > .site-container {
  margin-inline: auto;
  max-width: none;
  width: var(--yg-news-hero-shell) !important;
}

body.blog .site-main--news-rebuilt .yg-news-article-section > .site-container,
body.page-id-11 .site-main--news-rebuilt .yg-news-article-section > .site-container {
  margin-inline: auto;
  max-width: none;
  width: 100% !important;
}

body.blog .site-main--news-rebuilt .yg-news-banner,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner {
  border-radius: 0;
  min-height: var(--yg-page-hero-height) !important;
  width: 100% !important;
}

body.blog .site-main--news-rebuilt .yg-news-banner__inner,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner__inner {
  min-height: var(--yg-page-hero-height);
  padding: 32px 32px 42px;
}

body.blog .site-main--news-rebuilt .yg-news-article-section,
body.page-id-11 .site-main--news-rebuilt .yg-news-article-section {
  padding-top: 0;
}

body.blog .site-main--news-rebuilt .yg-news-filter-bar,
body.page-id-11 .site-main--news-rebuilt .yg-news-filter-bar {
  border-radius: 0 !important;
  box-shadow: 0 14px 30px rgba(105, 65, 58, .08) !important;
  margin: 0 auto 34px !important;
  max-width: none !important;
  min-height: 72px !important;
  width: var(--yg-news-hero-shell) !important;
}

body.blog .site-main--news-rebuilt .yg-news-filter-bar button,
body.page-id-11 .site-main--news-rebuilt .yg-news-filter-bar button {
  font-size: 16px !important;
  min-height: 72px !important;
}

body.blog .site-main--news-rebuilt .yg-news-article-grid,
body.page-id-11 .site-main--news-rebuilt .yg-news-article-grid {
  margin-inline: auto;
  width: var(--yg-news-module-shell);
}

@media (max-width: 760px) {
  body.blog .site-main--news-rebuilt,
  body.page-id-11 .site-main--news-rebuilt {
    --yg-news-module-shell: calc(100vw - 32px);
    --yg-news-hero-shell: 100vw;
  }

  body.blog .site-main--news-rebuilt .yg-news-banner-region,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner-region {
    padding-top: 0 !important;
  }

  body.blog .site-main--news-rebuilt .yg-news-banner,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner {
    min-height: var(--yg-page-hero-height-mobile) !important;
  }

  body.blog .site-main--news-rebuilt .yg-news-banner__inner,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner__inner {
    min-height: var(--yg-page-hero-height-mobile);
    padding: 20px 18px 34px;
  }

  body.blog .site-main--news-rebuilt .yg-news-filter-bar,
  body.page-id-11 .site-main--news-rebuilt .yg-news-filter-bar {
    margin: 0 auto 22px !important;
    min-height: 52px !important;
    width: 100vw !important;
  }

  body.blog .site-main--news-rebuilt .yg-news-filter-bar button,
  body.page-id-11 .site-main--news-rebuilt .yg-news-filter-bar button {
    font-size: 12px !important;
    min-height: 52px !important;
  }
}

/* News child category archives reuse the /news/ visual system. */
body.category .site-main--news-category {
  --yg-news-module-shell: min(1180px, calc(100vw - 88px));
  --yg-news-hero-shell: calc(100vw - 12px);
  --yg-news-category-hero-height: clamp(230px, 20vw, 320px);
}

body.category .site-main--news-category .yg-news-banner-region {
  display: block;
  min-height: 0 !important;
  padding: 0 !important;
}

body.category .site-main--news-category .yg-news-banner-region > .site-container {
  margin-inline: auto;
  max-width: none;
  width: var(--yg-news-hero-shell) !important;
}

body.category .site-main--news-category .yg-news-article-section > .site-container {
  margin-inline: auto;
  max-width: none;
  width: 100% !important;
}

body.category .site-main--news-category .yg-news-banner {
  border-radius: 0;
  min-height: var(--yg-news-category-hero-height) !important;
  width: 100% !important;
}

body.category .site-main--news-category .yg-news-banner__inner {
  align-content: center;
  display: grid;
  justify-items: center;
  min-height: var(--yg-news-category-hero-height);
  padding: 26px 32px 38px;
  text-align: center;
}

body.category .site-main--news-category .yg-news-banner h1 {
  color: #fff;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
}

body.category .site-main--news-category .yg-news-filter-bar {
  border-radius: 0 !important;
  box-shadow: 0 14px 30px rgba(105, 65, 58, .08) !important;
  margin: 0 auto 34px !important;
  max-width: none !important;
  min-height: 72px !important;
  width: var(--yg-news-hero-shell) !important;
}

body.category .site-main--news-category .yg-news-filter-bar a {
  align-items: center;
  background: transparent;
  border: 0;
  color: #4f5d70;
  display: flex;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  min-height: 72px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

body.category .site-main--news-category .yg-news-filter-bar a + a {
  border-left: 1px solid rgba(229, 202, 196, .68);
}

body.category .site-main--news-category .yg-news-filter-bar a:hover,
body.category .site-main--news-category .yg-news-filter-bar a:focus-visible,
body.category .site-main--news-category .yg-news-filter-bar a.is-active {
  background: #fff4f2;
  color: var(--yg-news-coral);
  outline: none;
}

body.category .site-main--news-category .yg-news-filter-bar a:focus-visible {
  outline: 3px solid rgba(241, 111, 104, .5);
  outline-offset: -3px;
}

body.category .site-main--news-category .yg-news-article-grid {
  margin-inline: auto;
  width: var(--yg-news-module-shell);
}

body.category .site-main--news-category .yg-news-article-card h2 {
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.36;
  margin: 8px 0 7px;
}

body.category .site-main--news-category .yg-news-article-card h2 a {
  color: var(--yg-news-ink);
  text-decoration: none;
}

@media (max-width: 760px) {
  body.category .site-main--news-category {
    --yg-news-module-shell: calc(100vw - 32px);
    --yg-news-hero-shell: 100vw;
    --yg-news-category-hero-height: 258px;
  }

  body.category .site-main--news-category .yg-news-banner {
    min-height: var(--yg-news-category-hero-height) !important;
  }

  body.category .site-main--news-category .yg-news-banner__inner {
    min-height: var(--yg-news-category-hero-height);
    padding: 20px 18px 34px;
  }

  body.category .site-main--news-category .yg-news-banner h1 {
    font-size: 34px;
  }

  body.category .site-main--news-category .yg-news-filter-bar {
    margin: 0 auto 22px !important;
    min-height: 52px !important;
    width: 100vw !important;
  }

  body.category .site-main--news-category .yg-news-filter-bar a {
    font-size: 12px;
    min-height: 52px;
    padding: 8px 6px;
  }
}

/* WordPress posts, cases and courses share one calm, long-form reading rhythm. */
.yg-reading { background:#fffdfc; color:var(--yg-ink); }
.yg-reading__header { background:#fff6f3; border-bottom:1px solid rgba(211,104,94,.12); padding:clamp(54px,7vw,108px) 0 clamp(44px,5vw,76px); }
.yg-reading__heading { max-width:920px; }
.yg-reading__back { color:var(--yg-coral-deep); display:inline-flex; font-size:14px; font-weight:700; margin-bottom:26px; text-decoration:none; }
.yg-reading__back:hover, .yg-reading__back:focus-visible { color:#c9454e; outline:none; text-decoration:underline; text-underline-offset:4px; }
.yg-reading__meta { color:var(--yg-coral-deep); font-size:15px; font-weight:700; line-height:1.5; margin:0 0 14px; }
.yg-reading__meta a { color:inherit; text-decoration:none; }
.yg-reading__heading h1 { color:var(--yg-ink); font-family:'Microsoft YaHei UI','PingFang SC',sans-serif; font-size:clamp(34px,4.2vw,58px); font-weight:800; letter-spacing:-.035em; line-height:1.14; margin:0; max-width:15em; }
.yg-reading__summary { color:#566278; font-size:clamp(16px,1.5vw,19px); line-height:1.85; margin:22px 0 0; max-width:42em; }
.yg-reading__article { padding-bottom:clamp(76px,10vw,142px); padding-top:clamp(42px,6vw,88px); }
.yg-reading__media { aspect-ratio:16 / 8.5; background:#f4e7e1; border-radius:20px; margin:0 auto clamp(42px,5vw,68px); max-width:1080px; overflow:hidden; }
.yg-reading__media iframe, .yg-reading__media video, .yg-reading__media img { display:block; height:100%; object-fit:cover; width:100%; }
.yg-reading__media--video iframe { border:0; }
.yg-reading__body { color:#475773; font-family:'Microsoft YaHei UI','PingFang SC',sans-serif; font-size:clamp(16px,1.35vw,18px); line-height:2; margin:0 auto; max-width:760px; }
.yg-reading__body > :first-child { margin-top:0; }
.yg-reading__body > :last-child { margin-bottom:0; }
.yg-reading__body h2, .yg-reading__course-section h2 { color:var(--yg-ink); font-family:'Microsoft YaHei UI','PingFang SC',sans-serif; font-size:clamp(25px,2.8vw,36px); font-weight:800; letter-spacing:-.02em; line-height:1.25; margin:clamp(46px,6vw,72px) 0 16px; }
.yg-reading__body h3 { color:var(--yg-ink); font-size:clamp(20px,2.1vw,26px); line-height:1.35; margin:38px 0 12px; }
.yg-reading__body p, .yg-reading__body ul, .yg-reading__body ol { margin:0 0 22px; }
.yg-reading__body ul, .yg-reading__body ol, .yg-reading__course-section ul, .yg-reading__course-section ol { padding-left:1.45em; }
.yg-reading__body li + li, .yg-reading__course-section li + li { margin-top:9px; }
.yg-reading__body .wp-block-image, .yg-reading__body figure { margin:clamp(34px,5vw,58px) 0; }
.yg-reading__body .wp-block-image img, .yg-reading__body figure img { border-radius:16px; height:auto; width:100%; }
.yg-reading__body figcaption { color:#778197; font-size:13px; line-height:1.6; margin-top:9px; text-align:center; }
.yg-reading__body blockquote { border-left:2px solid var(--yg-coral); color:#3d4d68; font-size:1.12em; font-weight:700; margin:38px 0; padding:8px 0 8px 24px; }
.yg-reading__course-sections { display:grid; gap:0; margin:clamp(48px,7vw,84px) auto 0; max-width:760px; }
.yg-reading__course-section { border-top:1px solid rgba(40,55,77,.14); color:#475773; font-size:16px; line-height:1.9; padding:30px 0; }
.yg-reading__course-section h2 { font-size:clamp(23px,2.5vw,31px); margin:0 0 16px; }
.yg-reading__course-section ul, .yg-reading__course-section ol { margin:0; }
.yg-reading__result, .yg-reading__quote { color:#475773; line-height:1.9; margin:clamp(42px,6vw,70px) auto 0; max-width:760px; }
.yg-reading__result { border-top:1px solid rgba(40,55,77,.14); font-size:17px; margin-bottom:0; padding-top:28px; }
.yg-reading__quote { border-left:2px solid var(--yg-coral); color:#33435d; font-size:clamp(20px,2.2vw,28px); font-weight:700; line-height:1.55; padding:6px 0 6px 26px; }
.yg-reading__quote blockquote { margin:0; }
.yg-reading__action { margin:42px auto 0; max-width:760px; }

/* The category explanatory article uses the same vertical reading order. */
.yg-curriculum-inline-article { display:block; }
.yg-curriculum-inline-article__media { aspect-ratio:16 / 8.5; margin:0 auto clamp(42px,5vw,68px); max-width:1080px; }
.yg-curriculum-inline-article__content { font-size:clamp(16px,1.35vw,18px); line-height:2; margin:0 auto; max-width:760px; }
.yg-curriculum-inline-article__content h3 { font-size:clamp(28px,3.2vw,40px); margin:0 0 18px; }
.yg-curriculum-inline-article__content figure { margin:clamp(34px,5vw,58px) 0; }
.yg-curriculum-inline-article__content figure img { border-radius:16px; height:auto; width:100%; }
.yg-curriculum-detail .yg-curriculum-story { display:block; }
.yg-curriculum-detail .yg-curriculum-story__video { aspect-ratio:16 / 8.5; margin:0 auto clamp(42px,5vw,68px); max-width:1080px; }
.yg-curriculum-detail .yg-curriculum-story__article { color:#475773; font-size:clamp(16px,1.35vw,18px); line-height:2; margin:0 auto; max-width:760px; padding:0; }
.yg-curriculum-detail .yg-curriculum-story__article h2 { margin:0 0 18px; }
.yg-curriculum-detail .yg-curriculum-story__article p { margin:0 0 22px; }

@media (max-width:680px) {
  .yg-reading__header { padding:46px 0 40px; }
  .yg-reading__heading h1 { font-size:34px; letter-spacing:-.025em; }
  .yg-reading__article { padding-bottom:76px; padding-top:34px; }
  .yg-reading__media, .yg-curriculum-inline-article__media { aspect-ratio:1.45 / 1; border-radius:14px; margin-bottom:36px; }
  .yg-reading__body, .yg-curriculum-inline-article__content { font-size:16px; line-height:1.9; }
  .yg-reading__body h2 { margin-top:48px; }
  .yg-reading__quote { font-size:21px; padding-left:20px; }
}

/* Compact curriculum category panels: image and editable explanation share one card. */
.yg-curriculum-categories {
  padding:clamp(38px,5.5vw,76px) 0 clamp(64px,8vw,108px);
}

.yg-curriculum-inline-article {
  background:#fff;
  border:1px solid rgba(39,54,78,.10);
  border-radius:20px;
  box-shadow:0 18px 42px rgba(45,54,71,.08);
  display:grid;
  gap:0;
  grid-template-columns:1fr;
  margin:0 auto;
  max-width:980px;
  overflow:hidden;
}

.yg-curriculum-inline-article__media {
  aspect-ratio:auto;
  border-radius:0;
  height:clamp(230px,25vw,300px);
  margin:0;
  max-width:none;
  min-height:0;
  width:100%;
}

.yg-curriculum-inline-article__content {
  color:#566278;
  font-size:16px;
  line-height:1.85;
  margin:0;
  max-width:none;
  padding:clamp(28px,3.6vw,48px);
}

.yg-curriculum-inline-article__content h3 {
  color:var(--yg-course-ink);
  font-size:clamp(25px,2.6vw,35px);
  line-height:1.2;
  margin:0 0 16px;
}

.yg-curriculum-inline-article__content > :last-child {
  margin-bottom:0;
}

.yg-curriculum-filter-card {
  min-height:0;
}

.yg-curriculum-filter-card__media {
  aspect-ratio:16 / 8.5;
}

@media (max-width:720px) {
  .yg-curriculum-inline-article__media {
    height:210px;
  }

  .yg-curriculum-inline-article__content {
    font-size:16px;
    padding:24px 22px 28px;
  }
}

/* City keyword landing pages reuse the course long image-and-article rhythm. */
.yg-city-keyword__hero {
  background:#fff1ef;
}

.yg-city-keyword__meta {
  color:var(--yg-course-coral) !important;
  font-family:'Microsoft YaHei UI','PingFang SC',sans-serif;
  font-size:15px !important;
  font-weight:800;
  letter-spacing:0;
  line-height:1.5 !important;
  margin:0 0 14px !important;
}

.yg-city-keyword__article {
  max-width:980px;
}

.yg-city-keyword__media img {
  display:block;
  height:100%;
  object-fit:cover;
  width:100%;
}

.yg-city-keyword__article .yg-curriculum-inline-article__content {
  min-height:220px;
}

.yg-city-keyword__article .yg-curriculum-inline-article__content > :first-child {
  margin-top:0;
}

.yg-city-keyword__article .yg-curriculum-inline-article__content h2 {
  color:var(--yg-course-ink);
  font-family:'Microsoft YaHei UI','PingFang SC',sans-serif;
  font-size:clamp(25px,2.6vw,35px);
  font-weight:800;
  letter-spacing:0;
  line-height:1.25;
  margin:0 0 16px;
}

.yg-city-keyword__article .yg-curriculum-inline-article__content h2:not(:first-child) {
  margin-top:clamp(36px,5vw,58px);
}

.yg-city-keyword__article .yg-curriculum-inline-article__content h3 {
  font-size:clamp(21px,2.2vw,28px);
  margin:32px 0 12px;
}

.yg-city-keyword__article .yg-curriculum-inline-article__content p,
.yg-city-keyword__article .yg-curriculum-inline-article__content ul,
.yg-city-keyword__article .yg-curriculum-inline-article__content ol {
  margin:0 0 20px;
}

.yg-city-keyword__article .yg-curriculum-inline-article__content ul,
.yg-city-keyword__article .yg-curriculum-inline-article__content ol {
  padding-left:1.45em;
}

/* Teacher profile detail pages use the same standalone long image-and-article pattern. */
.yg-reading--team-member {
  background:#fff9f7;
}

.yg-reading--team-member .yg-reading__article {
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  max-width:none;
  padding:0;
}

.yg-team-member-reading__card {
  max-width:980px;
}

.yg-team-member-reading__media {
  background:#ffe5e1;
}

.yg-team-member-reading__media img {
  display:block;
  height:100%;
  object-fit:cover;
  object-position:center top;
  width:100%;
}

.yg-team-member-reading__placeholder {
  align-items:center;
  background:linear-gradient(135deg, #ff7c78 0%, #ffa66f 100%);
  color:#fff;
  display:flex;
  font-family:'Microsoft YaHei UI','PingFang SC',sans-serif;
  font-size:clamp(42px, 7vw, 72px);
  font-weight:800;
  height:100%;
  justify-content:center;
  width:100%;
}

.yg-team-member-reading__meta {
  color:var(--yg-course-coral);
  font-size:15px;
  font-weight:800;
  line-height:1.5;
  margin:0 0 14px;
}

.yg-team-member-reading__content h1 {
  color:var(--yg-course-ink);
  font-family:'Microsoft YaHei UI','PingFang SC',sans-serif;
  font-size:clamp(34px, 4vw, 56px);
  font-weight:800;
  letter-spacing:0;
  line-height:1.18;
  margin:0 0 18px;
}

.yg-team-member-reading__section {
  border-top:1px solid rgba(39,54,78,.12);
  margin-top:clamp(34px, 5vw, 54px);
  padding-top:26px;
}

.yg-team-member-reading__section h2 {
  color:var(--yg-course-ink);
  font-family:'Microsoft YaHei UI','PingFang SC',sans-serif;
  font-size:clamp(23px, 2.4vw, 31px);
  font-weight:800;
  line-height:1.25;
  margin:0 0 16px;
}

.yg-team-member-reading__section ul {
  margin:0;
  padding-left:1.45em;
}

.yg-team-member-reading__section li + li {
  margin-top:9px;
}

.yg-team-member-reading__section a {
  color:var(--yg-course-coral);
  font-weight:800;
  text-decoration:none;
}

.yg-team-member-reading__section a:hover,
.yg-team-member-reading__section a:focus-visible {
  color:#dd4e56;
  text-decoration:underline;
  text-underline-offset:4px;
}

/* National stores hero final proportion: match the site's standard page-banner scale. */
body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image {
  height: var(--yg-page-hero-height);
  max-height: 420px;
  min-height: var(--yg-page-hero-height) !important;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero__media {
  height: 100%;
}

@media (max-width: 720px) {
  body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image {
    height: var(--yg-page-hero-height-mobile);
    max-height: none;
    min-height: var(--yg-page-hero-height-mobile) !important;
  }
}

/* Every card detail keeps its image and editable reading content in one panel. */
.yg-reading {
  padding:clamp(36px,5vw,72px) 0 clamp(64px,8vw,116px);
}

.yg-reading__article {
  background:#fff;
  border:1px solid rgba(39,54,78,.10);
  border-radius:22px;
  box-shadow:0 18px 42px rgba(45,54,71,.08);
  margin:0 auto;
  max-width:1080px;
  overflow:hidden;
  padding:0 0 clamp(46px,5vw,76px);
}

.yg-reading__media {
  aspect-ratio:auto;
  border-radius:0;
  height:clamp(260px,28vw,390px);
  margin:0;
  max-width:none;
  width:100%;
}

.yg-reading__body,
.yg-reading__course-sections,
.yg-reading__result,
.yg-reading__quote,
.yg-reading__action {
  box-sizing:border-box;
  width:min(calc(100% - 80px),760px);
}

.yg-reading__body {
  margin:0 auto;
  max-width:none;
  padding-top:clamp(36px,5vw,60px);
}

.yg-reading__body h1 {
  color:var(--yg-ink);
  font-family:'Microsoft YaHei UI','PingFang SC',sans-serif;
  font-size:clamp(32px,4vw,54px);
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1.16;
  margin:0;
  max-width:15em;
}

.yg-reading__body .yg-reading__meta {
  margin-bottom:14px;
}

.yg-reading__body .yg-reading__summary {
  margin-top:22px;
}

.yg-reading__body .yg-reading__back {
  margin-bottom:22px;
}

.yg-reading__course-sections,
.yg-reading__result,
.yg-reading__quote,
.yg-reading__action {
  max-width:none;
}

@media (max-width:680px) {
  .yg-reading {
    padding:28px 0 54px;
  }

  .yg-reading__article {
    border-radius:16px;
    padding-bottom:42px;
    width:calc(100% - 32px);
  }

  .yg-reading__media {
    aspect-ratio:auto;
    border-radius:0;
    height:210px;
    margin:0;
  }

  .yg-reading__body,
  .yg-reading__course-sections,
  .yg-reading__result,
  .yg-reading__quote,
  .yg-reading__action {
    width:calc(100% - 44px);
  }

  .yg-reading__body {
    padding-top:30px;
  }

  .yg-reading__body h1 {
    font-size:32px;
    letter-spacing:-.025em;
  }
}

.yg-reading--why-eryu {
  background: linear-gradient(180deg, #fffaf8 0, #fffdfc 54%, #fff7f3 100%);
}

.yg-reading--why-eryu .yg-reading__article {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: min(1640px, calc(100% - 48px));
  overflow: visible;
  padding-top: clamp(40px, 5.4vw, 78px);
}

.yg-why-eryu__header {
  margin: 0 auto clamp(28px, 3.8vw, 48px);
  max-width: 1040px;
  text-align: center;
}

.yg-why-eryu__header .yg-reading__meta {
  color: var(--yg-coral-deep);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.yg-why-eryu__header h1 {
  color: var(--yg-ink);
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.yg-why-eryu__header .yg-reading__summary {
  color: var(--yg-muted);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.7;
  margin: 20px auto 0;
  max-width: 880px;
}

.yg-why-eryu__card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 218, 211, .86);
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(126, 75, 66, .08);
  max-width: min(1540px, 100%);
  padding: clamp(20px, 3.2vw, 42px);
  width: 100%;
}

.yg-why-eryu__media {
  background: #ffe8e3;
  width: 100%;
}

.yg-reading--why-eryu .yg-why-eryu__media img {
  width: 100%;
}

.yg-why-eryu__content {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}

.yg-why-eryu__content h2 {
  color: var(--yg-ink);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.28;
  margin: clamp(40px, 5vw, 62px) 0 14px;
}

.yg-why-eryu__content .yg-reading__summary {
  margin: 0 0 30px;
}

.yg-why-eryu__reason {
  border-top: 1px solid rgba(255, 184, 174, .38);
  padding-top: 4px;
}

@media (max-width: 720px) {
  .yg-reading--why-eryu .yg-reading__article {
    max-width: min(100% - 28px, 1640px);
    padding-top: 32px;
  }

  .yg-why-eryu__header {
    margin-bottom: 24px;
    text-align: left;
  }

  .yg-why-eryu__header h1 {
    font-size: 36px;
  }

  .yg-why-eryu__header .yg-reading__summary {
    font-size: 17px;
    margin-top: 14px;
  }

  .yg-why-eryu__card {
    border-radius: 18px;
    padding: 16px;
  }
}

/* Final unified taxonomy-tab treatment for News and Graduation Cases. */
body.blog .yg-news-filter-bar,
body.page-id-11 .yg-news-filter-bar,
body.category .yg-news-filter-bar {
  background: rgba(255, 253, 252, .96);
  border: 0;
  border-bottom: 1px solid rgba(255, 184, 174, .46);
  border-radius: 0;
  box-shadow: 0 16px 32px rgba(105, 65, 58, .07);
}

body.blog .yg-news-filter-bar :is(button, a),
body.page-id-11 .yg-news-filter-bar :is(button, a),
body.category .yg-news-filter-bar :is(button, a),
body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #3b4355;
  font-family: 'Microsoft YaHei UI', 'PingFang SC', sans-serif;
  font-size: 15px;
  font-weight: 650;
}

body.blog .yg-news-filter-bar :is(button, a) + :is(button, a),
body.page-id-11 .yg-news-filter-bar :is(button, a) + :is(button, a),
body.category .yg-news-filter-bar :is(button, a) + :is(button, a) {
  border-left: 0;
}

body.blog .yg-news-filter-bar :is(button, a):hover,
body.blog .yg-news-filter-bar :is(button, a):focus-visible,
body.blog .yg-news-filter-bar :is(button, a).is-active,
body.blog .yg-news-filter-bar :is(button, a)[aria-current="page"],
body.page-id-11 .yg-news-filter-bar :is(button, a):hover,
body.page-id-11 .yg-news-filter-bar :is(button, a):focus-visible,
body.page-id-11 .yg-news-filter-bar :is(button, a).is-active,
body.page-id-11 .yg-news-filter-bar :is(button, a)[aria-current="page"],
body.category .yg-news-filter-bar :is(button, a):hover,
body.category .yg-news-filter-bar :is(button, a):focus-visible,
body.category .yg-news-filter-bar :is(button, a).is-active,
body.category .yg-news-filter-bar :is(button, a)[aria-current="page"],
body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button:hover,
body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button:focus-visible,
body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button.is-active {
  background: #fff7f4;
  border-bottom-color: var(--yg-coral);
  color: var(--yg-coral-deep);
  outline: none;
}

body.blog .yg-news-filter-bar button.is-active::after,
body.page-id-11 .yg-news-filter-bar button.is-active::after {
  content: none;
}

@media (max-width:620px) {
  body.blog .yg-news-filter-bar :is(button, a),
  body.page-id-11 .yg-news-filter-bar :is(button, a),
  body.category .yg-news-filter-bar :is(button, a),
  body.post-type-archive-case_study .site-main--case-compact .cases-filter--hero .cases-filter__button {
    font-size:12px;
  }
}

/* Shared internal-page hero system: campuses, news, about, courses and team.
   Content and imagery remain page-specific; only the presentation scale is shared. */
:root {
  --yg-unified-hero-height: clamp(336px, 28vw, 420px);
  --yg-unified-hero-height-mobile: 258px;
  --yg-unified-hero-title-size: clamp(42px, 4vw, 56px);
  --yg-unified-hero-title-size-mobile: clamp(32px, 9vw, 40px);
  --yg-unified-hero-subtitle-size: 14px;
}

.yg-about-hero,
.yg-curriculum-hero,
.yg-team-hero,
body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image,
body.blog .site-main--news-rebuilt .yg-news-banner,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner,
body.category .site-main--news-category .yg-news-banner {
  height: var(--yg-unified-hero-height);
  max-height: none;
  min-height: var(--yg-unified-hero-height) !important;
}

.yg-about-hero,
.yg-curriculum-hero,
.yg-team-hero {
  background-size: cover;
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero__media,
body.blog .site-main--news-rebuilt .yg-news-banner__inner,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner__inner,
body.category .site-main--news-category .yg-news-banner__inner {
  height: 100%;
  min-height: var(--yg-unified-hero-height);
}

body.post-type-archive-branch .yg-branch-page .yg-branch-hero__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.yg-about-hero h1,
.yg-curriculum-hero h1,
.yg-team-hero h1,
body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image h1,
body.blog .site-main--news-rebuilt .yg-news-banner h2,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner h2,
body.category .site-main--news-category .yg-news-banner h1 {
  font-size: var(--yg-unified-hero-title-size) !important;
  line-height: 1.08;
}

.yg-about-hero span,
.yg-curriculum-hero h1 span,
.yg-team-hero .yg-team-hero__eyebrow,
body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image p,
body.blog .site-main--news-rebuilt .yg-news-banner__english,
body.page-id-11 .site-main--news-rebuilt .yg-news-banner__english,
body.category .site-main--news-category .yg-news-banner__english {
  font-size: var(--yg-unified-hero-subtitle-size) !important;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .yg-about-hero,
  .yg-curriculum-hero,
  .yg-team-hero,
  body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image,
  body.blog .site-main--news-rebuilt .yg-news-banner,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner,
  body.category .site-main--news-category .yg-news-banner {
    height: var(--yg-unified-hero-height-mobile);
    min-height: var(--yg-unified-hero-height-mobile) !important;
  }

  body.post-type-archive-branch .yg-branch-page .yg-branch-hero__media,
  body.blog .site-main--news-rebuilt .yg-news-banner__inner,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner__inner,
  body.category .site-main--news-category .yg-news-banner__inner {
    min-height: var(--yg-unified-hero-height-mobile);
  }

  .yg-about-hero h1,
  .yg-curriculum-hero h1,
  .yg-team-hero h1,
  body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image h1,
  body.blog .site-main--news-rebuilt .yg-news-banner h2,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner h2,
  body.category .site-main--news-category .yg-news-banner h1 {
    font-size: var(--yg-unified-hero-title-size-mobile) !important;
  }

  .yg-about-hero span,
  .yg-curriculum-hero h1 span,
  .yg-team-hero .yg-team-hero__eyebrow,
  body.post-type-archive-branch .yg-branch-page .yg-branch-hero--with-image p,
  body.blog .site-main--news-rebuilt .yg-news-banner__english,
  body.page-id-11 .site-main--news-rebuilt .yg-news-banner__english,
  body.category .site-main--news-category .yg-news-banner__english {
    font-size: 12px !important;
  }
}

/* Site-wide interior watermarks: each non-home content segment gets one
   low-contrast brand mark, while heroes and already-decorated sections stay clean. */
body:not(.home) :is(.site-main, .yg-curriculum) > :is(section, article, .wp-block-group):not([class*="hero"]):not(.yg-about-intro):not(.yg-curriculum-categories):not(.yg-team-listing):not(.yg-branch-directory--regional):not(.yg-news-article-section) {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

body:not(.home) :is(.site-main, .yg-curriculum) > :is(section, article, .wp-block-group):not([class*="hero"]):not(.yg-about-intro):not(.yg-curriculum-categories):not(.yg-team-listing):not(.yg-branch-directory--regional):not(.yg-news-article-section)::after {
  background: url('assets/images/bubble-watermark.png') center / contain no-repeat;
  content: '';
  height: clamp(132px, 12vw, 210px);
  opacity: .07;
  pointer-events: none;
  position: absolute;
  right: clamp(-62px, -3.5vw, -28px);
  top: clamp(28px, 4vw, 70px);
  transform: rotate(-7deg);
  width: clamp(132px, 12vw, 210px);
  z-index: 0;
}

body:not(.home) :is(.site-main, .yg-curriculum) > :is(section, article, .wp-block-group):not([class*="hero"]):not(.yg-about-intro):not(.yg-curriculum-categories):not(.yg-team-listing):not(.yg-branch-directory--regional):not(.yg-news-article-section) > * {
  position: relative;
  z-index: 1;
}

body:not(.home) :is(.site-main, .yg-curriculum) > :is(section, article, .wp-block-group):not([class*="hero"]):not(.yg-about-intro):not(.yg-curriculum-categories):not(.yg-team-listing):not(.yg-branch-directory--regional):not(.yg-news-article-section):nth-of-type(even)::after {
  left: clamp(-62px, -3.5vw, -28px);
  right: auto;
  transform: rotate(8deg);
}

@media (max-width: 720px) {
  body:not(.home) :is(.site-main, .yg-curriculum) > :is(section, article, .wp-block-group):not([class*="hero"]):not(.yg-about-intro):not(.yg-curriculum-categories):not(.yg-team-listing):not(.yg-branch-directory--regional):not(.yg-news-article-section)::after {
    height: 96px;
    opacity: .06;
    right: -30px;
    top: 22px;
    width: 96px;
  }

  body:not(.home) :is(.site-main, .yg-curriculum) > :is(section, article, .wp-block-group):not([class*="hero"]):not(.yg-about-intro):not(.yg-curriculum-categories):not(.yg-team-listing):not(.yg-branch-directory--regional):not(.yg-news-article-section):nth-of-type(even)::after {
    left: -30px;
    right: auto;
  }
}

/* Teacher detail final layout: restore the original left-image, right-content card. */
body.single-team_member .yg-reading--team-member {
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 231, 226, .55) 0, rgba(255, 231, 226, 0) 260px),
    linear-gradient(180deg, #fff9f7 0%, #fffdfb 100%);
}

body.single-team_member .yg-reading--team-member .yg-reading__article {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 1320px;
  overflow: visible;
  padding: clamp(58px, 7vw, 110px) 0 clamp(72px, 8vw, 128px);
}

body.single-team_member .yg-team-member-reading__card {
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(255, 211, 204, .92);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(106, 65, 58, .08);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr);
  margin: 0 auto;
  max-width: 1180px;
  overflow: hidden;
}

body.single-team_member .yg-team-member-reading__media {
  align-items: stretch;
  aspect-ratio: auto;
  background: #ffe2de;
  border-radius: 0;
  display: flex;
  height: auto;
  margin: 0;
  max-width: none;
  min-height: 620px;
  width: 100%;
}

body.single-team_member .yg-team-member-reading__media img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  width: 100%;
}

body.single-team_member .yg-team-member-reading__media figure {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  margin: 0;
  width: 100%;
}

body.single-team_member .yg-team-member-reading__placeholder {
  min-height: 620px;
}

body.single-team_member .yg-team-member-reading__content {
  align-self: center;
  color: #566278;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.9;
  margin: 0;
  max-width: none;
  padding: clamp(42px, 5vw, 72px);
}

body.single-team_member .yg-team-member-reading__meta {
  background: #fff1ee;
  border-radius: 999px;
  color: var(--yg-coral-deep);
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
  margin: 0 0 20px;
  padding: 8px 16px;
}

body.single-team_member .yg-team-member-reading__content h1 {
  color: var(--yg-ink);
  font-size: clamp(42px, 4.3vw, 64px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 22px;
}

body.single-team_member .yg-team-member-reading__content .yg-reading__summary {
  color: #627089;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.85;
  margin: 0 0 28px;
}

body.single-team_member .yg-team-member-reading__swapped-portrait {
  background: #ffe5e1;
  border-radius: 18px;
  margin: 28px 0 8px;
  max-width: 520px;
  overflow: hidden;
}

body.single-team_member .yg-team-member-reading__swapped-portrait img {
  display: block;
  height: clamp(260px, 25vw, 380px);
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

body.single-team_member .yg-team-member-reading__section {
  background: #fffdfc;
  border: 1px solid rgba(255, 218, 211, .76);
  border-radius: 16px;
  margin-top: 22px;
  padding: 24px 26px;
}

body.single-team_member .yg-team-member-reading__section h2 {
  color: var(--yg-ink);
  font-size: 22px;
  font-weight: 850;
  margin: 0 0 16px;
}

body.single-team_member .yg-team-member-reading__section ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.single-team_member .yg-team-member-reading__section li {
  color: #4f5b72;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

body.single-team_member .yg-team-member-reading__section li::before {
  background: #f3cf77;
  border-radius: 50%;
  content: '';
  height: 7px;
  left: 0;
  position: absolute;
  top: .72em;
  width: 7px;
}

@media (max-width: 900px) {
  body.single-team_member .yg-reading--team-member .yg-reading__article {
    padding-top: 36px;
    width: calc(100% - 30px);
  }

  body.single-team_member .yg-team-member-reading__card {
    grid-template-columns: 1fr;
  }

  body.single-team_member .yg-team-member-reading__media,
  body.single-team_member .yg-team-member-reading__placeholder {
    min-height: 360px;
  }

  body.single-team_member .yg-team-member-reading__content {
    padding: 30px 24px 34px;
  }

  body.single-team_member .yg-team-member-reading__content h1 {
    font-size: 36px;
  }
}

