.capability-model-expanded {
  width: min(100%, 600px);
}

.implementation-grid-expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.implementation-grid-expanded::before {
  left: 25%;
  right: 25%;
}

.implementation-grid-expanded .implementation-head {
  align-items: flex-start;
}

.implementation-grid-expanded .implementation-head small {
  color: #7d8593;
  font-size: 8px;
  line-height: 1.35;
  text-align: right;
}

.control-plane-story {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 92px;
  padding-right: max(48px, calc((100vw - 1180px) / 2));
  padding-bottom: 100px;
  padding-left: max(48px, calc((100vw - 1180px) / 2));
  background: #f7f8fb;
}

.control-plane-story .section-heading {
  max-width: 860px;
}

.control-plane-story .section-heading > p:last-child {
  max-width: 760px;
  line-height: 1.7;
}

.control-plane-story-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
  gap: 42px;
  align-items: start;
}

.control-plane-flow {
  display: grid;
  gap: 10px;
}

.control-plane-step {
  padding: 17px 18px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  border: 1px solid #e0e3e9;
  border-radius: 14px;
  background: #fff;
}

.control-plane-step > span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f0f0ff;
  color: #585ac8;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .05em;
}

.control-plane-step strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.control-plane-step p {
  margin: 6px 0 0;
  color: #707887;
  font-size: 11px;
  line-height: 1.6;
}

.control-plane-step-alert {
  border-color: #ead7aa;
  background: #fffaf0;
}

.control-plane-step-alert > span {
  background: #f9ebc9;
  color: #9b6900;
}

.drift-demo-card {
  overflow: hidden;
  border: 1px solid #dfe2e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(31, 35, 48, .09);
}

.drift-demo-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eceef2;
}

.drift-demo-head span,
.drift-demo-actions span {
  display: block;
  color: #8a92a0;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.drift-demo-head strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
}

.drift-demo-head > b {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff1d7;
  color: #9a6500;
  font-size: 9px;
}

.drift-demo-facts {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-bottom: 1px solid #eceef2;
  background: #fbfbfc;
}

.drift-demo-facts div {
  min-width: 0;
}

.drift-demo-facts span {
  display: block;
  color: #89919f;
  font-size: 8px;
  font-weight: 760;
  line-height: 1.35;
  text-transform: uppercase;
}

.drift-demo-facts strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
}

.drift-demo-facts .drift-demo-warning {
  color: #a76d00;
}

.drift-demo-diff {
  margin: 20px 22px 0;
  border: 1px solid #e0e3e8;
  border-radius: 12px;
  overflow: hidden;
}

.drift-demo-diff-head {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e8eaee;
  background: #f7f8fa;
  color: #687180;
  font-size: 9px;
}

.drift-demo-diff-head b {
  color: #9a6500;
}

.drift-demo-diff pre {
  margin: 0;
  padding: 15px 16px;
  overflow-x: auto;
  background: #171a23;
  color: #dfe5ef;
  font-size: 10px;
  line-height: 1.6;
}

.drift-demo-actions {
  padding: 16px 22px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drift-demo-actions article {
  padding: 15px;
  border: 1px solid #e3e5ea;
  border-radius: 12px;
  background: #fbfbfc;
}

.drift-demo-actions strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 13px;
}

.drift-demo-actions p {
  margin: 7px 0 0;
  color: #747d8b;
  font-size: 9px;
  line-height: 1.55;
}

.drift-demo-note {
  margin: 0;
  padding: 12px 22px 16px;
  border-top: 1px solid #eceef2;
  color: #8a92a0;
  font-size: 9px;
  line-height: 1.55;
}

.platform-matrix {
  min-width: 0;
  table-layout: fixed;
}

.platform-matrix thead th:first-child,
.platform-matrix tbody th {
  width: 20%;
}

@media (max-width: 1100px) {
  .control-plane-story-grid {
    grid-template-columns: 1fr;
  }

  .drift-demo-card {
    max-width: 760px;
  }
}

@media (max-width: 900px) {
  .platform-matrix {
    min-width: 820px;
    table-layout: auto;
  }
}

@media (max-width: 680px) {
  .capability-model-expanded {
    width: 100%;
  }

  .implementation-grid-expanded {
    grid-template-columns: 1fr;
  }

  .implementation-grid-expanded::before {
    display: none;
  }

  .control-plane-story {
    padding-top: 70px;
    padding-right: 24px;
    padding-bottom: 76px;
    padding-left: 24px;
  }

  .control-plane-story-grid {
    margin-top: 34px;
    gap: 28px;
  }

  .control-plane-step {
    grid-template-columns: 30px 1fr;
    padding: 15px;
  }

  .drift-demo-head {
    align-items: flex-start;
  }

  .drift-demo-facts,
  .drift-demo-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .drift-demo-facts,
  .drift-demo-actions {
    grid-template-columns: 1fr;
  }
}
