/*
 * Companion headers share the same joined two-tone construction as their
 * content lanes: a grey reading side and a black value side. This avoids a
 * black capsule sitting inside a larger grey header.
 */
.certain-panel .panel-title,
.asset-panel .panel-title {
  display: grid;
  align-items: stretch;
  min-height: 42px;
  height: 42px;
  margin: 6px 7px 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: #191f21;
  overflow: hidden;
}

/* The value header is centred exactly above the value lane in each panel. */
.certain-panel .panel-title {
  grid-template-columns: minmax(0, 1fr) 90px;
}

.asset-panel .panel-title {
  grid-template-columns: minmax(0, 1fr) calc(52.5% + 3px);
}

.certain-panel .panel-title > span,
.asset-panel .panel-title > span {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0 12px;
}

.certain-panel .panel-horizon,
.asset-panel .panel-horizon {
  position: static;
  grid-column: 2;
  grid-row: 1;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  background: #0b0e0f;
  box-shadow: none;
  place-self: stretch;
}

@media (max-width: 760px) {
  .certain-panel .panel-title,
  .asset-panel .panel-title {
    min-height: 38px;
    height: 38px;
    margin: 5px 6px 0;
    border-radius: 9px;
  }

  .certain-panel .panel-title {
    grid-template-columns: minmax(0, 1fr) 80px;
  }

  .asset-panel .panel-title {
    grid-template-columns: minmax(0, 1fr) calc(52.5% + 3px);
  }

  .certain-panel .panel-title > span,
  .asset-panel .panel-title > span {
    padding-right: 6px;
    padding-left: 10px;
    font-size: 13px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
}
