details {
  background-color: rgba(50, 150, 220, 0.08);
  margin-bottom: 0.5em;
  padding: 0 1em;
  overflow-y: hidden; /* Suppress margin-collapsing */
}
details[open] {
  border-bottom: 1px solid rgba(0, 0, 128, 0.2);
  margin-bottom: 1em;
}
details summary {
  font-weight: bold;
  background-color: rgba(50, 150, 220, 0.1);
  border-color: rgba(0, 0, 128, 0.2);
  border-width: 1px;
  border-style: solid none;
  padding: 0.2em;
  margin: 0 -1em;
}
details summary:hover {
  background-color: rgba(50, 150, 220, 0.2);
  cursor: pointer;
}

/* The two check tables contain long identifiers whose dots are not natural
   line-breaking opportunities. Let table layout wrap them when needed. */
.clang-tidy-checks-table th,
.clang-tidy-checks-table td {
  overflow-wrap: anywhere;
}

/* Use the full viewport on ordinary desktop displays, where Furo's fixed
   content width leaves little room after both sidebars. Once the content area
   reaches 90em (84em plus padding), grow symmetric outer margins instead. */
@media (min-width: 67em) {
  .page .sidebar-drawer {
    width: max(15em, calc(50% - 45em));
  }

  .main > .content {
    width: min(84em, calc(100vw - 36em));
  }
}

/* Furo moves the page-local TOC into a drawer below 82em, freeing its 15em
   column for the main content. */
@media (min-width: 67em) and (max-width: 82em) {
  .main > .content {
    width: calc(100vw - 21em);
  }
}
