/* Rescue's footer is otramusic.com's (footer.css, nav.css), on every page, the converter included:
   only the language list and the German capitals are Rescue's own. The converter has no theme, so
   the colours and the easing fall back to the site's values. */
.foot-cols ul + .fh {
  margin-top: 1.6rem;
}
.foot .languages summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition:
    background 0.3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)),
    color 0.3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
.foot .languages summary::-webkit-details-marker {
  display: none;
}
.foot .languages summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.2rem;
  border-right: 2px solid;
  border-bottom: 2px solid;
  rotate: 45deg;
  transition: rotate 0.3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
.foot .languages[open] summary::after {
  rotate: -135deg;
  margin-top: 0.2rem;
}
.foot .languages summary:hover {
  background: var(--bg, #f5f6f1);
  color: var(--accent, #5f06ea);
}
.foot .languages ul {
  display: grid;
  margin-top: 0.6rem;
}
.foot .languages li a {
  display: inline-block;
  padding-block: 0.25rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size 0.4s var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
}
.foot .languages li a:hover {
  text-decoration: none;
  background-size: 100% 2px;
}
.foot .languages a[aria-current] {
  font-weight: 700;
}
/* German keeps its capitals: nouns carry meaning there */
html[lang="de"] .foot .sign,
html[lang="de"] .foot.t-score .foot-cols .fh {
  text-transform: none;
}
/* Japanese breaks the sign-off at a phrase */
html[lang="ja"] .foot .sign {
  line-break: strict;
  word-break: auto-phrase;
}
