/* Installation guides (docs/install/*.md): a summary strip at the top, and the steps numbered as the headings
   marked with '{: .dcn-step }'. */

.dcn-install-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1px;
  margin: 0 0 24px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  overflow: hidden;
  background: #d9e2ec;
}

.dcn-install-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2933;
  background: #f5f8fc;
}

.dcn-install-summary-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2b95f6;
}

.rst-content {
  counter-reset: dcn-install-step;
}

.rst-content h2.dcn-step {
  position: relative;
  margin-top: 40px;
  padding: 0 0 8px 48px;
  border-bottom: 2px solid #e3f2fd;
  counter-increment: dcn-install-step;
}

.rst-content h2.dcn-step::before {
  content: counter(dcn-install-step);
  position: absolute;
  top: -2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
  color: #fff;
  background: #2b95f6;
}

/* Overview of the installation paths (docs/install/index.md): one card per platform, its steps laid on a horizontal
   timeline, a vertical one on narrow screens. */

.dcn-paths {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 32px;
}

.dcn-path {
  padding: 18px 20px;
  border: 1px solid #d9e2ec;
  border-left: 4px solid #2b95f6;
  border-radius: 10px;
  background: #fff;
}

.dcn-path-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rst-content .dcn-path-header h3 {
  margin: 0;
  font-size: 18px;
  color: #1f2933;
}

.dcn-path-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1565c0;
  background: #e3f2fd;
}

.rst-content ol.dcn-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 16px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: dcn-timeline;
}

.rst-content ol.dcn-timeline li {
  position: relative;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
  counter-increment: dcn-timeline;
}

.rst-content ol.dcn-timeline li::before {
  content: counter(dcn-timeline);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #2b95f6;
}

/* The line joining a step to the next one */
.rst-content ol.dcn-timeline li::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 28px;
  right: -16px;
  height: 2px;
  background: #cfe3fb;
}

.rst-content ol.dcn-timeline li:last-child::after {
  display: none;
}

.dcn-timeline-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  line-height: 1.4;
  color: #1f2933;
}

.dcn-timeline-text {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #52606d;
}

.rst-content a.dcn-path-link {
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 700px) {
  .rst-content ol.dcn-timeline {
    grid-template-columns: 1fr;
  }

  .rst-content ol.dcn-timeline li {
    padding: 0 0 18px 40px;
  }

  .rst-content ol.dcn-timeline li:last-child {
    padding-bottom: 0;
  }

  .rst-content ol.dcn-timeline li::after {
    top: 28px;
    bottom: 0;
    left: 13px;
    right: auto;
    width: 2px;
    height: auto;
  }
}
