/* Horizontal chapter accordion: one open stage, with narrow vertical rails. */
@media (min-width: 1101px) {
  #workflow .sop-cascade {
    display: flex;
    height: 570px;
    margin-top: 42px;
  }
  #workflow .sop-panel {
    flex: 0 0 74px;
    min-width: 0;
    border-top: 0;
    border-left: 1px solid rgba(75, 122, 172, .25);
    transition: flex-grow .65s cubic-bezier(.33, 1, .68, 1);
  }
  #workflow .sop-panel:first-child { border-left: 0; }
  #workflow .sop-panel.is-active { flex-grow: 1; }
  #workflow .sop-trigger {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    width: 74px;
    height: 100%;
    min-height: 0;
    padding: 34px 5px 32px;
    text-align: center;
  }
  #workflow .sop-number { font-size: 52px; }
  #workflow .sop-rail-label,
  html[lang="en"] #workflow .sop-rail-label {
    font-size: 15px;
    letter-spacing: .12em;
    writing-mode: vertical-rl;
    transform: none;
  }
  html[lang="en"] #workflow .sop-rail-label {
    font-size: 12px;
    transform: rotate(180deg);
  }
  #workflow .sop-panel-content {
    position: absolute;
    inset: 0 0 0 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, .9fr);
    align-items: stretch;
    gap: clamp(17px, 2vw, 30px);
    max-height: none;
    padding: 30px clamp(20px, 2.3vw, 34px) 30px 20px;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  #workflow .is-active .sop-panel-content {
    max-height: none;
    transition: opacity .4s ease .17s, visibility 0s;
  }
  #workflow .sop-copy {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: auto;
    padding: 13px 0 10px;
  }
  #workflow .sop-copy h3 { margin-bottom: 17px; font-size: clamp(23px, 1.9vw, 29px); }
  #workflow .sop-copy p { max-width: none; font-size: clamp(14px, 1.07vw, 16px); }
  #workflow .sop-copy .sop-deliverable { max-width: none; }
  #workflow .sop-arrow { margin-top: auto; padding-top: 18px; }
  #workflow .sop-photo {
    position: relative;
    inset: auto;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
  }
}

/* On smaller screens the chapter rails become full-width, tappable rows. */
@media (max-width: 1100px) {
  #workflow .sop-cascade { display: block; height: auto; }
  #workflow .sop-panel { border-left: 0; border-top: 1px solid rgba(75, 122, 172, .25); }
  #workflow .sop-panel:first-child { border-top: 0; }
  #workflow .sop-trigger {
    position: relative;
    inset: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    min-height: 78px;
    padding: 14px 24px;
    text-align: left;
  }
  #workflow .sop-rail-label,
  html[lang="en"] #workflow .sop-rail-label {
    font-size: 16px;
    letter-spacing: .05em;
    writing-mode: horizontal-tb;
    transform: none;
  }
  #workflow .sop-panel-content {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr);
    gap: 24px;
    max-height: 0;
    padding-right: 24px;
  }
  #workflow .is-active .sop-panel-content { max-height: 760px; }
  #workflow .sop-copy { position: relative; inset: auto; width: auto; padding: 8px 0 25px 26px; }
  #workflow .sop-photo {
    position: relative;
    inset: auto;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0 0 24px;
  }
}
@media (max-width: 700px) {
  #workflow .sop-trigger { min-height: 72px; padding: 11px 20px; gap: 17px; }
  #workflow .sop-panel-content { display: flex; flex-direction: column; gap: 0; padding-right: 0; }
  #workflow .is-active .sop-panel-content { max-height: 1300px; }
  #workflow .sop-copy { width: 100%; padding: 9px 22px 18px; }
  #workflow .sop-photo { width: calc(100% - 44px); aspect-ratio: 4 / 3; margin: 0 auto 22px; }
}
