/* Persistent navigation and local-only reading progress. */
:root{--masthead-height:94px}
html{scroll-padding-top:calc(var(--masthead-height) + 20px)}
.site-masthead{position:sticky;top:0;z-index:100;background:rgba(13,16,16,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 8px 22px #0002}
.site-masthead .site-header,.home .site-masthead .site-header{position:relative;top:auto;left:auto;transform:none;height:var(--masthead-height);min-height:var(--masthead-height);padding-block:0}
.home .site-masthead{margin-bottom:calc(-1 * var(--masthead-height));background:rgba(13,16,16,.88)}
.reading-progress{position:absolute;left:0;bottom:0;display:block;width:100%;height:3px;margin:0;border:0;border-radius:0;appearance:none;-webkit-appearance:none;background:#5f493a55;color:#eeab73;pointer-events:none}
.reading-progress[hidden]{display:none}
.reading-progress::-webkit-progress-bar{background:#5f493a55}
.reading-progress::-webkit-progress-value{background:linear-gradient(90deg,#bf6336,#efbc84);box-shadow:0 0 8px #e5945266}
.reading-progress::-moz-progress-bar{background:linear-gradient(90deg,#bf6336,#efbc84)}
.skip-link{z-index:200}
.reading-copy [id],.source-list li,.paradox,[data-term]{scroll-margin-top:16px}
#inhalt{scroll-margin-top:0}
@media(max-width:800px){
  :root{--masthead-height:78px}
  .site-masthead .site-header #site-nav{max-height:calc(100svh - var(--masthead-height) - 18px);overflow-y:auto;overscroll-behavior:contain}
  html:not(.nav-ready) .site-masthead{position:relative}
  html:not(.nav-ready) .site-masthead .site-header{height:auto;padding-block:20px}
  html:not(.nav-ready) .home .site-masthead{margin-bottom:0}
}
