/* MyVillage Planner — Build side (Coach + Print Pack) styles.
   Base chrome comes from ../styles.css + ../assets/members.css +
   planner.css; this file styles only the Plan|Build switch and the
   studio. Floors: body text >= 16px, every control >= 44px tall. */

/* ---- Plan | Build switch (the app's Design & Build shape) ---- */
.side-switch {
  display: flex;
  gap: 8px;
  margin: 20px 0 6px;
  padding: 6px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 560px;
}
.side-btn {
  flex: 1 1 0;
  min-height: 52px;
  padding: 10px 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--pine-dark);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
.side-btn:hover, .side-btn:focus-visible { border-color: var(--pine); }
.side-btn.is-active { background: var(--pine); color: var(--cream); }

/* On the Build side the Plan sections step aside (planner.js still
   owns their hidden flags; the side class is the switch's word). */
main.side-build #picker,
main.side-build #editor,
main.side-build #signed-out,
main.side-build #load-error,
main.side-build #notice-box { display: none !important; }

.to-build-row { margin: 16px 0 4px; }
.to-build-row .btn { min-height: 52px; }

/* ---- studio scaffolding ---- */
.studio-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: flex-end;
  margin: 14px 0 16px;
}
.studio-picker label {
  display: block;
  font-weight: 700;
  color: var(--pine-dark);
  margin-bottom: 6px;
}
.studio-picker select {
  min-height: 52px;
  font: inherit;
  font-size: 1.05rem;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--ink);
  max-width: 100%;
}
.studio-saved-note { flex: 1 1 300px; margin: 0; }

.studio-noplan { text-align: center; }
.studio-noplan img { margin: 6px auto 2px; }
.studio-noplan h2 { margin-top: 6px; }

/* ---- the Coach hero (the app's pine hero, in site dress) ---- */
.studio-hero {
  background: var(--pine);
  border: 1px solid var(--pine-dark);
  border-radius: var(--radius);
  color: var(--cream);
  padding: 24px 26px;
  margin-bottom: 26px;
}
.studio-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 4px;
}
.studio-eyebrow-pine { color: var(--pine); }
.studio-hero h2 {
  color: var(--cream);
  font-family: var(--serif);
  margin: 0 0 6px;
}
.studio-meta { color: #E4DCC4; margin: 2px 0; }
.studio-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 6px;
}
.studio-progress {
  flex: 1 1 auto;
  height: 14px;
  border-radius: 999px;
  background: rgba(247, 241, 227, .25);
  overflow: hidden;
}
.studio-progress-fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 999px;
  transition: width .3s ease;
}
.studio-percent { font-weight: 700; margin: 0; white-space: nowrap; }
.studio-next {
  background: rgba(247, 241, 227, .13);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}
.studio-next-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 2px;
}
.studio-next-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 4px;
}
.studio-next p:last-child { margin-bottom: 0; }

/* ---- the step timeline ---- */
.studio-timeline-head { margin: 4px 0 14px; }
.studio-timeline-head h2 { margin: 0 0 4px; }
.studio-timeline-head p { margin: 0; }
#studio-check-state { color: var(--pine); font-weight: 600; }

.step-row { display: flex; gap: 12px; }
.step-rail {
  flex: 0 0 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-node {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--line);
  color: #55604F;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.step-node.done { background: var(--pine); border-color: var(--pine); color: var(--cream); }
.step-node.current { border-color: var(--gold); border-width: 3px; color: var(--pine-dark); }
.step-line { flex: 1 1 auto; width: 2px; min-height: 26px; background: var(--line); margin: 4px 0; }

.step-card {
  flex: 1 1 auto;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(34, 48, 31, .06);
}
.step-card.current { border-color: var(--gold); border-width: 2px; }
.step-head { display: flex; gap: 12px; align-items: flex-start; }
.step-check {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 2px solid var(--pine);
  background: #fff;
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-check.done { background: var(--pine); }
.step-check:disabled { opacity: .5; cursor: default; }
.step-title-wrap { flex: 1 1 auto; }
.step-current-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: #8a6d1c;
  margin: 0;
}
.step-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pine-dark);
  margin: 0 0 4px;
}
.step-title.done { color: #55604F; }
.step-badge-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.step-badge {
  display: inline-block;
  background: #EAF1E6;
  border: 1px solid var(--line);
  color: var(--pine-dark);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .9rem;
  font-weight: 700;
}
.step-relation { font-size: .95rem; color: #55604F; }
.step-body { margin: 10px 0 0; }
.step-alt {
  background: #EAF1E6;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
}
.step-alt-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--pine);
  margin: 0 0 3px;
}
.step-alt p:last-child { margin-bottom: 0; }
.step-later-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: #8a6d1c;
  margin: 14px 0 0;
}
.step-lines {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}
.step-lines p { margin: 0 0 6px; }
.step-lines p:last-child { margin-bottom: 0; }

/* ---- the Print Pack card ---- */
.studio-pack { margin-top: 10px; border-top: 5px solid var(--gold); }
.studio-pack h2 { margin-top: 0; }
.studio-pack-status {
  background: #F1EAD6;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
}
.studio-pack-status-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--pine);
  margin: 0;
}
.studio-pack-status-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pine-dark);
  margin: 2px 0 4px;
}
.studio-pack-paper-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--pine);
  margin: 14px 0 6px;
}
.studio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-chip {
  min-height: 48px;
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.studio-chip.is-active { border-color: var(--pine); background: var(--pine); color: var(--cream); }
#pack-supplies { margin-top: 12px; }
#pack-supplies h3 { margin: 0 0 8px; }
.supply-row { margin-bottom: 10px; }
.supply-row p { margin: 0 0 2px; }
.supply-name { font-weight: 700; color: var(--pine-dark); }
.supply-links { display: flex; gap: 18px; }
.supply-links a { color: var(--brick); font-weight: 700; }
.supply-later { color: #55604F; }

/* ---- pack reading preview ---- */
#studio-preview { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.preview-page {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 14px;
  background: #fff;
}
.preview-page h4 { font-family: var(--serif); color: var(--pine-dark); margin: 0 0 8px; font-size: 1.2rem; }
.preview-page p { margin: 0 0 5px; }
.preview-page p:last-child { margin-bottom: 0; }
