/* ============================================================
   Step by Step guides — list + detail
   Extends style.css (both must be loaded)
   ============================================================ */

/* ── LIST ──────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}
.step-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.step-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.step-card-emoji { font-size: 34px; flex-shrink: 0; }
.step-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.step-card-title { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.step-card-sub { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.step-card-cat {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 50px;
  padding: 3px 10px;
  margin-top: 4px;
}
.step-card-arrow { font-size: 22px; color: var(--primary); flex-shrink: 0; }

/* ── DETAIL PAGE ───────────────────────────────────────────── */
.step-page { padding: 40px 0 60px; background: var(--bg-gray); min-height: 60vh; }
.step-container { max-width: 780px; }
.step-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 20px;
}
.step-back:hover { color: var(--primary); }

.step-header { margin-bottom: 28px; }
.step-emoji { font-size: 48px; display: block; margin-bottom: 8px; }
.step-header h1 { font-size: 32px; font-weight: 900; color: var(--text-primary); line-height: 1.25; }
.step-header p { font-size: 16px; color: var(--text-secondary); margin-top: 8px; line-height: 1.6; }

/* Shared section chrome */
#step-body h2 { font-size: 21px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.sec-intro { font-size: 15px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 18px; }
.sec-footnote { font-size: 14px; color: var(--text-secondary); font-style: italic; line-height: 1.6; margin-top: 10px; }
.sec-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 20px;
}

/* Scenario */
.sec-scenario {
  background: var(--primary-light);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 20px;
}
.scenario-body { font-size: 16px; line-height: 1.75; color: var(--text-primary); font-style: italic; }
.scenario-note {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-primary);
}

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}
.check-list li::before {
  content: '☐';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--primary);
  font-size: 17px;
}

/* Branch (the decision point) */
.sec-branch { margin-bottom: 20px; }
.branch-opt {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.branch-opt.open { border-color: var(--primary); border-width: 2px; }
.branch-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.branch-head:hover { background: var(--bg-gray); }
.branch-emoji { font-size: 24px; }
.branch-label { flex: 1; font-size: 17px; font-weight: 700; color: var(--text-primary); }
.branch-opt.open .branch-label { color: var(--primary); }
.branch-chev { font-size: 15px; color: var(--text-secondary); transition: transform 0.2s; }
.branch-opt.open .branch-chev { transform: rotate(90deg); }
.branch-body { display: none; padding: 0 22px 22px; border-top: 1px solid var(--border); }
.branch-opt.open .branch-body { display: block; padding-top: 20px; }

.block-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 18px 0 8px;
}
.sign-list { margin: 0; padding-left: 20px; }
.sign-list li { font-size: 15px; line-height: 1.6; color: var(--text-primary); margin-bottom: 5px; }
.why-box { background: var(--bg-gray); border-radius: 12px; padding: 16px; margin-top: 18px; }
.why-label { font-size: 12px; font-weight: 800; color: var(--text-secondary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.why-box p { font-size: 15px; line-height: 1.65; color: var(--text-primary); margin: 0; }

.script-box { background: var(--primary-light); border-radius: 12px; padding: 18px; margin-top: 18px; }
.script-label { font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.script-label.bad { color: #C62828; }
.script-label.good { color: #2E7D32; margin-top: 14px; }
.script-instead { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.script-try { font-size: 16px; color: var(--text-primary); font-weight: 600; line-height: 1.7; margin: 0; }

.step-list { margin: 0; padding-left: 22px; }
.step-list li { font-size: 15px; line-height: 1.65; color: var(--text-primary); margin-bottom: 10px; }

/* Avoid */
.sec-avoid {
  background: #FFF5F5;
  border-left: 4px solid #E53935;
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 20px;
}
.avoid-row { margin-bottom: 18px; }
.avoid-dont { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.6; }
.avoid-why { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-top: 3px; }

/* Expect */
.expect-row { margin-bottom: 18px; }
.expect-reaction { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.6; }
.expect-response { font-size: 15px; color: var(--text-secondary); line-height: 1.65; margin-top: 4px; }

/* Warning + helplines */
.sec-warn {
  background: #FFF5F5;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 20px;
}
.sec-warn h2 { color: #E53935; }
.warn-list { margin: 0 0 16px; padding-left: 20px; }
.warn-list li { font-size: 15px; line-height: 1.65; color: var(--text-primary); margin-bottom: 6px; }
.help-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.help-row:hover { border-color: #E53935; }
.help-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.help-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.help-hours { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.help-num { font-size: 15px; font-weight: 800; color: #E53935; white-space: nowrap; }

/* CTA */
.sec-cta {
  background: var(--primary-light);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
}
.sec-cta h2 { color: var(--primary-dark); }
.sec-cta p { font-size: 15px; line-height: 1.7; color: var(--text-primary); margin: 8px 0 20px; }
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}
.cta-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding: 18px; gap: 12px; }
  .step-card-emoji { font-size: 28px; }
  .step-card-title { font-size: 16px; }
  .step-header h1 { font-size: 25px; }
  .sec-card, .sec-scenario, .sec-avoid, .sec-warn, .sec-cta { padding: 20px; }
  .branch-head { padding: 15px 16px; gap: 10px; }
  .branch-label { font-size: 15px; }
  .branch-body { padding: 0 16px 18px; }
  .branch-opt.open .branch-body { padding-top: 16px; }
}
