.button-image {width: 20px; height: 20px;}
.clickable-preview-img { cursor: zoom-in; }
html { scroll-behavior: smooth; }

/* fix code */
pre {white-space: wrap !important;}
code {white-space: inherit !important;}

@media (min-width: 640px) {
  .mistakes-scope-table td {padding-right: calc(var(--unit) * 6);}
}

@media (max-width: 640px) {
  .mistakes-scope-table
  {display: grid;}

  .mistakes-scope-table tr {
    display: grid;
    grid-template-columns: 4fr 1fr;
    grid-auto-rows: auto;
    border-bottom: 1px solid var(--lightGray);
  }

  .mistakes-scope-table td, .mistakes-scope-table th {
    border: none;
    align-self: center;
    margin-top: 0;
  }

  .mistakes-scope-table tr td:last-child {
    justify-self: end;
  }

  /* Topic / heading — full width, first row */
  .mistakes-scope-table td:nth-child(1),
  .mistakes-scope-table th:nth-child(1) {
    grid-column: span 3;
  }
}

details {
  background: var(--faintGray);
  border: 1px solid var(--lightGray);
  border-radius: var(--unit);
  box-shadow:  0 0px 3px 0 rgba(0, 0, 0, .08);
  max-width: fit-content;
  margin-top: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
}

details[open] {
  padding-bottom: 15px;
  border: 1px solid var(--lightGrayHover); /* NEW 28. 11.,  */
  max-width: 100vw;
}

details > * {
margin-left: 1rem;
margin-right: 1rem
}

details ul, details ol {padding-left: 1.2rem;}

summary {
  padding: 0.6rem 1.5rem 0.6rem 1rem;  /* NEW */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  font-weight: 500;
  background: white;
  margin: 0;
  line-height: 100%;
  position: relative;
}
details:hover{
  border: 1px solid var(--lightGrayHover);
}
summary:hover {
  background: var(--faintGray);
}

summary:before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  margin-right: 8px;
  width: 20px;
  height: 20px;
  background: url("https://www.umimeto.org/asset/global/img/icons-umime/icon-triangle.svg") center no-repeat;
  background-size: contain;
  transform: rotate(0);
  transform-origin: 50% 50%;
  transition: .25s transform ease;
}
details[open] summary {
  border-bottom: 1px solid var(--lightGrayHover);
  background: var(--lightGray);  /* NEW, was #f5f6f7 */
  margin-bottom: 0.6rem;
}
details[open] > summary:before {
  transform: rotate(90deg);
}

summary::-webkit-details-marker {
  visibility: hidden;
  position: absolute;
  top: 0; left: 0;
}

summary::marker {
  display: none;
}