/*
 * The course's shape (Kursprofil, js/components/CourseShape.js): the drawing
 * of the red pen, red against blue in the analysis panel and under the
 * course board.
 */

/* --- The drawing ------------------------------------------------------------------ */

.cs-intro,
.cs-hint {
  font-size: 0.9rem;
}

.cs-hint {
  margin: 0.75rem 0 0;
  color: #555;
}

.cs-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(14rem, 2fr);
  gap: 1rem 1.5rem;
  align-items: center;
}

.cs-chart {
  max-width: 26rem;
  width: 100%;
  margin: 0 auto;
  cursor: crosshair;
}

.cs-sliders {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cs-scale {
  display: flex;
  justify-content: space-between;
  margin-left: 9rem;
  margin-right: 1.75rem;
  color: #666;
  font-size: 0.75rem;
}

.cs-slider {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.cs-type {
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-type i {
  color: var(--cb-color, #555);
}

.cs-slider .form-range {
  accent-color: #C0392B;
}

.cs-value {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
  .cs-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Under the radar in the analysis panel --------------------------------------------- */

.course-shape-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #444;
}

/* --- Under the course board ----------------------------------------------------------- */

.cb-shape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--bh-black, #111);
  border-left: 8px solid #C0392B;
  background: #fff;
}

.cb-shape-chart {
  width: 13rem;
}

.cb-shape-text {
  display: flex;
  flex: 1 1 16rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.cb-shape.is-empty {
  border-left-color: #c9c3b4;
}

@media print {
  .cb-shape.is-empty,
  .course-shape-row button {
    display: none !important;
  }

  .cb-shape {
    break-inside: avoid;
  }
}
