.aws-sdet-guide-article {
  width: min(100%, 900px);
  margin-inline: auto;
  padding-bottom: 52px;
  overflow-wrap: anywhere;
}

.aws-sdet-guide-page .aws-sdet-head {
  min-height: 0;
  padding-block: 34px;
}

.aws-sdet-guide-page .aws-sdet-head h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.aws-sdet-guide-page .aws-sdet-head > p:not(.eyebrow):not(.guide-updated) {
  max-width: 760px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
}

.aws-download,
.aws-inline-download,
.aws-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid #1f6f62;
  background: #1f6f62;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.aws-inline-download {
  margin-top: 4px;
}

.aws-download:hover,
.aws-inline-download:hover,
.aws-source-link:hover {
  background: #174f47;
  color: #fff;
}

.aws-sdet-guide-page .guide-toc {
  display: block;
  padding-block: 20px;
}

.aws-sdet-guide-page .guide-toc ol {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-left: 22px;
  list-style: decimal;
}

.aws-sdet-guide-page .guide-toc a {
  display: inline;
  padding: 0;
  border: 0;
  font-size: 15px;
}

.aws-sdet-guide-page .aws-sdet-copy {
  display: block;
  padding-bottom: 0;
}

.aws-sdet-guide-page .aws-sdet-copy section {
  min-width: 0;
  margin-block: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.aws-sdet-guide-page .aws-sdet-copy h2 {
  max-width: 760px;
  font-size: clamp(25px, 3.6vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
}

.aws-sdet-guide-page .aws-sdet-copy h3 {
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
}

.aws-sdet-guide-page .aws-sdet-copy p,
.aws-sdet-guide-page .aws-sdet-copy li {
  line-height: 1.7;
}

.aws-sdet-guide-page .aws-sdet-copy li + li {
  margin-top: 7px;
}

.aws-sdet-guide-page code {
  font-family: var(--mono);
  font-size: .9em;
}

.aws-code-block {
  margin: 20px 0 24px;
}

.aws-code-block figcaption {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.aws-code-block pre {
  max-width: 100%;
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #f1f0eb;
  color: var(--ink);
  font: 13px/1.7 var(--mono);
  white-space: pre;
  overflow-wrap: normal;
  tab-size: 2;
}

.aws-code-block code {
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.aws-sdet-figure {
  margin: 28px 0;
}

.aws-sdet-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #f6f5f1;
}

.aws-sdet-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.aws-fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.aws-fact-strip div,
.aws-comparison-grid > div,
.aws-answer-box {
  border: 1px solid var(--line);
  background: var(--panel);
}

.aws-fact-strip div {
  min-height: 92px;
  padding: 16px;
}

.aws-fact-strip strong,
.aws-fact-strip span {
  display: block;
}

.aws-fact-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.aws-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-block: 22px;
}

.aws-comparison-grid > div {
  padding: 20px;
}

.aws-comparison-grid h3,
.aws-answer-box h3 {
  margin-top: 0;
}

.aws-answer-box {
  margin: 24px 0;
  padding: 20px;
  border-left: 4px solid #1f6f62;
}

.aws-answer-box p {
  margin-bottom: 0;
}

.aws-sdet-guide-page :is(a, summary, button):focus-visible {
  outline: 3px solid #1f6f62;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .aws-sdet-guide-page .aws-sdet-head {
    padding-block: 24px;
  }

  .aws-sdet-guide-page .aws-sdet-head > p:not(.eyebrow):not(.guide-updated) {
    font-size: 16px;
  }

  .aws-fact-strip,
  .aws-comparison-grid {
    grid-template-columns: 1fr;
  }

  .aws-code-block pre {
    padding: 13px;
    font-size: 12px;
  }
}

.aws-source-link {
  margin-left: 10px;
  background: #fff;
  color: #1f6f62;
}

.aws-source-link:hover {
  color: #fff;
}

@media (max-width: 560px) {
  .aws-source-link {
    margin-left: 0;
  }
}
