/* One reusable details component for the website and Gutenberg editor. */
:is(.prose, .editor-styles-wrapper) details:not(.rail__toc) {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--rule, #cbd5dc);
  border-radius: 12px;
  background: var(--paper-raised, #fff);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
:is(.prose, .editor-styles-wrapper) details:not(.rail__toc):hover {
  border-color: var(--teal, #087f83);
}
:is(.prose, .editor-styles-wrapper) details:not(.rail__toc) > summary {
  position: relative;
  display: block;
  box-sizing: border-box;
  padding: 22px 76px 22px 24px;
  margin: 0;
  cursor: pointer;
  list-style: none;
  font: 600 1.0625rem/1.45 var(--sans, "IBM Plex Sans", system-ui, sans-serif);
  color: var(--ink, #17212b);
  border-radius: 11px;
}
:is(.prose, .editor-styles-wrapper) details > summary::-webkit-details-marker { display: none; }
:is(.prose, .editor-styles-wrapper) details:not(.rail__toc) > summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    var(--paper-band, #edf2f4);
  color: var(--teal, #087f83);
  font: 400 22px/1 system-ui, sans-serif;
}
:is(.prose, .editor-styles-wrapper) details:not(.rail__toc)[open] {
  border-color: var(--teal, #087f83);
  box-shadow: inset 3px 0 0 var(--teal, #087f83);
}
:is(.prose, .editor-styles-wrapper) details:not(.rail__toc)[open] > summary::after {
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    var(--teal, #087f83);
  color: #fff;
}
:is(.prose, .editor-styles-wrapper) details:not(.rail__toc) > :not(summary) {
  margin: 0 24px 18px;
  color: var(--ink-soft, #44525e);
}
:is(.prose, .editor-styles-wrapper) details:not(.rail__toc) > :last-child:not(summary) { margin-bottom: 24px; }
@media (max-width: 599px) {
  :is(.prose, .editor-styles-wrapper) details:not(.rail__toc) > summary { padding: 18px 60px 18px 18px; }
  :is(.prose, .editor-styles-wrapper) details:not(.rail__toc) > summary::after { right: 16px; width: 28px; height: 28px; }
  :is(.prose, .editor-styles-wrapper) details:not(.rail__toc) > :not(summary) { margin-inline: 18px; }
}
