/**
 * Adapted from Codrops AnimatedHeader (MIT)
 * https://github.com/codrops/AnimatedHeader
 * Fixed header that shrinks on scroll. Heights are mobile-first for this site
 * (the demo used 230px / 90px, which is too tall for a phone desk).
 */
.cbp-af-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--paper, #fff);
  z-index: 100;
  height: 72px;
  overflow: hidden;
  transition: height 0.3s;
  border-bottom: 2px solid var(--ink, #000);
  border-radius: 0;
}
.cbp-af-header .cbp-af-inner {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cbp-af-header h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}
.cbp-af-header h1 .mark {
  max-height: 48px;
  width: auto;
  margin: 0;
  transition: max-height 0.3s;
}
.cbp-af-header nav a,
.cbp-af-header nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
}
.cbp-af-header.cbp-af-header-shrink { height: 52px; }
.cbp-af-header.cbp-af-header-shrink h1 .mark { max-height: 32px; }

/* Public site: offset the fixed header. Desk uses its own shell padding. */
body[data-page="home"] { padding-top: 72px; }
body[data-page="home"] .sheet { border-top: 0; padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .cbp-af-header, .cbp-af-header h1 .mark { transition: none; }
}
@media (max-width: 24em) {
  .cbp-af-header { height: 64px; }
  body[data-page="home"] { padding-top: 64px; }
}
