/* INFO: fc 23aug26 every image carries width and height, and only auto lets CSS width drive the ratio */
img {
  height: auto;
}

/* INFO: RR 08aug26 the brand makes the fixed navbar 3.5rem tall at every width, content offsets must match. */
:root {
  --navbar-height: 3.5rem;
}
.navbar {
  min-height: var(--navbar-height);
}
.navbar-margin {
  margin-top: var(--navbar-height);
}
section {
  scroll-margin-top: var(--navbar-height);
}

.navbar .offcanvas-lg {
  --bs-offcanvas-width: 12rem;
}

/* INFO: rr 09sep26 sand over sand: the bar needs an edge, and only once the page has travelled under it */
.navbar-edge::after {
  content: "";
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 0;
  height: 0.625rem;
  pointer-events: none;
  background: linear-gradient(rgb(60 40 20 / 0.1), rgb(60 40 20 / 0.035) 35%, rgb(60 40 20 / 0));

  @supports (animation-timeline: scroll()) {
    animation: navbar-shadow linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 var(--navbar-height);
  }
}

@keyframes navbar-shadow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav-link-green-bright {
  --bs-nav-link-color: var(--color-green-bright);
  --bs-nav-link-hover-color: var(--color-green-brighter);
  --bs-navbar-active-color: var(--color-green-brighter);
}

/* INFO: rr 08sep26 centered on the window rather than on the room left between the brand and the buttons */
@media (min-width: 1200px) {
  .navbar-centered {
    position: absolute;
    inset-inline-start: 50%;
    transform: translateX(-50%);
  }
}
.btn-close:focus {
  box-shadow: none;
}
.offcanvas-header-navbar {
  /* Align close button with navbar toggle (compensates for btn-close -0.5rem margin) */
  padding: calc(var(--bs-navbar-padding-y, 0.5rem) + 0.75rem) calc(var(--bs-gutter-x, 1.5rem) * 0.5 + 0.25rem)
    var(--bs-offcanvas-padding-y, 1rem) 0;
}
