/* How It Works — care-tinted section */
.upside-hiw { background: #F4F9FF; }
body.theme-warm .upside-hiw { background: var(--cream); }

/* Editorial warm: steps become hairline dividers, ochre active marker (v5_1). */
body.theme-warm .uphiw-steps { gap: 0; }
body.theme-warm .uphiw-step { background: transparent; border: none; border-top: 1px solid #E7D8BC; border-radius: 0; padding: 26px 8px; box-shadow: none; }
body.theme-warm .uphiw-step:hover { background: transparent; }
body.theme-warm .uphiw-step.active { background: transparent; border-top: 1px solid #E7D8BC; box-shadow: none; }
body.theme-warm .uphiw-step .uphiw-n { background: #E7D8BC; }
body.theme-warm .uphiw-step.active .uphiw-n { background: var(--ochre); }

.uphiw-grid { display: grid; grid-template-columns: 320px 1fr; gap: 42px; margin-top: 44px; }
.uphiw-steps { display: flex; flex-direction: column; gap: 12px; }
.uphiw-step {
  display: flex; gap: 15px; padding: 22px;
  border-radius: var(--r-md); cursor: pointer;
  background: rgba(255, 255, 255, .65); border: 1.5px solid transparent;
  transition: .2s; text-align: left; font-family: var(--font); width: 100%;
}
.uphiw-step:hover { background: #fff; }
.uphiw-step.active { background: #fff; border-color: var(--brand-primary); box-shadow: 0 10px 26px rgba(9, 76, 138, .08); }
.uphiw-n {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--secl); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; transition: .2s;
}
.uphiw-step.active .uphiw-n { background: var(--brand-primary); }
.uphiw-step-text strong { display: block; color: var(--dark); font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.uphiw-step-text em { font-style: normal; color: var(--sec); font-size: 13px; }

.uphiw-panel {
  display: none;
  background: #fff; border-radius: var(--r-lg); padding: 42px;
  grid-template-columns: 1fr 200px; gap: 24px; align-items: center;
  min-height: 340px; border: 1px solid #eef2f6;
}
body.theme-warm .uphiw-panel { border-color: #f0e7d6; box-shadow: 0 24px 60px -28px rgba(9, 76, 138, .14); }
.uphiw-panel.active { display: grid; }
.uphiw-panel .upside-eyebrow { margin-bottom: 10px; }
.uphiw-panel h3 { font-size: 27px; margin-bottom: 14px; }
.uphiw-panel p { font-size: 15.5px; }
.uphiw-panel ul { margin: 16px 0 0; padding-left: 18px; }
.uphiw-panel li { font-size: 14.5px; color: var(--secdark); margin-bottom: 8px; }
.uphiw-illus { display: flex; align-items: center; justify-content: center; }
.uphiw-illus-img { max-width: 180px; min-height: 150px; }

/* No illustration set (or it failed to load) → drop the empty column and let the
   panel body fill the full width instead of leaving a placeholder gap. */
.uphiw-panel:not(:has(.uphiw-illus img)) { grid-template-columns: 1fr; }
.uphiw-illus:not(:has(img)) { display: none; }

@media (max-width: 1199px) {
  .uphiw-grid { grid-template-columns: 1fr; }
  .uphiw-panel { grid-template-columns: 1fr; }
  .uphiw-illus { display: none; }
}
