/* Static filing line: separate from copyright actions and the audio/link row. */
body footer a.icp-filing,
.icp-no-script a.icp-filing {
  display: block;
  width: fit-content;
  margin: 5px 0 0;
  color: inherit;
  font: 400 11px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: .015em;
  white-space: nowrap;
  pointer-events: auto;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
body footer a.icp-filing:focus-visible,
.icp-no-script a.icp-filing:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* This also reserves three rows before sound.js starts, or when JS is disabled. */
@media screen and (max-width: 850px) {
  body.paper-site > footer:has(.icp-filing) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 4px;
    height: auto;
    padding: 0;
    margin: 0;
    left: 4vw;
    right: 4vw;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  body.paper-site > footer:has(.icp-filing) > :is(#copyright, p, small) {
    position: static;
    transform: none;
    margin: 0;
    width: auto;
    white-space: normal;
  }
  body.paper-site > footer:has(.icp-filing) > nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transform: none;
    width: 100%;
    min-height: 25px;
    margin: 0;
  }
  body footer a.icp-filing { margin-top: 3px; }
}
