/* LED Sign Builder — Step 8 project help and review
   Load after led-sign-builder-rail-readability.css. */

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

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

.step-project-help .step-kicker,
.step-project-help .substep-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-project-help .main-progress,
.step-project-help .substep-progress {
  display: grid;
  gap: 3px;
  margin: 0 0 9px;
}

.step-project-help .main-progress {
  grid-template-columns: repeat(8, 1fr);
}

.step-project-help .substep-progress {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 13px;
}

.step-project-help .main-progress > span,
.step-project-help .substep-progress > span {
  height: 3px;
  background: #d9dee5;
}

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

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

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

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

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

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

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

.step-project-help .answer-list,
.step-project-help .conditional-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.step-project-help .answer-option,
.step-project-help .conditional-option {
  position: relative;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 58px;
  padding: 10px 31px 10px 10px;
  border: 1px solid #cbd3dc;
  border-radius: 5px;
  background: #fff;
  color: #151c24;
  cursor: pointer;
}

.step-project-help .conditional-option {
  min-height: 48px;
}

.step-project-help .answer-option:has(input:checked),
.step-project-help .conditional-option:has(input:checked) {
  border-color: #14171c;
  background: #fff;
  box-shadow: 0 0 0 2px #14171c inset;
}

.step-project-help .answer-option:has(input:checked)::after,
.step-project-help .conditional-option:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #14171c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.step-project-help .answer-option input,
.step-project-help .conditional-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #14171c;
}

.step-project-help .answer-title,
.step-project-help .answer-detail {
  display: block;
}

.step-project-help .answer-title {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.step-project-help .answer-detail {
  color: #5c6978;
  font-size: 12px;
  line-height: 1.35;
}

.step-project-help .answer-note,
.step-project-help .uncertain-note {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-left: 3px solid #14171c;
  background: #ffffff;
  color: #374351;
  font-size: 12px;
  line-height: 1.4;
}

.step-project-help .conditional-group {
  margin-top: 13px;
}

.step-project-help .conditional-group h2 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.25;
}

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

.step-project-help .primary-action,
.step-project-help .secondary-action {
  min-height: 46px;
  padding: 9px 14px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}

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

.step-project-help .primary-action:disabled {
  border-color: #d8dce1;
  background: #edf0f3;
  color: #8a949f;
  cursor: not-allowed;
}

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

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

.step-project-help .review-group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d9dee5;
}

.step-project-help .review-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.step-project-help .review-heading h2 {
  margin: 0;
  color: #24303d;
  font-size: 14px;
  font-weight: 700;
}

.step-project-help .review-lines {
  display: grid;
  gap: 5px;
  margin: 0;
}

.step-project-help .review-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  color: #283441;
  font-size: 12px;
  line-height: 1.35;
}

.step-project-help .review-row dt {
  color: #667281;
}

.step-project-help .review-row dd {
  margin: 0;
  font-weight: 700;
}

.step-project-help .confirm-marker {
  align-self: start;
  padding: 2px 5px;
  border-radius: 9px;
  background: #fff3b0;
  color: #594b00;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.step-project-help .notes-label {
  display: block;
  margin: 14px 0 5px;
  color: #24303d;
  font-size: 12px;
  font-weight: 700;
}

.step-project-help .notes-field {
  width: 100%;
  min-height: 82px;
  padding: 9px 10px;
  border: 1px solid #bfc8d2;
  border-radius: 5px;
  background: #fff;
  color: #111820;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  box-sizing: border-box;
}

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

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

