/* Floating sections bar + phone fold, for the pages that do not load site.js
   (book, cas, two-teachers, the 12 writing articles). site.css + site.js give the
   same behaviour to the rest of the site; keep the class names in step with them:
   .nav-fold / .nav-open. book.html + cas.html override the padding to 0 because
   their bar has no room reserved at the right.
   2026-11-29: these rules used to be copied into all 16 pages. */
.top{position:sticky;top:0;z-index:20;background:var(--bg)}
[id]{scroll-margin-top:calc(34px + 24px)}
.nav-links{display:contents}
.top .nav-more{display:none}
@media (max-width:560px){
  [id]{scroll-margin-top:calc(57px + 16px)}
  .top.nav-fold{display:flex;align-items:center;min-height:57px;padding:0 38px 0 0}
  .top.nav-fold .nav-more{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;font:inherit;letter-spacing:.06em;color:var(--muted);background:transparent;border:1px solid var(--line-strong);border-radius:4px;cursor:pointer}
  .top.nav-fold .nav-more[aria-expanded="true"]{color:var(--text);background:var(--surface)}
  .nav-more-ico{position:relative;display:inline-block;width:14px;height:10px;border-top:1px solid currentColor;border-bottom:1px solid currentColor}
  .nav-more-ico::after{content:"";position:absolute;left:0;right:0;top:4px;border-top:1px solid currentColor}
  .top.nav-fold .nav-links{display:none}
  .top.nav-fold.nav-open .nav-links{display:block;position:absolute;top:100%;left:0;right:0;z-index:25;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:4px}
  .top.nav-fold.nav-open .nav-links a{display:block;margin:0;padding:13px 10px;border-bottom:1px solid var(--line)}
  .top.nav-fold.nav-open .nav-links a:last-child{border-bottom:0}
}
