.version-page * {
  letter-spacing: 0;
}

.version-header .container {
  max-width: 980px;
}

.version-header h1 {
  max-width: 900px;
}

.version-answer {
  border-left-color: #1f6f78;
  background: #edf5f5;
}

.version-page .problem-copy > section > h2,
.version-page .problem-copy > section > p:not(.format-label, .source-line) {
  max-width: 700px;
}

.release-states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: #cfd7d6;
}

.release-states article {
  display: flex;
  min-height: 300px;
  padding: 30px 26px;
  flex-direction: column;
  background: #f7f8f7;
}

.release-states article > span,
.release-gate article > span,
.case-sequence article > span {
  display: block;
  margin-bottom: 24px;
  color: #1f6f78;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-states h3,
.release-gate h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
}

.release-states p,
.release-gate p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.88rem;
  line-height: 1.68;
}

.release-states article > strong {
  margin-top: auto;
  padding-top: 26px;
  color: #86493c;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.release-states .release-state-live {
  background: #183a3e;
  color: #fff;
}

.release-states .release-state-live > span,
.release-states .release-state-live > strong {
  color: #73c4c5;
}

.release-states .release-state-live h3 {
  color: #fff;
}

.release-states .release-state-live p {
  color: rgba(255, 255, 255, 0.7);
}

.change-chain {
  padding: 42px 40px;
  background: #22282a;
  color: #fff;
}

.change-chain .format-label,
.change-chain h2 {
  color: #fff;
}

.change-chain ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.change-chain li {
  min-height: 230px;
  padding: 26px 20px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.change-chain li:last-child {
  border-right: 0;
}

.change-chain li > span {
  display: block;
  margin-bottom: 32px;
  color: #73c4c5;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.change-chain h3 {
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.change-chain li p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  line-height: 1.65;
}

.release-gate {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  background: var(--color-border);
}

.release-gate article {
  min-height: 220px;
  padding: 30px 28px;
  background: #fff;
}

.release-gate article:nth-child(2),
.release-gate article:nth-child(3) {
  background: #f5f0eb;
}

.version-case {
  padding: 42px 40px;
  background: #f2eeea;
}

.version-case-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 36px;
  align-items: end;
}

.version-case-heading h2 {
  margin-bottom: 0;
}

.version-case-heading > p {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid #a34e3e;
  color: #69574f;
  font-size: 0.82rem;
  line-height: 1.6;
}

.case-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 32px 0 26px;
  background: #d0c6be;
}

.case-sequence article {
  min-height: 190px;
  padding: 28px 26px;
  background: #fff;
}

.case-sequence article > span {
  color: #6b5a52;
}

.case-sequence strong {
  display: block;
  margin-bottom: 12px;
  color: #202a2b;
  font-family: var(--font-display);
  font-size: 1.38rem;
  line-height: 1.15;
}

.case-sequence p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.84rem;
  line-height: 1.58;
}

.case-sequence .case-sequence-result {
  background: #a34e3e;
  color: #fff;
}

.case-sequence .case-sequence-result > span,
.case-sequence .case-sequence-result strong {
  color: #fff;
}

.case-sequence .case-sequence-result p {
  color: rgba(255, 255, 255, 0.76);
}

.version-case > p:not(.format-label) {
  max-width: 680px;
}

.release-record {
  margin-top: 30px;
  border: 1px solid #aebcba;
  background: #f8faf9;
}

.release-record-header {
  display: flex;
  min-height: 62px;
  padding: 16px 22px;
  align-items: center;
  justify-content: space-between;
  background: #183a3e;
  color: #fff;
}

.release-record-header span,
.release-record-header strong {
  font-size: 0.76rem;
  text-transform: uppercase;
}

.release-record-header strong {
  color: #73c4c5;
}

.release-record dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.release-record dl > div {
  min-height: 102px;
  padding: 22px;
  border-right: 1px solid #d8dfde;
  border-bottom: 1px solid #d8dfde;
}

.release-record dl > div:nth-child(2n) {
  border-right: 0;
}

.release-record dt {
  margin-bottom: 8px;
  color: #1f6f78;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release-record dd {
  margin: 0;
  color: #252d2e;
  font-size: 0.92rem;
  line-height: 1.55;
}

.release-record > p {
  margin: 0;
  padding: 18px 22px;
  color: var(--color-text-light);
  font-size: 0.78rem;
  line-height: 1.55;
}

.version-boundary-grid article:first-child {
  border-color: #b5cfcd;
  background: #edf5f5;
}

.topic-row-planned {
  background: #f5f0eb;
}

.topic-row-planned .topic-arrow {
  color: #8b6d60;
  font-size: 0.62rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .release-states,
  .case-sequence {
    grid-template-columns: 1fr;
  }

  .release-states article,
  .case-sequence article {
    min-height: 0;
  }

  .change-chain ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .change-chain li:nth-child(2) {
    border-right: 0;
  }

  .change-chain li:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .version-case-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .version-header {
    padding: 104px 0 42px;
  }

  .version-header h1 {
    font-size: 2rem;
    line-height: 1.12;
  }

  .version-header p:last-child {
    max-width: 340px;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .version-page .problem-breadcrumb {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .change-chain,
  .version-case {
    padding: 30px 22px;
  }

  .change-chain ol,
  .release-gate,
  .release-record dl {
    grid-template-columns: 1fr;
  }

  .change-chain li,
  .change-chain li:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .change-chain li:last-child {
    border-bottom: 0;
  }

  .release-gate article {
    min-height: 0;
  }

  .release-record-header {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .release-record dl > div,
  .release-record dl > div:nth-child(2n) {
    min-height: 0;
    border-right: 0;
  }
}
