/* Rivers. Same filing type as the rest of the archive. */

.rv-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7em;
  margin: 0.2rem 0 0.9rem;
}

.rv-name {
  margin: 0;
  color: #000;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rv-set {
  margin: 0;
  color: rgba(0, 0, 0, 0.45);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rv-regions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 0.25em;
  row-gap: 0.35em;
  margin: 0 0 0.9rem;
}

.rv-tag {
  display: inline-block;
  box-sizing: border-box;
  margin: 0;
  padding: 0.25em 0.75em;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 0;
  background: transparent;
  color: #111;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.rv-tag:hover {
  border-color: #000;
  background: rgba(0, 0, 0, 0.04);
}

.rv-tag.rv-on {
  background: #111;
  border-color: #111;
  color: #fff;
}

.rv-tag:focus-visible {
  outline: 1px solid #000;
  outline-offset: 2px;
}

.rv-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.rv-card {
  margin: 0;
  width: 100%;
  min-width: 0;
  background: transparent;
}

.rv-card[hidden] {
  display: none;
}

.rv-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: zoom-in;
}

.rv-open:focus-visible {
  outline: 1px solid #000;
  outline-offset: 3px;
}

.rv-open img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
}

.rv-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.1rem 0.35rem;
  padding: 0.3rem 0.4rem 0.35rem;
  background: #fff;
}

.rv-field {
  box-sizing: border-box;
  padding: 0.1rem 0.3rem 0.12rem;
  min-width: 0;
}

.rv-label {
  margin: 0 0 0.08rem;
  color: rgba(0, 0, 0, 0.55);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1.05;
  text-transform: uppercase;
}

.rv-value {
  margin: 0;
  color: #111;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.15;
}

.rv-gauge {
  margin-top: 0.08rem;
  color: #111;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.rv-gauge a {
  color: inherit;
}

.rv-notes,
.rv-credit {
  margin: 1.1rem 0 0;
  max-width: 46em;
  color: rgba(0, 0, 0, 0.45);
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.rv-credit {
  margin-top: 0.7rem;
  color: rgba(0, 0, 0, 0.55);
}

.rv-notes p,
.rv-credit p {
  margin: 0 0 0.35rem;
}

.rv-lb {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  overflow: hidden;
  transition: background 0.32s ease, opacity 0.32s ease;
  cursor: zoom-out;
}

.rv-lb.rv-on {
  opacity: 1;
  background: rgba(0, 0, 0, 0.82);
}

.rv-lb.rv-closing {
  opacity: 0;
  background: rgba(0, 0, 0, 0);
}

.rv-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

.rv-stage img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.rv-contour {
  pointer-events: none;
  cursor: inherit;
}

.rv-lb-controls {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 8px;
}

.rv-contour-switch {
  margin: 0;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.rv-contour-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.rv-contour-track {
  position: relative;
  width: 28px;
  height: 16px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  background: transparent;
  flex: 0 0 auto;
}

.rv-contour-knob {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 0.15s ease, background 0.15s ease;
}

.rv-contour-input:checked + .rv-contour-track {
  border-color: #fff;
  background: transparent;
}

.rv-contour-input:checked + .rv-contour-track .rv-contour-knob {
  transform: translateX(12px);
  background: #fff;
}

.rv-contour-switch.rv-contour-loading .rv-contour-knob {
  opacity: 0.35;
}

.rv-contour-input:focus-visible + .rv-contour-track {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

.rv-lb.rv-drag .rv-stage img {
  cursor: grabbing;
}

.rv-lb-cap {
  flex: 0 1 auto;
  max-height: 38vh;
  overflow: auto;
  margin-top: 6px;
  cursor: default;
}

html.rv-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .rv-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rv-lb,
  .rv-contour-knob {
    transition: none;
  }
}
