/* FIREQ documentation custom style */

:root {
  --fireq-qnano: #751434;
  --fireq-qnano-hover: #9a1b45;
  --fireq-text: #1f2937;
  --fireq-border: #e5e7eb;

  --pst-color-primary: #751434;
  --pst-color-link: #007f92;
  --pst-color-link-hover: #751434;
}

/* Navbar */

.bd-header {
  border-bottom: 1px solid var(--fireq-border);
}

.navbar-brand img {
  max-height: 32px;
  width: auto;
}

/* Typography */

.bd-content h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bd-content h2 {
  margin-top: 2.4rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.bd-content p {
  line-height: 1.6;
}

/* Architecture figure */

.fireq-architecture {
  margin-top: 1.2rem;
  margin-bottom: 2.6rem;
}

.fireq-architecture img {
  width: 100%;
  max-width: 900px;
}

.fireq-architecture figcaption {
  margin-top: 0.7rem;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Cards */

.fireq-component-card,
.fireq-doc-card,
.fireq-institution-card {
  height: 100%;
  border: 1px solid var(--pst-color-border);
  border-top: 3px solid var(--fireq-qnano);
  border-radius: 0.5rem;
  box-shadow: 0 0.15rem 0.5rem rgba(17, 24, 39, 0.06);
}

.fireq-component-card:hover,
.fireq-doc-card:hover,
.fireq-institution-card:hover {
  border-top-color: var(--fireq-qnano-hover);
  box-shadow: 0 0.25rem 0.8rem rgba(17, 24, 39, 0.10);
}

.sd-card {
  --sd-color-card-border-hover: #751434;
  background-color: var(--pst-color-surface);
}

.sd-card-title {
  color: var(--pst-color-text-base);
  font-weight: 700;
}

.sd-card-text,
.sd-card-body p {
  color: var(--pst-color-text-base);
}

/* Dark mode fixes */

html[data-theme="dark"] .fireq-component-card,
html[data-theme="dark"] .fireq-doc-card,
html[data-theme="dark"] .fireq-institution-card {
  border-color: var(--pst-color-border);
  border-top-color: var(--pst-color-border);
  box-shadow: none;
}

html[data-theme="dark"] .sd-card {
  background-color: var(--pst-color-surface);
}

html[data-theme="dark"] .sd-card-title {
  color: var(--pst-color-text-base);
}

html[data-theme="dark"] .sd-card-text,
html[data-theme="dark"] .sd-card-body p {
  color: var(--pst-color-text-base);
}

/* Project information page */

.fireq-institution-card {
  height: 100%;
  min-height: 245px;
  text-align: center;
  border: 1px solid var(--fireq-border);
  border-top: 3px solid var(--fireq-qnano);
  border-radius: 0.5rem;
  box-shadow: 0 0.15rem 0.5rem rgba(17, 24, 39, 0.06);
}

.fireq-institution-card .sd-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fireq-institution-card .sd-card-title {
  min-height: 3.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fireq-institution-logo {
  display: block;
  width: auto;
  max-width: 220px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto;
}

.fireq-institution-logo-small {
  height: 105px;
  max-width: 150px;
}

.fireq-institution-logo-wide {
  height: 92px;
  max-width: 240px;
}