@import url("https://colneo.services/cn_shared/v2/html/css/cn_designsystem.css");

/* COLNEO-PRO's footer adds the `cn` class to all headings at runtime. Apply
   the equivalent design-system heading styles without its C++-specific JS. */
h1 {
  border-left: 5px solid var(--cn_Primary) !important;
  padding: 5px 5px 5px 1em !important;
  font-size: 22pt !important;
  font-weight: 900 !important;
}

h2 {
  border-left: 5px solid var(--cn_Primary) !important;
  padding: 5px 5px 5px 1em !important;
  font-size: 18pt !important;
  font-weight: 900 !important;
}

h3 {
  border-left: 5px solid var(--cn_Primary) !important;
  padding: 5px 5px 5px 1em !important;
  font-size: 16pt !important;
  font-weight: 900 !important;
}

h4 {
  border-left: 5px solid var(--cn_Primary300) !important;
  background-color: #fcfcfc;
  padding: 5px 5px 5px 1em !important;
  font-size: 14pt !important;
  font-weight: 900 !important;
}

h5 {
  border-left: 2px solid var(--cn_Primary200) !important;
  background-color: #fcfcfc;
  padding: 5px 5px 5px 1em !important;
  font-size: 12pt !important;
  font-weight: bold !important;
}

h6 {
  border-bottom: 1px solid var(--cn_Primary200) !important;
  background-color: #fcfcfc;
  padding: 5px 5px 5px 1em !important;
}

/* Member-group titles are converted to COLNEO headings after generation. */
table.memberdecls tr.groupHeader {
  padding: 0 !important;
}

table.memberdecls tr.groupHeader > td {
  padding-top: 12px !important;
}

table.memberdecls tr.groupHeader h4.cn {
  margin: 0 0 15px 0 !important;
  padding: 15px !important;
}

/* CustomAPI.css hides the Doxygen class index used by COLNEO-PRO's C++ API.
   InfohubJsApi exposes JavaScript classes, so restore that navigation entry. */
.sm-dox li:has(> a[href="annotated.html"]),
.sm-dox li > a[href="annotated.html"] {
  display: block !important;
}

/* Category groups are presented as namespaces for this JavaScript API. */
.sm-dox li:has(> a[href="topics.html"]),
.sm-dox li > a[href="topics.html"] {
  display: block !important;
}

/* Keep the class index compact: class names only, without brief descriptions. */
.contents > .textblock:has(+ .directory a[href^="class"]),
.directory td.entry:has(a[href^="class"]) + td.desc {
  display: none;
}

.directory td.entry:has(a[href^="class"]) {
  width: 100%;
}

/* Category pages list classes by name without repeating their brief text. */
tr:has(> td.memItemRight > a[href^="class"]) + tr[class^="memdesc:"] {
  display: none;
}
