main {
  img {
    height: auto;
  }
}
#content {
  figure {
    margin-bottom: 4.2rem;
  }

  .cm {
    ul,
    ol {
      padding-left: min(5cqi, 2em);
      li {
        margin-bottom: 0.2em;
        p {
          margin: 0;
        }
      }
    }
  }
}

@media (min-width: 601px) {
  .list__literature {
    .cover {
      img {
        max-width: 110px;
        height: auto;
      }
    }
  }
}

.cm__linklist {
  li {
    margin-bottom: 0;
  }
}

#searchform__details {
  summary {
    cursor: pointer;
  }
}

#block__search:not([hidden]) + .rounded {
  border-radius: 0 0 var(--br-big) var(--br-big);
}

#block__search:has(+ main > .rounded) {
  background: transparent;
  padding-block-end: 40px;
}

.columns {
  :is(h1, h2, h3, h4, h5, h6):only-child {
    margin: 0;
  }
}

.cm__togglelist {
  summary {
    cursor: pointer;
    &:hover,
    &:focus-visible {
      text-decoration: underline;
      text-underline-offset: 0.1em;
    }
  }
}

.biography_meta {
  &:has(p) {
    border-top: 2px solid var(--text);
    padding-top: 40px;
    margin-top: 40px;
  }
  p {
    font-size: 1.4rem;
  }
}

.cm__notice {
  padding: 40px;
  margin-block: 2rem;
  background: hsl(from var(--disabled) h s calc(l * 1.15));

  &:before {
    content: "i";
    background: var(--text);
    color: var(--white);
    border-radius: 100%;
    display: block;
    width: fit-content;
    aspect-ratio: 1;
    line-height: 0;
    padding: 12px 10px 7px;
    margin-block: -0.5em 0.5em;
  }

  *:last-child {
    margin-bottom: 0;
  }
}

.childpages {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  li {
    padding: 0;
    margin: 0;
  }
  a {
    display: block;
    padding: 1em 2em;
    border-radius: var(--br);
    background: var(--primary-light);
    text-decoration: none;

    &:after {
      content: "";
      display: inline-block;
      vertical-align: middle;
      position: relative;
      top: -1px;
      width: 16px;
      height: 16px;
      background: transparent url("../media/icon_arrow_small.svg") right center
        no-repeat;
      background-size: 100%;
    }

    &:hover,
    &:focus-visible {
      text-decoration: underline;
    }
  }
}

:is(p, ul, ol):has(+ :is(h1, h2, h3, h4, h5, h6)) {
  margin-bottom: 4rem;
}

.cm__infobox {
  :is(h1, h2, h3, h4, h5, h6) {
    margin-bottom: 2rem;
  }
}
