/* Focused accessibility and usability corrections. Keep separate from broader design work. */
.surprise-button,
.ghost {
  color: var(--paper);
}

.has-open-dossier {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.dossier-dialog[open] {
  overscroll-behavior: contain;
}

/* Canonical pages and homepage Dossiers share the same evidence links. */
.source-shelf a.source-row,
.source-shelf a.source-row:visited {
  color: var(--paper);
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.source-shelf a.source-row strong {
  color: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

.source-shelf a.source-row .year,
.source-shelf a.source-row span {
  color: var(--paper2);
  line-height: 1.5;
}

.source-shelf a.source-row:hover strong,
.source-shelf a.source-row:focus-visible strong {
  text-decoration-thickness: 2px;
}

.source-shelf a.source-row:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.category,
.score,
.read,
.eyebrow,
.microcopy,
.trail-node small,
.source-row .year,
.source-row span,
.truth b,
.search-result span,
.share-idea,
.share-status,
.public-trail-index,
.trail-question-shift span,
.trail-reflection-label {
  font-size: 12px;
}

.trail-node .node-kind {
  display: block;
  margin-top: 8px;
  color: var(--muted2);
  letter-spacing: .08em;
}

.trail-node.is-reflection {
  cursor: default;
}

.trail-reflection-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (min-width: 701px) and (max-width: 860px) {
  .topbar nav .nav-link {
    display: inline-flex !important;
  }
}
