/* Shared navigation only; editor controls and rendering remain page-specific. */
.app-header{height:auto;min-height:64px;flex-wrap:wrap;gap:8px 20px;padding-top:8px;padding-bottom:8px}
.app-header .brand img{height:40px}
.mode-switch{display:inline-flex;gap:4px;margin-left:auto;padding:3px;border:1px solid #d8dfd2;border-radius:12px;background:#edf1e9}
.mode-switch a{display:flex;align-items:center;justify-content:center;min-width:90px;min-height:34px;padding:6px 16px;border:1px solid transparent;border-radius:8px;color:#53634d;text-decoration:none;font-size:13px;font-weight:650}
.mode-switch a:hover{background:#e1e9dc;color:#244f40}
.mode-switch a[aria-current=page]{background:#fff;border-color:#d4ddce;color:#244f40;box-shadow:0 2px 5px #25382c0c}
@media(max-width:540px){.app-header{justify-content:center}.mode-switch{margin-left:0;width:100%}.mode-switch a{flex:1}}

/* Navigation retreats on downward scroll and returns on upward scroll. */
body>header{position:sticky;top:0;z-index:20;transition:transform .18s ease,opacity .18s ease,margin-top .18s ease}
body.navbar-hidden>header{transform:translateY(-100%);opacity:0;pointer-events:none}
@media(min-width:1200px) and (min-height:700px){
  body.navbar-hidden>header{margin-top:calc(-1 * var(--navbar-height,64px))}
}
@media(prefers-reduced-motion:reduce){body>header{transition:none}}
