/* CyberWood compact sticky header. Loaded after site.css on every page. */
html { scroll-padding-top: 90px; }
body { overflow-x: clip; }
/* The hero must scroll normally when the header is sticky. */
body.home .hero.hero-cinematic {
  position: relative;
  top: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: height .24s ease, background-color .24s ease, box-shadow .24s ease;
}
.site-header .brand-mark,
.site-header .header-cta,
.site-header .header-messengers a {
  transition: transform .24s ease, min-height .24s ease, width .24s ease, height .24s ease, box-shadow .24s ease;
}
.site-header .header-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}
.site-header .brand-copy b,
.site-header .brand-copy small,
.site-header .main-nav a,
.site-header .header-phone,
.site-header .header-email { transition: font-size .24s ease, padding .24s ease; }
.site-header.is-compact {
  height: 70px;
  gap: 6px;
  padding-inline: 1.5vw;
  background-color: rgba(250,249,246,.97);
  box-shadow: 0 10px 28px rgba(27,28,25,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-compact .brand-mark { transform: scale(.75); transform-origin: left center; }
.site-header.is-compact .brand-copy b { font-size: 16px; }
.site-header.is-compact .brand-copy small { font-size: 9px; }
.site-header.is-compact .header-contacts { width: max-content; margin-left: 0; }
.site-header.is-compact .header-phone { font-size: 17px; }
.site-header.is-compact .header-email { font-size: 10px; }
.site-header.is-compact .header-contacts .contact-icon { transform: scale(.78); }
.site-header.is-compact .header-messengers a { width: 26px; height: 26px; }
.site-header.is-compact .header-cta { min-height: 39px; padding: 7px 8px; line-height: 1; }
@media (min-width: 901px) {
  .site-header.is-compact { gap: clamp(10px, 1vw, 22px); }
  .site-header.is-compact .brand { margin-right: 0; flex-shrink: 0; }
  .site-header.is-compact .main-nav {
    flex: 1 0 auto;
    justify-content: space-evenly;
    gap: 4px;
    padding: 4px;
  }
  .site-header.is-compact .main-nav a {
    padding: 6px clamp(8px, .8vw, 16px);
    font-size: 14px;
    white-space: nowrap;
    text-align: center;
  }
}
@media (max-width: 900px) {
  .site-header.is-compact { height: 68px; }
  .site-header.is-open .main-nav { top: 100%; }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 76px; }
  .site-header.is-compact { height: 57px; }
  .site-header.is-compact .brand-copy b { font-size: 14px; }
  .site-header.is-compact .brand-copy small { font-size: 6px; }
  .site-header.is-compact .header-mobile-links a { width: 26px; height: 26px; }
  .site-header.is-compact .menu-toggle { transform: scale(.82); transform-origin: right center; }
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .brand-mark,
  .site-header .brand-copy b,
  .site-header .brand-copy small,
  .site-header .main-nav a,
  .site-header .header-phone,
  .site-header .header-email,
  .site-header .header-cta,
  .site-header .header-messengers a { transition: none; }
}

/* Internal pages: keep the first heading close to the sticky header. */
.prose,
.prose.article-shell,
.article-index,
.blog-index,
.error-page,
body .cw-contact-page { padding-top: 28px; }
@media (max-width: 620px) {
  .prose,
  .prose.article-shell,
  .article-index,
  .blog-index,
  .error-page,
  body .cw-contact-page { padding-top: 20px; }
}

/* Category introductions use the same content width as their article grid. */
body.category .article-index-head {
  max-width: none;
  margin: 0 0 48px;
  text-align: center;
}
body.category .article-index-head .article-index-lead {
  max-width: none;
  margin: 20px 0 0;
  text-align: left;
  text-indent: 1.5em;
}
