/* 五個療程共用的手機 Banner。桌機保留原圖文構圖。
   圖片與標題使用自然文件流，避免長文遮住人物或依頁面另訂高度。 */
.treatment-hero-image,
.treatment-hero-name,
.treatment-hero-comma { display: none; }

/* 桌機與平板統一版高；手機保留圖、標題與說明的自然高度。 */
@media (min-width: 768px) {
  body.treatment-page :is(#implant-hero, #allon4-hero, #orthodontics-hero, #ceramic-dsd-hero, #microscopic-endodontics-hero).treatment-hero { height: 520px; }
}

@media (max-width: 767px) {
  /* 具名根節點可覆寫既有療程 ID 樣式，所有共通數值只在此維護。 */
  body.treatment-page :is(#implant-hero, #allon4-hero, #orthodontics-hero, #ceramic-dsd-hero, #microscopic-endodontics-hero).treatment-hero {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    background: #fff;
  }
  body.treatment-page .treatment-hero::before { display: none; }
  body.treatment-page .treatment-hero > .treatment-hero-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: var(--hero-mobile-focus, 70% center);
    border-radius: 0;
  }
  body.treatment-page :is(#implant-hero, #allon4-hero, #orthodontics-hero, #ceramic-dsd-hero, #microscopic-endodontics-hero) .hero-copy {
    display: contents;
    position: static;
    max-width: none;
  }
  body.treatment-page :is(#implant-hero, #allon4-hero, #orthodontics-hero, #ceramic-dsd-hero, #microscopic-endodontics-hero) .hero-copy h1 {
    margin: 0;
    padding: 22px 24px;
    background: #f3f8ef;
    color: #284f45;
    font-family: "Songti TC", "Noto Serif TC", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .03em;
    text-shadow: none;
  }
  .treatment-hero .treatment-hero-name { display: block; }
  .treatment-hero .treatment-hero-question {
    display: block;
    margin-top: 12px;
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
  }
  .treatment-hero .treatment-hero-question br { display: none; }
  .treatment-hero .treatment-hero-comma { display: inline; }
  /* 完整醫療說明保留，放在白底介紹區，不裁字、不限制行數。 */
  body.treatment-page :is(#implant-hero, #allon4-hero, #orthodontics-hero, #ceramic-dsd-hero, #microscopic-endodontics-hero) .hero-copy p {
    max-width: none;
    margin: 0;
    padding: 24px;
    background: #fff;
    color: #3c514b;
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0;
  }
  body.treatment-page #allon4-hero .hero-copy-line { display: inline; }
}
