.article-figure {
  margin-block: 1.45rem;
  padding: clamp(.85rem, 2.5vw, 1.45rem);
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.article-figure figcaption {
  margin: 0 0 .95rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.article-figure-note {
  margin-top: .9rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

.article-airflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.article-airflow p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.5;
}

.article-airflow .article-airflow-title {
  color: var(--ink);
  font-weight: 600;
}

.article-airflow-plan {
  --pack-height: 2.7rem;
  --pack-inset: .7rem;
  position: relative;
  display: grid;
  align-items: end;
  height: 5.5rem;
  margin-block: .45rem .55rem;
  padding: 0 1.1rem var(--pack-inset);
  border-block-start: 3px solid var(--muted);
  background: var(--surface);
}

.article-airflow-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .25rem;
}

.article-airflow-packs > span {
  position: relative;
  height: var(--pack-height);
  border: 1px solid var(--accent-text);
  background: var(--ice);
}

.article-airflow-packs > span::before,
.article-airflow-packs > span::after {
  position: absolute;
  inset-block: calc(50% - .33rem) auto;
  width: .42rem;
  height: .66rem;
  border-block: 1px solid var(--accent-text);
  background: var(--surface);
  content: "";
}

.article-airflow-packs > span::before { left: -1px; }
.article-airflow-packs > span::after { right: -1px; }

.article-airflow-arrow {
  position: absolute;
  inset: auto .55rem calc(var(--pack-inset) + var(--pack-height) / 2) .55rem;
  border-top: 2px solid var(--accent-text);
}

.article-airflow-arrow::after,
.article-schedule-axis::after {
  position: absolute;
  inset: -.31rem .06rem auto auto;
  width: .5rem;
  height: .5rem;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  color: var(--accent-text);
  content: "";
  transform: rotate(45deg);
}

.article-airflow-plan--bypass .article-airflow-arrow {
  inset-block: .9rem auto;
  border-top-style: dashed;
}

.article-match-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.45rem;
  padding: 0;
  list-style: none;
}

.article-match-flow > li {
  position: relative;
  padding: .8rem;
  border-block-start: 2px solid var(--accent-text);
  background: var(--surface);
  font-size: .9375rem;
  line-height: 1.5;
}

.article-match-flow > li + li { margin-top: 0; }
.article-match-flow > li:nth-child(2) { background: var(--ice); }
.article-match-flow > li > * { display: block; }
.article-match-flow > li span { margin-top: .3rem; color: var(--muted); }

.article-match-flow > li + li::before {
  position: absolute;
  inset: .95rem auto auto -1.11rem;
  width: .48rem;
  height: .48rem;
  border-block-start: 1.5px solid var(--accent-text);
  border-inline-end: 1.5px solid var(--accent-text);
  content: "";
  transform: rotate(45deg);
}

.article-schedule {
  display: grid;
  grid-template-columns: max-content repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(2, minmax(2.4rem, auto));
  row-gap: .4rem;
  align-items: center;
  font-size: .875rem;
  line-height: 1.28;
}

.article-schedule-axis {
  position: relative;
  grid-area: 1 / 2 / 2 / 5;
  padding-bottom: .3rem;
  border-block-end: 1px solid var(--accent-text);
  color: var(--muted);
}

.article-schedule-axis::after { inset-block: auto -.28rem; }

.article-schedule-overlap {
  grid-area: 2 / 3 / 4 / 4;
  align-self: stretch;
  border-inline: 1px dashed var(--accent-text);
  background: var(--accent-tint);
}

.article-schedule-label { padding-inline-end: clamp(.45rem, 2vw, 1.2rem); font-weight: 600; }
.article-schedule-label--first { grid-area: 2 / 1; }
.article-schedule-label--second { grid-area: 3 / 1; }

.article-schedule-band {
  position: relative;
  padding: .32rem .2rem;
  border: 1px solid var(--accent-text);
  color: var(--ink);
  background: var(--ice);
  text-align: center;
}

.article-schedule-band--first { grid-area: 2 / 2 / 3 / 4; }

.article-schedule-band--second {
  grid-area: 3 / 3 / 4 / 5;
  border-style: dashed;
  background: var(--surface);
}

@media (max-width: 38rem) {
  .article-airflow {
    grid-template-columns: 1fr;
    gap: .95rem;
  }

  .article-match-flow { grid-template-columns: 1fr; }

  .article-match-flow > li + li::before {
    inset: -1.13rem auto auto 1.1rem;
    transform: rotate(135deg);
  }
}
