@media screen {
  html {
    scroll-padding-block: 84px var(--footer-height);
    --footer-height: calc(44px + env(safe-area-inset-bottom, 0px));
  }

  body { padding-bottom: var(--footer-height); }
  .skip { position: fixed; }

  footer.site-footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    border-top: 1px solid rgba(255, 255, 255, .15);
    color: #c3d1e3;
  }

  .site-footer summary {
    list-style: none;
    cursor: pointer;
  }

  .site-footer summary::-webkit-details-marker { display: none; }
  .site-footer summary:focus-visible { outline-offset: -3px; }

  .footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 43px;
    gap: 12px;
    font-size: 13px;
  }

  .footer-chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-inline: 6px 2px;
    border: solid currentColor;
    border-width: 1px 1px 0 0;
    transform: rotate(-45deg);
  }

  .site-footer details[open] .footer-chevron { transform: rotate(135deg); }

  .footer-panel {
    max-height: min(55vh, calc(100dvh - 144px));
    overflow: auto;
    overscroll-behavior: contain;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
}
