/*
 * Copyright (c) 2024 - 2026 QDMI Maintainers
 * All rights reserved.
 *
 * Licensed under the Apache License v2.0 with LLVM Exceptions (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * https://llvm.org/LICENSE.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 *
 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 */

/* Generated by doxygen 1.12.0 via `doxygen -w header.html footer.html style.css` */
/* Included in the Doxygen.in file under the tag HTML_EXTRA_STYLESHEETS */

/* taken from awesome-doxygen-css to scale the github link in the upper right corner */
.github-corner svg {
  fill: var(--primary-light-color);
  color: var(--page-background-color);
  width: 72px;
  height: 72px;
}

@media screen and (max-width: 767px) {
  .github-corner svg {
    width: 50px;
    height: 50px;
  }

  #projectnumber {
    margin-right: 22px;
  }
}

/* add some space between version number and project title */
#projectnumber {
  margin-left: 10px;
}

/* Wrap long API names and revision hashes without changing code blocks. */
.contents span.tt {
  white-space: normal;
  overflow-wrap: anywhere;
}

.contents a.el {
  overflow-wrap: anywhere;
}

/* Leave room for the page beside the main navigation on tablets. */
@media screen and (max-width: 1199px) {
  #container {
    grid-template-columns: initial !important;
  }

  #page-nav {
    display: none;
  }
}

#page-nav #page-nav-contents {
  padding-top: 3.5rem;
}

#page-nav .item {
  display: flex;
  align-items: baseline;
  padding-right: 1rem;
}

#page-nav .item > .arrow {
  flex-shrink: 0;
}

#page-nav .page-outline .item > a {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
  padding: 0.25rem 0;
}

.qdmi-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.qdmi-logos a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 10rem;
  max-width: 100%;
  text-align: center;
}

/* Preserve official colors on a fixed background in either documentation theme. */
.qdmi-logos img {
  box-sizing: border-box;
  width: 100%;
  height: 5rem;
  padding: 0.5rem;
  object-fit: contain;
  background: #fff;
  border-radius: 0.25rem;
}

.qdmi-logos .qdmi-logo-dark-background img {
  background: #172b4d;
}

html.dark-mode .qdmi-schematic {
  content: url("qdmi_schematic_dark.svg");
}

dl.note .tt {
  color: var(--primary-dark-color);
}
