/* Homepage navigation appearance, isolated from the product editorial layout. */
header {
  --primary-color:#b4a996;
  --text-color:#4e4e4e;
  --border-warm:#ece8e0;
  --surface-switch-track:#f1eee6;
  --surface-switch-thumb:#fff;
  --header-surface:#fff;
  position:sticky; top:0; z-index:1000;
  padding:16px 0; border:0;
  background:var(--header-surface);
  box-shadow:0 2px 4px rgb(0 0 0 / 10%);
  color:var(--text-color);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:16px; line-height:1.6;
}
header > nav { max-width:1200px; padding:0 32px; margin:auto; display:flex; align-items:center; justify-content:space-between; }
header .logo { display:flex; align-items:center; font-family:'Dancing Script','Ma Shan Zheng','Inter',sans-serif; font-size:32px; font-weight:700; color:var(--primary-color); white-space:nowrap; }
header .logo img { width:40px; height:40px; margin-right:8px; }
header .nav-menu { display:flex; align-items:center; list-style:none; margin:0 0 0 auto; padding:0; order:4; }
header .nav-menu li { display:flex; align-items:center; margin-left:24px; }
header .nav-menu a { color:var(--text-color); font-weight:500; white-space:nowrap; }
header .nav-menu a:hover { color:var(--primary-color); }
header .nav-menu .appointment-btn { display:inline-flex; gap:5px; align-items:center; padding:10px 18px; background:var(--primary-color); border-radius:999px; color:#fff; font-weight:600; }
header .nav-menu .appointment-btn:hover { background:#a08f74; color:#fff; }
header .topbar-lang, header .mobile-menu-toggle { display:none; }
header .lang-switch { position:relative; display:inline-flex; align-items:center; padding:3px; background:var(--surface-switch-track); border:1px solid var(--border-warm); border-radius:999px; line-height:1; }
header .lang-switch__thumb { position:absolute; top:3px; left:3px; width:calc(50% - 3px); height:calc(100% - 6px); background:var(--surface-switch-thumb); border-radius:999px; box-shadow:0 1px 3px rgb(0 0 0 / 14%); transition:transform .3s; }
header .lang-switch[data-active="en"] .lang-switch__thumb { transform:translateX(100%); }
header .lang-switch a { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; width:38px; height:28px; font-size:13px; font-weight:600; color:var(--text-color); }
header .theme-toggle { order:5; display:inline-flex; align-items:center; justify-content:center; flex:none; width:38px; height:38px; margin-left:20px; padding:0; background:transparent; border:1px solid var(--border-warm); border-radius:999px; color:var(--text-color); cursor:pointer; }
header .theme-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
header .theme-toggle .icon-sun { display:none; }
:root[data-theme="dark"] header .icon-sun { display:block; }
:root[data-theme="dark"] header .icon-moon { display:none; }
header button:focus-visible { outline:2px solid var(--primary-color); outline-offset:3px; }
@media(max-width:1100px) {
  header { padding:0; box-shadow:none; border-bottom:1px solid var(--border-warm); }
  header > nav { padding:12px 16px; }
  header .logo { font-size:25.6px; }
  header .logo img { width:32px; height:32px; margin-right:6.4px; }
  header .topbar-lang { display:flex; margin-left:auto; }
  header .topbar-lang .lang-switch a { width:34px; height:26px; font-size:12px; }
  header .theme-toggle { width:36px; height:36px; margin-left:8px; }
  header .mobile-menu-toggle { order:6; display:flex; flex-direction:column; justify-content:space-between; flex:none; width:30px; height:24px; padding:0; margin-left:14px; border:0; background:transparent; cursor:pointer; }
  header .mobile-menu-toggle span { width:30px; height:3px; background:var(--primary-color); }
  header .nav-menu { display:none; position:absolute; top:100%; left:0; right:0; max-height:calc(100dvh - 70px); overflow:auto; padding:16px; background:var(--header-surface); border-bottom:1px solid var(--border-warm); }
  header .nav-menu.is-open { display:flex; flex-direction:column; align-items:stretch; }
  header .nav-menu li { margin:0; }
  header .nav-menu li > a { padding:12px 16px; width:100%; }
  header .nav-menu .nav-appointment { margin:8px 0; }
  header .nav-menu .appointment-btn { justify-content:center; }
  header .nav-menu .lang-toggle { display:none; }
}
:root[data-theme="dark"] { color-scheme:dark; --paper:#191b17; --ink:#e9e6da; --muted:#c0c4b4; --line:#454b3c; --moss:#62764e; }
:root[data-theme="dark"] header { --text-color:#e9e3d8; --header-surface:#191714; --border-warm:#3a342b; --surface-switch-track:#2b2721; --surface-switch-thumb:#454035; }
:root[data-theme="dark"] .pause-note { background:#2c3325; }
:root[data-theme="dark"] footer { background:#252820; }
/* Keep the appointment control identical to the homepage. */
header .nav-menu .appointment-btn { padding:.4rem 1rem; border:2px solid transparent; border-radius:20px; font-size:.95rem; font-weight:500; }
header .nav-menu .appointment-btn:hover { background:transparent; border-color:var(--primary-color); color:var(--primary-color); }
@media(max-width:360px) {
  header > nav { padding-inline:12px; }
  header .logo { font-size:22px; }
  header .mobile-menu-toggle { margin-left:8px; width:26px; }
  header .mobile-menu-toggle span { width:26px; }
}
