/* LED Sign Builder — Step 6 recommended display
   Load after led-sign-builder-rail-readability.css. */

.builder-rail.step-display {
  width: 320px;
  min-width: 320px;
  background: #f7f8fa;
  color: #121820;
  font-family: Arial, Helvetica, sans-serif;
}

.step-display .rail-content {
  padding: 14px 16px 22px;
}

.step-display .step-kicker {
  margin: 0 0 7px;
  color: #667281;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-display .main-progress {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  margin: 0 0 9px;
}

.step-display .main-progress > span {
  height: 3px;
  background: #d9dee5;
}

.step-display .main-progress > span.is-complete,
.step-display .main-progress > span.is-current {
  background: #14171c;
}

.step-display .rail-rule {
  height: 1px;
  margin: 0 0 11px;
  border: 0;
  background: #9ba4af;
}

.step-display .project-summary {
  display: grid;
  gap: 5px;
  margin: 0 0 13px;
}

.step-display .summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #d6dce3;
  border-radius: 4px;
  background: #fff;
}

.step-display .summary-copy {
  overflow: visible;
  color: #24303d;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.step-display .summary-edit {
  min-height: 30px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #2c4d65;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.step-display h1 {
  margin: 0 0 7px;
  color: #10161d;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.08;
}

.step-display .page-help {
  margin: 0 0 13px;
  color: #5c6978;
  font-size: 13px;
  line-height: 1.45;
}

.step-display .recommendation-card {
  padding: 13px;
  border: 1px solid #cbd3dc;
  border-radius: 6px;
  background: #fff;
}

.step-display .recommendation-label {
  margin: 0 0 4px;
  color: #667281;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-display .display-size {
  margin: 0;
  color: #10161d;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}

.step-display .size-order {
  margin: 3px 0 12px;
  color: #667281;
  font-size: 11px;
}

.step-display .recommendation-details {
  margin: 0;
}

.step-display .detail-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #e1e5ea;
}

.step-display .detail-row dt {
  color: #667281;
  font-size: 11px;
  line-height: 1.3;
}

.step-display .detail-row dd {
  margin: 0;
  color: #1c2631;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.step-display .detail-secondary {
  display: block;
  margin-top: 2px;
  color: #5c6978;
  font-size: 11px;
  font-weight: 400;
}

.step-display .fit-note {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-left: 3px solid #14171c;
  background: #ffffff;
  color: #374351;
  font-size: 12px;
  line-height: 1.4;
}

.step-display .custom-group {
  margin-top: 15px;
}

.step-display .custom-group h2 {
  margin: 0 0 8px;
  color: #24303d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.step-display .size-stepper,
#style-step .size-stepper {
  display: grid;
  grid-template-columns: 62px 44px minmax(0, 1fr) 44px;
  gap: 5px;
  align-items: center;
  margin-bottom: 7px;
}

.step-display .size-stepper > span:first-child,
#style-step .size-stepper > span:first-child {
  color: #4f5d6b;
  font-size: 12px;
}

.step-display .stepper-value,
#style-step .stepper-value {
  min-width: 0;
  text-align: center;
  color: #111820;
  font-size: 14px;
  font-weight: 700;
}

.step-display .stepper-button,
#style-step .stepper-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  background: #fff;
  color: #111820;
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}

.step-display .choice-grid,
#style-step .choice-grid,
.step-display .clarity-list {
  display: grid;
  gap: 7px;
}

.step-display .choice-grid,
#style-step .choice-grid {
  grid-template-columns: 1fr 1fr;
}

.step-display .display-choice,
#style-step .display-choice {
  position: relative;
  min-height: 48px;
  padding: 9px 27px 9px 9px;
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  background: #fff;
  color: #17202a;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.step-display .display-choice[aria-pressed="true"],
#style-step .display-choice[aria-pressed="true"] {
  border-color: #14171c;
  background: #fff;
  box-shadow: 0 0 0 2px #14171c inset;
}

.step-display .display-choice[aria-pressed="true"]::after,
#style-step .display-choice[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #14171c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.step-display .display-choice strong,
.step-display .display-choice small,
#style-step .display-choice small {
  display: block;
}

.step-display .display-choice small,
#style-step .display-choice small {
  margin-top: 2px;
  color: #5c6978;
  font-size: 11px;
}

.step-display .actions {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.step-display .primary-action,
.step-display .secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

.step-display .primary-action {
  border: 1px solid #14171c;
  background: #ffe83f;
  color: #10161d;
}

.step-display .secondary-action {
  border: 1px solid #cbd3dc;
  background: #fff;
  color: #24303d;
}

.step-display .back-link {
  display: block;
  min-height: 36px;
  margin-top: 9px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #2c4d65;
  font: inherit;
  font-size: 12px;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

.step-display :focus-visible {
  outline: 3px solid #1f6fb2;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .builder-rail.step-display {
    width: 100%;
    min-width: 0;
  }
}

