/* Monochrome interface inspired by the Mazema selection deck. */
:root {
  --ink: #101010;
  --muted: #525252;
  --paper: #f5f5f5;
  --line: #c8c8c8;
  --green: #101010;
  --white: #fff;
  --chevron: #525252;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

::selection { background: #d4d4d4; color: #101010; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.top {
  background: #101010;
  color: #fff;
}

.bar { min-height: 68px; }
.bar .brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-right: 16px;
}

.bar select { --chevron: #fff; }
.bar #workspace,
.bar .main-nav select:hover,
.bar .main-nav button:hover,
.bar .workspace-nav button:hover {
  background-color: #282828;
  border-color: #777;
}

.book-title {
  padding-block: clamp(24px, 5vw, 56px) 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 20px;
}

.book-title h1 {
  font-size: clamp(2rem, 5.8vw, 4.25rem);
  line-height: .99;
  letter-spacing: -.04em;
  font-weight: 800;
}

.sheethead h2 { font-weight: 780; }
button, select, input, textarea { border-radius: 5px; }
.primary:hover { background: #363636; }

.sheethead, .foot, .book-nav, .metrics, .cost-metrics div,
.service-spec h3, thead, tbody tr:nth-child(even) {
  background: #efefef;
}

.book-group { border-color: var(--line); }
.book-group summary:hover, .book-item:hover, .recipe[aria-current=true] {
  background: #ededed;
  border-color: var(--line);
}

.book-count, .badge-type, .badge-service, .badge-archived, .badge-trial {
  color: var(--ink);
  background: #ededed;
  border-color: var(--line);
}

.book-item, .service-rows .service-highlight { color: var(--ink); }
.book-item > span { min-width: 0; overflow-wrap: anywhere; }
.book-item > .tape { flex-shrink: 0; }
.guidance-item summary::after, .cost-details summary::after { border-color: var(--muted); }
.swatch[aria-pressed=true] { background: #e8e8e8; }
.steps li::before, .dilution-results .cost-metrics div:first-child {
  color: #fff;
  background: #101010;
}

@media (max-width: 510px) {
  .bar .brand { font-size: 1.1rem; margin-right: 4px; }
  .book-title { flex-wrap: wrap; }
}

@media print {
  .sheethead, .foot { background: #fff; }
  .steps li::before, .dilution-results .cost-metrics div:first-child {
    color: #101010;
    background: #ededed;
  }
}

/* Direct library navigation and area-specific collections. */
.bar .main-nav button[aria-current=true] {
  background: #fff;
  border-color: #fff;
  color: #101010;
}
.library-sections { margin-bottom: 18px; gap: 6px; }
.library-sections button[aria-pressed=true] {
  background: #101010;
  border-color: #101010;
  color: #fff;
}

#allergenFilterLabel[hidden], .allergen-row .badge-list:empty { display: none; }
.allergen-row .allergen-detail > button { margin-top: 8px; }

.demo-guide summary { cursor: pointer; font-weight: 700; }
.demo-guide p { margin-top: .6rem; }
.demo-guide ol { padding-inline-start: 1.4rem; margin-block: .5rem 0; }
.demo-guide li + li { margin-top: .35rem; }

.language-menu { position: relative; }
.language-menu summary {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  border: 1px solid #777;
  border-radius: 5px;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover, .language-menu[open] summary { background: #282828; }
.language-options {
  position: absolute;
  z-index: 5;
  inset-block-start: calc(100% + 6px);
  inset-inline-start: 0;
  display: grid;
  gap: 2px;
  padding: 4px;
  background: #101010;
  border: 1px solid #777;
  border-radius: 5px;
}
.bar .workspace-nav .language-options button { min-width: 52px; }
.bar .workspace-nav .language-options button[aria-pressed=true] {
  background: #fff;
  color: #101010;
}


.bar .main-nav #operationsNav { width: auto; max-width: 12rem; }
.operation-table { margin-top: 1rem; }
.operation-table th, .operation-table td { white-space: nowrap; }
.operation-table tbody th { white-space: normal; min-width: 130px; }
.operation-table small { display: block; }
.operation-table td .row { justify-content: end; flex-wrap: nowrap; }
