/* 现网 11/17 菜单及底栏，在旧文章和新页面共用。 */
.menu-btn{display:none;width:44px;height:44px;align-items:center;justify-content:center;margin-right:-10px;padding:0;border:0;background:none;color:inherit;cursor:pointer}
.menu-panel .menu-btn{display:inline-flex;margin-right:0}
.menu-panel{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:var(--paper);color:var(--ink)}
.menu-panel::backdrop{background:transparent}
html:has(.menu-panel[open]){overflow:hidden}
.menu-panel .menu-top{display:flex;align-items:center;justify-content:space-between;height:76px;padding:0 var(--space);border-bottom:1px solid var(--line)}
.menu-panel nav{display:flex;flex-direction:column;padding:16px var(--space)}
.menu-panel nav a{display:flex;align-items:center;min-height:60px;border-bottom:1px solid var(--line);font-family:var(--serif);font-size:20px;line-height:1.3;color:inherit;text-decoration:none}
.menu-panel .menu-foot{display:grid;gap:16px;padding:24px var(--space) calc(24px + env(safe-area-inset-bottom))}
.menu-panel .menu-langs{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:15px}
.menu-panel .menu-langs a{min-height:44px;display:inline-flex;align-items:center;color:var(--muted);text-decoration:none}
.menu-panel .menu-langs a[aria-current="true"]{color:var(--ink);font-weight:500}
.menu-panel .menu-book{width:100%;justify-content:center;min-height:48px}
@media (width<=920px){
  .header-actions .menu-btn{display:inline-flex}
}
@media (width<=760px){
  .mobile-booking-bar{transform:translateY(110%);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
  .mobile-booking-bar.is-on{transform:none}
  .mobile-booking-bar>div{font-size:var(--fs-body,14px);line-height:1.5}
  .mobile-booking-bar strong,.mobile-booking-bar span{font-size:var(--fs-body,14px);font-weight:500}
  body:has(.mobile-booking-bar){padding-bottom:72px}
}
@media (prefers-reduced-motion:reduce){
  .mobile-booking-bar{transition:none}
}

/* 各维护时期的内容页共用正式站的排版、字体和页头页脚。 */
body[data-site-shell] .lb-site-head[data-compact] :is(.desktop-nav,.header-book) { display:none; }
body[data-site-shell] .lb-site-head[data-compact] .menu-btn { display:inline-flex; }
.lb-site-head .menu-langs { flex-wrap:wrap; }
.lb-menu-more { display:flex; gap:18px; flex-wrap:wrap; margin-top:18px; font-size:12px; }
.lb-site-foot bdi { unicode-bidi:isolate; }
.lb-site-foot .lb-ja-clause { display:inline-block; }
.lb-site-head dialog:not([open]) { display:none; }
body[data-site-shell] :is(.lb-site-bar,.mobile-review-bar)[inert],
body[data-site-shell] :is(.lb-site-bar,.mobile-review-bar)[data-at-footer],
body:has(dialog[open],[data-home-wechat-panel]:not([hidden]),[data-wechat-panel]:not([hidden])) .lb-site-bar { visibility:hidden; pointer-events:none; }
.lb-site-head .language-menu > div { inset-inline-start:auto; inset-inline-end:0; max-inline-size:calc(100vw - 26px); }
body[data-site-shell] main :is(.lb-unit,.lb-phrase) { white-space:nowrap; font:inherit; letter-spacing:inherit; color:inherit; }
body[data-site-shell] main .lb-reading-text { min-width:0; max-inline-size:100%; }
@media (max-width:760px) {
  body[data-site-shell]:has(.lb-site-bar,.mobile-review-bar) { padding-bottom:calc(62px + env(safe-area-inset-bottom)); }
}
@media (min-width:761px) {
  :lang(de) .lb-footer-explore > a[href$="/pregnancy-care.html"] { grid-column:1 / -1; }
}

body[data-site-shell] main .lb-phrase { display:inline; white-space:normal; }
/* 同行数字单位与段末短语保留词界，与所在句子共享同一行框。 */
body[data-site-shell] main .lb-unit { display:inline; white-space:nowrap; }
body[data-site-shell] main :is(h1,h2,h3,h4) .lb-unit { white-space:nowrap; }

body[data-site-shell]:lang(ja) main .lb-phrase { line-break:strict; }

@media (max-width:374px) {
  body[data-page-key="services"]:lang(en) main .page-heading h1 .lb-unit { white-space:nowrap; }
}
