/* Shared first-steps plan builder: /start.html and the calculator's parkrun panel. */
.plan-form,
.plan-output,
.beginner-app {
  --bp-line: var(--page-line);
  --bp-surface: var(--page-surface);
  --bp-tint: var(--page-surface2);
  --bp-muted: var(--page-muted);
  --bp-link: var(--bp-link);
}
.plan-output {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  padding: 24px;
  min-height: 200px;
}

.choice-set {
  border: 0;
  margin: 0 0 30px;
  padding: 0;
}
.choice-set > legend {
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 14px;
  padding: 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  background: var(--bp-surface);
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: #4395a6;
  box-shadow: 0 0 0 2px #4395a6 inset;
}
.choice input {
  margin-top: 4px;
  accent-color: #4395a6;
  flex: none;
}
.choice-text b {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.choice-text small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--bp-muted);
  margin-top: 3px;
}
.date-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  max-width: 260px;
}
.start-page input[type="date"],
.start-page input[type="search"],
.start-page select {
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--bp-line);
  border-radius: 4px;
  background: var(--bp-surface);
  color: var(--page-text);
}
.health-question {
  border: 0;
  border-top: 1px solid var(--bp-line);
  margin: 0;
  padding: 14px 0;
}
.health-question legend {
  font-size: 14px;
  line-height: 1.55;
  padding: 0;
  margin-bottom: 10px;
  float: left;
  width: 100%;
}
.yes-no {
  clear: both;
  display: flex;
  gap: 10px;
}
.yes-no .choice {
  padding: 8px 16px;
}
.plan-message {
  font-size: 15px;
}
.plan-empty {
  color: var(--bp-muted);
}
.plan-errors {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--page-accent);
  font-weight: 650;
}
.consult-box {
  border: 2px solid var(--brand-gold);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.consult-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.consult-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-weight: 650;
  font-size: 14px;
}
.consult-check input {
  margin-top: 4px;
}
.plan-summary {
  border-bottom: 1px solid var(--bp-line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.summary-line {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.5;
}
.plan-note {
  margin-top: 8px !important;
  font-size: 14px;
  color: var(--bp-muted);
}
.plan-weeks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.plan-week {
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  padding: 14px 16px;
}
.plan-week.phase-parkrun {
  border-color: var(--brand-gold);
  border-width: 2px;
}
.plan-week-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin-bottom: 6px;
}
.plan-week-head b {
  font-size: 15px;
}
.plan-week-head span {
  font-size: 13px;
  color: var(--bp-muted);
}
.plan-week-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bp-link);
}
.workout {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}
.plan-week-totals {
  margin-top: 6px !important;
  font-size: 12px;
  color: var(--bp-muted);
}
.plan-week-days {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
}
.plan-week-days li {
  font-size: 12px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bp-tint);
}
.plan-week-days li.is-parkrun {
  background: var(--brand-gold);
  color: #182326;
  border-radius: 6px;
  flex-basis: 100%;
}
.plan-week-days li.is-parkrun span {
  display: block;
  font-weight: 500;
  margin-top: 2px;
}
.plan-rules {
  margin-top: 20px;
  border-top: 1px solid var(--bp-line);
  padding-top: 16px;
}
.plan-rules h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.plan-rules ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  display: grid;
  gap: 6px;
}

.plan-option + .plan-option,
.plan-options .plan-option {
  margin-top: 10px;
}
.plan-option > b {
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.4px;
  color: var(--bp-link);
  margin-bottom: 4px;
}
.plan-options {
  margin-top: 10px;
  border-top: 1px dashed var(--bp-line);
  padding-top: 6px;
}
.plan-options summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--bp-link);
  padding: 4px 0;
}
.plan-week-days li.has-drill span {
  margin-left: 6px;
  font-weight: 750;
  color: var(--bp-link);
}
.parkrun-variants {
  margin: 6px 0 0;
  padding-left: 18px;
  font-weight: 500;
}
.plan-drill {
  margin-top: 8px !important;
  font-size: 12px;
  color: var(--bp-muted);
}
.drill-title {
  font-size: 17px;
  margin-bottom: 14px;
}
.start-stride {
  background: var(--bp-tint);
}
.parkrun-actions .text-link {
  align-self: center;
  font-size: 13px;
}

.plan-form .start-small,
.plan-output .start-small {
  margin-top: 8px;
  font-size: 12px;
  color: var(--bp-muted);
}
.plan-output .text-link {
  color: var(--bp-link);
  font-weight: 700;
}
@media (max-width: 760px) {
  .plan-form .choice-grid {
    grid-template-columns: 1fr;
  }
  .plan-output {
    padding: 16px;
  }
}

/* Calculator panel */
.beginner-app {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--bp-line);
  border-radius: 10px;
  background: var(--bp-tint);
}
.beginner-app > h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.beginner-app-grid {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}
.beginner-app .choice-set legend {
  font-size: 14px;
}
.parkrun-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.parkrun-picker label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.parkrun-picker :is(select, input) {
  font: inherit;
  padding: 9px 10px;
  border: 1px solid var(--page-line);
  border-radius: 6px;
  background: var(--page-surface);
  color: var(--page-text);
}
@media (max-width: 520px) {
  .parkrun-picker {
    grid-template-columns: 1fr;
  }
}

/* The calculator styles every input as a full-width text field; radios and checkboxes stay native. */
.beginner-app :is(input[type="radio"], input[type="checkbox"]) {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.beginner-app label {
  margin-bottom: 0;
  font-size: inherit;
  color: var(--page-text);
}
.beginner-app .choice-text small,
.beginner-app .start-small {
  color: var(--bp-muted);
}
.beginner-app input[type="date"] {
  max-width: 240px;
}
.parkrun-picker label {
  margin-bottom: 0;
}
.plan-week-days .parkrun-variants li {
  background: none;
  padding: 2px 0;
  border-radius: 0;
  font-weight: 500;
  color: inherit;
}
