.ap-editorial .comparison-hero {
  padding: clamp(38px, 5vw, 72px) clamp(20px, 5vw, 60px);
  text-align: left;
  border-block: 1px solid var(--ap-border);
}

.comparison-hero-inner {
  max-width: 1060px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.comparison-intro > p {
  max-width: 47ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.ap-comparison .art-meta {
  justify-content: flex-start;
  gap: 4px 10px;
  margin: 18px 0 0;
}

.comparison-at-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--ap-border);
  box-shadow: 0 10px 24px rgba(27, 34, 65, .08);
}

.comparison-stat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 26px;
  padding: clamp(13px, 2vw, 25px);
}

.comparison-stat-featured {
  background: #eae5ff;
  border-inline-start: 1px solid var(--ap-border);
}

.comparison-stat-label {
  display: grid;
  gap: 4px;
  line-height: 1.25;
  font-size: 15px;
}

.comparison-stat-label span {
  font-size: 13px;
  color: #41465b;
}

.comparison-stat-focus {
  display: grid;
  gap: 5px;
  align-self: end;
}

.comparison-stat-focus strong {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.06em;
}

.comparison-stat-featured .comparison-stat-focus strong {
  color: #1747c4;
}

.comparison-stat-focus span {
  font-size: 14px;
  line-height: 1.3;
}

.comparison-slots {
  display: flex;
  gap: 3px;
}

.comparison-slots span {
  width: 9px;
  height: 16px;
  border-radius: 2px;
  background: #59617b;
}

.comparison-stat-featured .comparison-slots span {
  flex: 1;
  min-width: 0;
  max-width: 9px;
  background: #2457e6;
}

.ap-comparison .comparison-layout {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: clamp(24px, 4vw, 54px);
}

.ap-comparison .article-sidebar {
  top: 112px;
}

.ap-comparison h2[id] {
  scroll-margin-top: 105px;
}

.ap-comparison .sidebar-card-title {
  margin-bottom: 12px;
  font-size: 15px;
}

.comparison-table-wrap {
  background: #fff;
  border: 1px solid var(--ap-border);
}

.comparison-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  line-height: 1.45;
}

.comparison-table caption {
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
  color: #41465b;
}

.comparison-table th,
.comparison-table td {
  padding: 14px;
  vertical-align: top;
  border-block-start: 1px solid var(--ap-border);
  overflow-wrap: break-word;
}

.comparison-table thead th {
  background: #f1f3f8;
  font-size: 15px;
}

.comparison-table :is(th, td):last-child {
  background: #f5f3ff;
}

.comparison-table th:first-child {
  width: 23%;
}

.ap-comparison .comparison-source {
  margin-top: 10px;
  color: #41465b;
  font-size: 14px;
}

.comparison-example,
.comparison-choices section {
  border: 1px solid var(--ap-border);
  background: #f5f6fa;
  padding: clamp(16px, 3vw, 24px);
}

.comparison-example h3,
.comparison-choices h3,
.ap-comparison .article-cta h3 {
  margin-top: 0;
}

.comparison-example dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.comparison-example dl > div {
  border-inline-start: 2px solid #2457e6;
  padding-inline: 10px;
}

.comparison-example dt {
  color: #1747c4;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.comparison-example dd {
  margin: 4px 0 0;
  line-height: 1.25;
}

.comparison-formats li {
  padding-inline-start: 3px;
}

.comparison-work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 150px)) minmax(125px, 1fr);
  gap: 12px;
  align-items: center;
  margin: 26px 0 0;
}

.comparison-work img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ap-border);
}

.comparison-work figcaption {
  max-width: 25ch;
  padding-inline: 8px;
  line-height: 1.5;
}

.comparison-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.comparison-choices section:first-child {
  background: #f5f3ff;
}

.comparison-faq details {
  border-block-start: 1px solid var(--ap-border);
  padding: 14px 0;
}

.comparison-faq details:last-child {
  border-block-end: 1px solid var(--ap-border);
}

.comparison-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.comparison-faq p {
  padding-top: 8px;
}

.ap-comparison .article-cta .cta-btn {
  color: #fff;
}

@media (max-width: 900px) {
  .ap-comparison .comparison-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .comparison-hero-inner,
  .comparison-choices {
    grid-template-columns: minmax(0, 1fr);
  }

  .comparison-at-glance {
    max-width: 500px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 7px;
    font-size: 14px;
  }
}

@media (max-width: 460px) {
  .comparison-work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-work figcaption {
    grid-column: 1 / -1;
    max-width: none;
    padding-inline: 0;
    font-size: 14px;
  }
}
