.assessment {
  padding: clamp(1rem, 2.65vw, 2rem);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-top: 3px solid #c49a3a;
  border-radius: 7px;
}
.assessment .assessment-instruction { margin-bottom: .8rem; color: var(--muted); font-size: .85rem; }
.assessment .flow-tabs {
  --flow-gap: clamp(1rem, 2.7vw, 2rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .66rem var(--flow-gap);
}
.assessment .hotspot {
  position: relative;
  display: flex;
  min-height: 6rem;
  flex-direction: column;
  justify-content: flex-start;
  gap: .21rem;
  padding: .63rem .78rem;
  background: #fcfaf5;
  border: 1px solid #cfc6b5;
  border-radius: 5px;
  text-decoration: none;
}
.assessment .hotspot:nth-child(2) { background: #e8f0f2; border-color: #a8bfc9; }
.assessment .hotspot:nth-child(-n+3)::after {
  content: "→" / "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: var(--flow-gap);
  color: var(--deep-gold);
  text-align: center;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.assessment .hotspot:hover { border-color: var(--deep-gold); }
.assessment .hotspot[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.assessment .hotspot[aria-selected="true"] .step-number { color: var(--gold); }
.assessment .hotspot[aria-selected="true"] .step-cue { color: #e3edf0; }
.assessment .hotspot strong { line-height: 1.22; }
.assessment .step-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  margin-bottom: .2rem;
}
.assessment .step-number { color: var(--deep-gold); font-size: .71rem; font-weight: 760; letter-spacing: .09em; }
.assessment .step-phase {
  padding: .12rem .32rem;
  border-radius: 3px;
  background: #f0e8d6;
  color: var(--deep-gold);
  font-size: .66rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.assessment .step-cue { color: var(--muted); font-size: .81rem; line-height: 1.25; }
.assessment .hotspot-return {
  grid-column: 2 / 4;
  justify-self: center;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: .42rem;
  background: #f2eada;
  border-color: #c5a76f;
  font-size: .8rem;
}
.assessment .hotspot-return:not([aria-selected="true"]) strong { color: var(--deep-gold); }
.return-mark { font-size: 1.2rem; line-height: 1; }
.assessment .step-panels { display: grid; margin-top: .8rem; }
.assessment .step-panel {
  padding: .83rem 1rem;
  background: #f0ece2;
  border-left: 3px solid #c49a3a;
  scroll-margin-top: 1rem;
}
.assessment .step-panel :is(h3, h4) { margin: 0 0 .25rem; font: 700 1rem/1.2 system-ui, sans-serif; }
.assessment .panel-phase { color: var(--deep-gold); }
.assessment .step-panel p { font-size: .89rem; color: var(--muted); }
.assessment .step-panel .handoff { margin-top: .24rem; }
.assessment .handoff strong { color: var(--ink); }
.assessment .step-panel:target { outline: 1px solid var(--gold); }
.assessment .step-panel[role="tabpanel"]:target { outline: none; }
.assessment-section .cycle-note { margin-top: .82rem; color: var(--muted); font-size: .88rem; }
.assessment-section .cycle-note strong { color: var(--ink); margin-right: .3rem; }

.assessment-section {
  background: #edf1f2;
  padding-block: clamp(2.15rem, 4vw, 3.25rem);
}
.assessment-section .section-lead { max-width: 70ch; }
.assessment { margin-top: 1.2rem; }
.assessment .step-panel[hidden] { display: none; }
.assessment-section .cycle-note a { font-weight: 650; }
@media (max-width: 700px) {
  .assessment { padding: .72rem; }
  .assessment .flow-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .8rem; }
  .assessment .hotspot { min-height: 4.9rem; }
  .assessment .hotspot:nth-child(-n+3)::after { content: none; }
  .assessment .hotspot-return { grid-column: 1 / -1; min-height: 2.45rem; }
  .assessment .step-panel { padding: .62rem .68rem; }
}
@media (max-width: 380px) {
  .assessment .hotspot { padding-inline: .56rem; }
  .assessment .step-phase { padding-inline: .22rem; letter-spacing: .045em; }
}

.workflow-practice { scroll-margin-top: 1rem; }
.workflow-practice .assessment { margin-block: 1.2rem; }
.workflow-practice .step-phase { text-align: center; }
.workflow-practice .step-panel a { font-weight: 650; }

/* Give the course workflow the same horizontal reading order as the business workflow. */
.course-case, .course-case + #modelheart-development { grid-column: 1 / -1; }
.course-case > p { max-width: 78ch; }
@media (min-width: 801px) {
  .course-case + #modelheart-development .modelheart-concept-preview {
    float: right;
    width: min(44%, 30rem);
    margin: 0 0 1rem 2rem;
  }
  .course-case + #modelheart-development .case-detail { clear: both; }
}
