:root {
  --accent-color: #008080;
  --q-primary: #005eb8;
}

/* Layout */

.crbe__layout {
  font-family:
    system-ui,
    -apple-system,
    'Helvetica Neue',
    Helvetica,
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.crbe__layout .container {
  padding: 0 24px;
  margin: 0 auto;
  max-width: 1280px;
}

/* Header toolbar */

.crbe__toolbar {
  min-height: 100px;
  display: flex;
  align-items: center;
}

/* Main navigation */

.crbe__nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.crbe__nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px;
  text-decoration: none;
  color: #757575;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.crbe__nav-item svg {
  width: 20px;
  height: 20px;
}

.crbe__nav-item:hover {
  color: #424242;
  background-color: #f5f5f5;
}

.crbe__nav-item.active {
  color: #fff;
  background-color: var(--accent-color, #008080);
  font-weight: 700;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6,
.text-h1,
.text-h2,
.text-h3,
.text-h4,
.text-h5,
.text-h6 {
  font-family: 'Red Hat Mono', monospace !important;
  letter-spacing: normal;
  font-weight: 700;
  color: #0b0b0b;
  padding: 0;
  margin: 0;
  word-spacing: -0.2em;
}

h1,
.text-h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--accent-color, #008080);
}

h2,
.text-h2 {
  font-size: 1.75rem;
  line-height: 1.25;
}
h3,
.text-h3 {
  font-size: 1.5rem;
  line-height: 1.25;
}
h4,
.text-h4 {
  font-size: 1.25rem;
  line-height: 1.35;
}
h5,
.text-h5 {
  font-size: 1.05rem;
  line-height: 1.35;
}

h6,
.text-h6 {
  font-size: 1.05rem;
  line-height: 1.35;
}

.text-caption {
  font-size: 0.825rem !important;
}

.crbe__layout h6 {
  font-family: inherit !important;
  text-transform: none;
  font-size: 18px;
  padding-top: 12px;
}

code,
kbd,
pre,
samp,
.text-mono {
  font-family: 'Red Hat Mono', monospace;
  font-size: 0.9em;
  word-spacing: -0.2em;
}

a {
  color: var(--accent-color, #008080);
}

a:hover {
  text-decoration: none;
}

strong {
  font-weight: 700;
}

.text-wrap-balance {
  text-wrap: balance;
}

.text-caption {
  line-height: 1.45 !important;
}

/* Breadcrumbs */

.crbe__breadcrumbs a {
  color: var(--accent-color, #008080);
  text-decoration: none;
}

.crbe__breadcrumbs a:hover {
  text-decoration: underline;
}

.crbe__breadcrumbs-separator {
  color: #9e9e9e;
}

/* q-list items */

.crbe__layout .q-item {
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s;
}

.crbe__layout .q-item:hover {
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.04);
}

.crbe__layout .q-item--accent {
  background-color: color-mix(in srgb, var(--accent-color, #008080) 7%, transparent);
}

.crbe__layout .q-item--accent:hover {
  background-color: color-mix(in srgb, var(--accent-color, #008080) 14%, transparent);
}

.crbe__layout .q-item .q-item__label.text-h6 {
  font-size: 1.2rem;
  line-height: 1.3;
  text-wrap: balance;
  padding: 0 !important;
}

.crbe__layout .q-item .q-item__section--main ~ .q-item__section--side {
  color: #9e9e9e;
}

/* q-separator */

.q-separator,
hr.q-separator {
  background-color: #e0e0e0;
  border: none;
  height: 1px;
}

/* Shadows */

.crbe-shadow {
  border: 1px solid #eceff1;
  box-shadow: 0 8px 24px rgba(13, 13, 18, 0.04);
}

/* Logo images */

.logo {
  display: block;
  width: 150px;
  height: 90px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

img.sponsor {
  max-height: 50px;
  max-width: 80%;
  filter: grayscale(100%);
  opacity: 0.7;
}

img.sponsor:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Banner image */

.crbe__banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background-size: cover;
  background-position: center;
  z-index: -1;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

/* Markdown content */

.crbe__marked img {
  max-width: 100%;
  height: auto;
}

.crbe__marked ul {
  list-style-type: square;
}

/* Technology cards */

.crbe__tech-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.crbe__tech-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  background: #fff;
  padding: 4px 0;
}

.crbe__tech-nav-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 0;
}

.crbe__tech-nav-item {
  flex: 1 1 145px;
  min-width: 130px;
  border: 0;
  padding: 8px 10px !important;
}

.crbe__tech-nav-item .q-item__label.text-h6 {
  font-size: 0.92rem !important;
}

.crbe__tech-nav-item--active {
  background-color: color-mix(in srgb, var(--accent-color, #008080) 14%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent-color, #008080) 30%, transparent);
}

.crbe__tech-content {
  width: 100%;
}

.crbe__tech-section--hidden {
  display: none;
}

.crbe__tech-card {
  border: 1px solid #eceff1;
  border-radius: 4px;
  height: 100%;
}

.crbe__tech-meta {
  letter-spacing: 0.01em;
}

.crbe__tech-matrix-wrap {
  border: 1px solid #dde4ea;
  overflow-x: auto;
  background: #fff;
}

.crbe__tech-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 780px;
  font-size: 1rem;
}

.crbe__tech-matrix th,
.crbe__tech-matrix td {
  border-bottom: 1px solid #e7edf2;
  padding: 12px 12px;
  vertical-align: middle;
}

.crbe__tech-matrix thead th {
  background: #fafbfc;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid #d7e1e9;
}

.crbe__tech-matrix tbody tr:hover {
  background: #f9fbfd;
}

.crbe__tech-matrix tbody tr:last-child th,
.crbe__tech-matrix tbody tr:last-child td {
  border-bottom: 0;
}

.crbe__tech-matrix-tech-col,
.crbe__tech-matrix-tech-name {
  text-align: left;
  min-width: 280px;
  max-width: 420px;
}

.crbe__tech-matrix-tech-name {
  font-weight: 400;
}

.crbe__tech-matrix-tech-col {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.crbe__tech-matrix-lab-col {
  text-align: center;
  min-width: 120px;
  font-family: inherit;
  font-size: 1rem;
}

.crbe__tech-matrix-lab-name {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.crbe__tech-matrix-lab-uni {
  margin-top: 2px;
}

.crbe__tech-matrix-cell {
  text-align: center;
  font-family: inherit;
  font-weight: 700;
}

.crbe__tech-matrix-cell--available {
  background: color-mix(in srgb, var(--lab-color, var(--accent-color, #008080)) 4%, #fff);
}

.crbe__tech-matrix-cell--empty {
  color: #b0bec5;
}

.crbe__tech-matrix-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid color-mix(in srgb, var(--lab-color, var(--accent-color, #008080)) 80%, #fff);
  text-decoration: none;
  color: color-mix(in srgb, var(--lab-color, var(--accent-color, #008080)) 85%, #263238);
  background: #fff;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.crbe__tech-matrix-link:hover {
  background: var(--lab-color, var(--accent-color, #008080));
  border-color: var(--lab-color, var(--accent-color, #008080));
  color: #fff;
}

.crbe__tech-cleanrooms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crbe__tech-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1.5px solid;
  border-radius: 3px;
  font-family: 'Red Hat Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.crbe__tech-tag:hover {
  background-color: currentColor;
  color: #fff !important;
  text-decoration: none;
}

/* Address */

.crbe__address {
  line-height: 1.6;
}

.crbe__marked p:last-child {
  margin: 0;
}

/* Footer */

.crbe__footer a,
a.inherit {
  color: inherit;
  text-decoration: none;
}

.crbe__footer a:hover,
a.inherit:hover {
  text-decoration: underline;
}

.crbe__footer ul,
.crbe__footer ol {
  list-style: none;
  padding-left: 0;
}

/* Forms */

.errorlist {
  color: #c10015;
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.15rem;
  }
  h6,
  .text-h6 {
    font-size: 1.05rem;
  }

  .crbe__toolbar svg[aria-label='CR.Be'] {
    width: 70px !important;
  }

  .crbe__toolbar {
    justify-content: center;
  }

  .crbe__toolbar .q-space {
    display: none;
  }

  .crbe__nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    gap: 0;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
      0 2px 12px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .crbe__nav-item {
    flex-direction: column;
    gap: 2px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .crbe__nav-item.active {
    background-color: color-mix(in srgb, var(--accent-color, #008080) 12%, transparent);
  }

  .crbe__footer {
    padding-bottom: 80px !important;
  }

  .crbe__tech-layout {
    flex-direction: column;
    gap: 24px;
  }

  .crbe__tech-nav {
    position: sticky;
    top: 8px;
    width: 100%;
  }

  .crbe__tech-nav-scroll {
    gap: 6px;
    padding: 0;
  }

  .crbe__tech-nav-item {
    flex: 1 1 120px;
    min-width: 120px;
  }

  .crbe__tech-matrix {
    min-width: 0;
    display: block;
  }

  .crbe__tech-matrix thead {
    display: none;
  }

  .crbe__tech-matrix tbody,
  .crbe__tech-matrix tr,
  .crbe__tech-matrix th,
  .crbe__tech-matrix td {
    display: block;
    width: 100%;
    border-left: 0;
    border-right: 0;
  }

  .crbe__tech-matrix tr {
    border-bottom: 1px solid #eceff1;
  }

  .crbe__tech-matrix-tech-name {
    min-width: 0;
    max-width: none;
    border-top: 0;
    border-bottom: 0;
    background: #fafbfc;
  }

  .crbe__tech-matrix-cell {
    text-align: left;
    padding: 8px 10px;
  }

  .crbe__tech-matrix-cell::before {
    content: attr(data-lab);
    display: inline-block;
    min-width: 92px;
    margin-right: 8px;
    color: #546e7a;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .crbe__tech-matrix-link {
    width: auto;
    height: auto;
    min-width: 34px;
    padding: 2px 10px;
  }
}
