/* EDI page */
.ed-story {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* old way: the checklist */
.ed-box {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4.5vw, 4rem);
  border-radius: 32px;
  background: var(--stage-coral);
}
.ed-box-copy h2 {
  margin-top: 1rem;
  font-size: clamp(2.1rem, 3.9vw, 3.3rem);
  line-height: 1.06;
}
.ed-box-copy > p:not(.label-pill) {
  max-width: 46ch;
  margin-top: 1rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--navy-2);
}
.ed-box-copy strong {
  font-weight: 600;
  color: var(--navy);
}
.ed-tick-wrap {
  position: relative;
  padding-bottom: 2.25rem;
}
.ed-tick {
  position: relative;
  padding: 1.4rem;
  border-radius: 22px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(12 21 34 / 0.05),
    0 24px 44px -30px rgb(12 21 34 / 0.4);
  transform: rotate(-1deg);
}
.ed-tick-top b {
  display: block;
  font: 700 1.15rem / 1.25 var(--display);
}
.ed-tick-top span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--navy-2);
}
.ed-tick ul {
  display: grid;
  gap: 0.25rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.ed-tick li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.ed-tick .i {
  width: 1.3rem;
  height: 1.3rem;
}
.ed-tick .is-open {
  background: var(--active-bg);
  font-weight: 600;
}
.ed-note-tick {
  left: 1.5rem;
  bottom: -0.2rem;
}

/* shared bits inside the mocks */
.ed-q {
  margin-top: 0.3rem;
  font: 700 1.2rem / 1.2 var(--display);
}
.ed-slider {
  position: relative;
  height: 12px;
  margin-top: 1.1rem;
  border-radius: 99px;
  background: #ffe0c5;
}
.ed-slider b {
  position: absolute;
  inset: 0 30% 0 0;
  border-radius: 99px;
  background: #ff7300;
}
.ed-slider i {
  position: absolute;
  left: 70%;
  top: 50%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgb(12 21 34 / 0.25);
  transform: translate(-50%, -50%);
}
.ed-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--navy-2);
}
.ed-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.ed-options span {
  padding: 0.65rem;
  border: 1px solid #eee6dd;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
}
.ed-skip {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  color: var(--navy-2);
}
.ed-why {
  margin-top: 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #fbf8f4;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--navy-2);
}
.ed-why b {
  font-weight: 600;
  color: var(--navy);
}
.ed-bars {
  position: relative;
}
.ed-note-gap {
  right: 3.25rem;
  bottom: -2.35rem;
}
.ed-safe {
  text-align: center;
}
.ed-safe-mark {
  margin-top: 0.8rem;
}
.ed-safe-mark .i {
  width: 2.2rem;
  height: 2.2rem;
}
.ed-inps-score {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.4rem;
}
.ed-inps-score b {
  font: 700 3rem / 1 var(--display);
  color: #5fae1d;
  font-variant-numeric: tabular-nums;
}
.ed-inps-score span {
  font-size: 0.85rem;
  color: var(--navy-2);
}
.ed-inps-q {
  margin-top: 0.5rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--navy-2);
}
.ed-done {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--active-bg);
  font-size: 0.86rem;
  font-weight: 600;
}
.ed-done .i {
  width: 1.25rem;
  height: 1.25rem;
}
.ed-note-done {
  right: 1.5rem;
  bottom: -2.35rem;
}
@media (max-width: 960px) {
  .ed-box {
    grid-template-columns: minmax(0, 1fr);
  }
  .moment-media:has(.ed-note-gap, .ed-note-done) {
    padding-bottom: 3.5rem;
  }
}
@media (max-width: 560px) {
  .ed-tick {
    padding: 1rem;
    transform: none;
  }
}

/* hero: EDI heatmap, in the dashboard's score colours */
.ed-heat-card {
  display: grid;
  gap: 0.6rem;
}
.ed-heat-card .ui-segment {
  justify-self: start;
  margin-bottom: 0;
}
.ed-heat {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(0, 1fr));
  gap: 3px;
  align-items: stretch;
  font-size: 0.78rem;
}
.ed-heat-col {
  align-self: end;
  padding: 0 0.15rem 0.3rem;
  font-size: 0.64rem;
  line-height: 1.2;
  text-align: center;
  color: var(--navy-2);
}
.ed-heat-row {
  align-self: center;
  padding-right: 0.6rem;
  white-space: nowrap;
}
.ed-heat b {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  /* row names get their own line, so the five columns have room for real pillar names */
  .ed-heat {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ed-heat > span:first-child {
    display: none;
  }
  .ed-heat-col {
    padding-inline: 0;
    font-size: 0.6rem;
  }
  .ed-heat-row {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    padding-right: 0;
  }
}
@media (max-width: 560px) {
  .ed-heat-card .ui-segment {
    display: flex;
    justify-self: stretch;
  }
  .ed-heat-card .ui-segment button {
    flex: 1;
    padding-inline: 0.3rem;
    font-size: 0.72rem;
  }
}

