/* ---------------------------------------------------------------------------
- Viewer (building/*) styles
- Restored from commit e994fd3 of web/static/website/css/custom.css,
- isolated here so a future site redesign can't overwrite them again.
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'DejaVu Sans Mono';
  src: url('/static/webclient/fonts/DejaVuSansMono-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.card {
  background-color: var(--thorns-panel);
}

.list-group-item {
  background-color: var(--thorns-panel);
}

.viewer-title {
  font-size: 1.8rem;
  text-align: center;
}

.viewer-body {
  background: var(--thorns-viewer-bg);
  color: var(--thorns-viewer-text);
  font-size: .8em;
  font-family: 'DejaVu Sans Mono', Consolas, Inconsolata, 'Lucida Console', monospace;
  line-height: 1.4em;
  overflow-x: auto;
  padding-left: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 5px;
}

.viewer-table {
  padding-top: 15px;
}

.viewer-body td,
.viewer-body th {
  padding-left: 10px;
  padding-right: 10px;
}

.label {
  font-weight: bold;
  white-space: nowrap;
}

.label.level-2 {
  padding-left: 1.5em;
}

.minimap {
  padding: 0;
  margin: 0;
  line-height: 1em;
  overflow-x: auto;
  display: block;
}

.breadcrumb-trail {
  font-size: 0.9em;
  color: var(--thorns-stone);
  margin-bottom: 0.6rem;
}

.breadcrumb-trail a {
  color: var(--thorns-parchment-muted);
  text-decoration: none;
}

.breadcrumb-trail a:hover {
  color: var(--thorns-parchment);
  text-decoration: underline;
}

.breadcrumb-trail .sep::before {
  content: " > ";
}

/* Paginator */
.pagination {
  background-color: var(--thorns-viewer-bg);
  font-family: 'DejaVu Sans Mono', Consolas, Inconsolata, 'Lucida Console', monospace;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

/* Buttons */
.viewer-button {
  background-color: var(--thorns-panel);
  border: 1px solid var(--thorns-panel-border);
  border-radius: 4px;
  color: var(--thorns-viewer-accent);
  font-family: 'DejaVu Sans Mono', Consolas, Inconsolata, 'Lucida Console', monospace;
  font-size: 0.85em;
  padding: 6px 14px;
  cursor: pointer;
  box-sizing: border-box;
}
.viewer-button:hover {
  border-color: var(--thorns-viewer-accent);
  color: var(--thorns-parchment);
}
.viewer-button:focus {
  outline: 2px solid var(--thorns-viewer-accent);
  outline-offset: 1px;
}
.viewer-button.active {
  background-color: var(--thorns-viewer-accent);
  border-color: var(--thorns-viewer-accent);
  color: var(--thorns-viewer-bg);
  font-weight: bold;
}
.viewer-button.active:hover {
  color: var(--thorns-viewer-bg);
}
.viewer-button:disabled {
  color: var(--thorns-stone);
  border-color: var(--thorns-panel-border);
  cursor: default;
  opacity: 0.6;
}
.viewer-section-header {
  font-weight: bold;
  color: var(--thorns-viewer-accent-dim);
}
.viewer-section-header.level-2 {
  padding-left: 1.5em;
  font-weight: normal;
  font-style: italic;
  color: var(--thorns-viewer-accent);
}