/* Brand styling for qesR pkgdown site. */

:root {
  --qesr-deep: #12355b;
  --qesr-accent: #b5651d;
  --qesr-sand: #eef3f8;
  --qesr-border: #cad6e5;
  --qesr-table-stripe: #f7fafe;
}

body {
  background: #ffffff;
}

.navbar {
  border-bottom: 2px solid rgba(18, 53, 91, 0.24);
}

.navbar-brand {
  letter-spacing: 0.02em;
  font-weight: 700;
}

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

h1, h2, h3 {
  letter-spacing: 0.01em;
}

a {
  color: #0d4070;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img[alt="qesR logo"] {
  display: block;
  margin: 0 auto 1rem auto;
}

table,
.table {
  width: 100%;
  background: transparent;
  border: 0;
  border-collapse: collapse;
  color: #1b2b3b;
}

table th,
.table th {
  background: var(--qesr-deep);
  color: #ffffff;
  border-color: var(--qesr-deep);
  white-space: nowrap;
  vertical-align: middle;
}

table td,
.table td {
  border-color: var(--qesr-border);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}

table tbody tr:nth-child(even),
.table tbody tr:nth-child(even) {
  background: var(--qesr-table-stripe);
}

.table-responsive {
  background: transparent;
  border: 0;
  padding: 0;
  overflow-x: visible;
}

@media (max-width: 992px) {
  .table-responsive {
    overflow-x: auto;
  }
}

.qesr-lang-switch-wrap {
  margin-left: auto;
  padding-left: 0.5rem;
}

.qesr-lang-switch {
  display: inline-block;
  border: 1px solid var(--qesr-deep);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--qesr-deep);
  background: #ffffff;
  text-decoration: none;
}

.qesr-lang-switch:hover,
.qesr-lang-switch:focus {
  background: var(--qesr-deep);
  color: #ffffff;
  text-decoration: none;
}
