/* Shared identity and scroll veil. */
.brand-link { gap:0; }
.brand-symbol { width:42px; height:36px; }
.brand-link:focus-visible { outline-offset:6px; }
.scroll-veil {
  position:fixed;
  z-index:50;
  inset:0 0 auto;
  height:calc(100px + env(safe-area-inset-top,0px));
  pointer-events:none;
  opacity:var(--scroll-veil-opacity,0);
  background:linear-gradient(to bottom,#0b0c0c70,transparent);
  /* Keep the header fade without filtering the moving page behind it. */
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000d 24%,#0007 54%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000d 24%,#0007 54%,transparent 100%);
  transition:opacity .16s linear;
}
body:has(.books-panel:not([hidden])) .scroll-veil { opacity:0; }
.article-progress { z-index:70; }
@media (max-width:700px) {
  .brand-symbol { width:34px; height:27px; }
  .scroll-veil { height:calc(76px + env(safe-area-inset-top,0px)); }
}
@media (prefers-reduced-motion:reduce) { .scroll-veil { transition:none; } }
@media print { .scroll-veil { display:none; } }

/* Shared recent-publication label on the blog and homepage entry. */
.journal-new { display:inline-block; flex:none; padding:2px 6px; border:1px solid var(--line); color:var(--ink); font:inherit; line-height:1.3; letter-spacing:.08em; vertical-align:middle; }
.journal-new[hidden] { display:none; }
.blog-entry-label { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.blog-entry .journal-new { font-size:9px; }
