.ca-automation {
  background: var(--brand-panel);
}

.automation-heading > p {
  max-width: 46ch;
}

.automation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: start;
  gap: clamp(40px, 7vw, 108px);
}

.automation-story {
  margin: 0;
  padding: 0;
  list-style: none;
}

.automation-story li {
  position: relative;
  padding-inline-start: 30px;
}

.automation-story li + li {
  padding-top: 26px;
}

.automation-story li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .65rem;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 2px solid var(--brand-violet);
  border-radius: 50%;
  background: var(--brand-panel);
  z-index: 1;
}

.automation-story li + li::before {
  top: calc(26px + .65rem);
}

.automation-story li:last-child::before {
  background: var(--brand-violet);
}

.automation-story li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: calc(.65rem + 9px);
  bottom: calc(-26px - .65rem);
  width: 1px;
  background: var(--brand-frame);
}

.automation-story li + li:not(:last-child)::after {
  top: calc(26px + .65rem + 9px);
}

.automation-story h3 {
  margin: 0 0 8px;
  color: var(--brand-text);
  font: 500 clamp(1.22rem, 1.7vw, 1.58rem)/1.28 Sora, sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.automation-story p,
.automation-email p {
  margin: 0;
  font: 400 1rem/1.6 Inter, sans-serif;
  color: var(--brand-muted);
}

.automation-records {
  min-width: 0;
  border: 1px solid var(--brand-frame);
  background: var(--brand-ink);
}

.automation-records figure {
  margin: 0;
  padding: clamp(20px, 2.2vw, 32px);
}

.automation-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-violet);
  font: 600 .8125rem/1.5 Inter, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.automation-change figcaption strong,
.automation-email blockquote strong {
  display: block;
  color: var(--brand-text);
  font: 500 clamp(1.125rem, 1.45vw, 1.4rem)/1.34 Sora, sans-serif;
  letter-spacing: -.035em;
}

.automation-change figcaption strong {
  margin: 9px 0 3px;
}

#automation-unit {
  display: block;
  color: var(--brand-muted);
  font: 400 .9375rem/1.5 Inter, sans-serif;
}

.automation-change table {
  margin-top: 15px;
  width: 100%;
  border-collapse: collapse;
  font: 400 1rem/1.5 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}

.automation-change th,
.automation-change td {
  padding: 7px 0 7px 8px;
  border-bottom: 1px solid var(--brand-frame);
  text-align: end;
  vertical-align: middle;
}

.automation-change th:first-child {
  padding-inline: 0 4px;
  text-align: start;
}

.automation-change thead th {
  color: var(--brand-muted);
  font-weight: 500;
  font-size: .875rem;
}

.automation-change tbody th {
  font-weight: 500;
}

.automation-change tbody tr:last-child > * {
  border-bottom: 0;
  padding-bottom: 0;
}

.automation-change td strong {
  color: var(--brand-lime);
  font-weight: 650;
}

.automation-swatch {
  display: inline-block;
  width: .75rem;
  height: .75rem;
  margin-inline-end: 8px;
  border-radius: 2px;
}

.automation-swatch.oak { background: #b99570; }
.automation-swatch.white { background: #eeeae4; }

.automation-email {
  border-top: 1px solid var(--brand-frame);
  background: var(--brand-raised);
}

.automation-email .automation-label {
  color: var(--brand-lime);
}

.automation-email svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.automation-email blockquote {
  margin: 12px 0 0;
  padding: 0;
}

.automation-email p {
  margin-top: 8px;
  color: var(--brand-text);
}

@media (max-width: 800px) {
  .automation-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .custom-hub .automation-heading > p {
    max-width: 58ch;
    text-align: start;
    justify-self: start;
  }
  .automation-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 420px) {
  .automation-records figure { padding: 18px 16px; }
  .automation-story li { padding-inline-start: 22px; }
}
