.server-product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
}

.anchor-alias {
  display: block;
  height: 0;
  scroll-margin-top: 110px;
}

.resource-hub {
  padding-block: 110px;
  border-top: 1px solid var(--line-soft);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.resource-card {
  min-height: 210px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.resource-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.resource-card h3 a {
  color: var(--text);
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.resource-card h3 a:hover { text-decoration-color: var(--accent); }
.resource-card p { margin: 18px 0 0; color: var(--muted-light); font-size: 15px; }

.content-shell {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 105px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs span[aria-hidden="true"] { color: #53616d; }

.content-heading {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.content-heading h1 {
  max-width: 900px;
  overflow-wrap: anywhere;
  margin: 13px 0 17px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.content-heading > p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted-light);
  font-size: 18px;
}

.publication-details { margin: 32px 0; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.publication-byline { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.content-date, .content-author { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.content-author a { color: var(--accent); }

.content-copy { display: flow-root; padding-top: 38px; }
.content-copy > p:first-of-type { color: #d0d8de; font-size: 19px; }
.content-copy h2 { clear: both; margin: 58px 0 18px; padding-top: 5px; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; scroll-margin-top: 110px; }
.content-copy h3 { margin: 40px 0 14px; font-size: 22px; line-height: 1.3; scroll-margin-top: 110px; }
.content-copy p, .content-copy li { color: #bec8d0; font-size: 16px; line-height: 1.78; }
.content-copy a { color: var(--accent); overflow-wrap: anywhere; }
.content-copy ul, .content-copy ol { padding-left: 25px; }
.content-copy li + li { margin-top: 8px; }
.content-copy .article-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin: 26px 0; }
.content-copy .article-table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.content-copy table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.content-copy th, .content-copy td { min-width: 155px; padding: 12px; color: #bec8d0; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.content-copy th { color: var(--text); background: var(--surface-soft); }
.content-copy blockquote { margin: 28px 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--accent); }
.content-copy blockquote p { color: var(--muted-light); }
.content-copy pre { overflow-x: auto; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.content-copy code { overflow-wrap: anywhere; font-size: 14px; }
.content-copy pre code { overflow-wrap: normal; }

.editorial-illustration { float: right; width: min(44%, 420px); margin: 4px 0 22px 28px; }
.editorial-illustration img { display: block; width: 100%; height: auto; border: 1px solid var(--line-soft); border-radius: 14px; }
.editorial-illustration figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.qwen-astra-figure { clear: both; margin: 34px 0; padding: 0; }
.qwen-astra-figure > a { display: block; border-radius: 14px; }
.qwen-astra-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line-soft); border-radius: 14px; }
.qwen-astra-figure figcaption { margin-top: 12px; color: var(--muted-light); font-size: 15px; line-height: 1.7; }
.qwen-astra-figure figcaption a { display: inline-block; margin-left: 6px; }
.qwen-astra-figure details { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.qwen-astra-figure summary { color: var(--accent); cursor: pointer; }
.qwen-astra-figure .article-table-scroll { margin-top: 18px; }
.qwen-astra-figure table { font-size: 15px; }
.qwen-astra-figure caption { padding: 0 0 12px; color: var(--muted-light); text-align: left; }
.qwen-astra-figure details p { font-size: 14px; }
.qwen-astra-figure a:focus-visible, .qwen-astra-figure summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 520px) {
  [data-content-key="qwen-astra-coding"] .content-heading h1 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
}
.article-technical { clear: both; margin: 34px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.article-technical > summary { padding: 20px 24px; color: var(--muted-light); cursor: pointer; }
.article-technical > summary h2 { display: inline; margin: 0; padding: 0; font-size: 20px; line-height: 1.4; }
.article-technical > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.article-technical-body { padding: 0 24px 20px; }
.article-technical-body > :first-child { margin-top: 0; }

.video-gallery { clear: both; margin: 38px 0 48px; padding-top: 8px; }
.video-gallery > h3 { margin: 0 0 20px; }
.video-input { max-width: 560px; margin: 0 0 20px; }
.video-input a { display: block; border-radius: 12px; }
.video-input img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.video-input figcaption { margin-top: 8px; color: var(--muted-light); font-size: 14px; }
.content-copy .video-playback-note { margin: 18px 0 22px; color: var(--muted-light); font-size: 15px; }
.content-copy .video-selection-note { margin: 0 0 22px; color: var(--muted-light); font-size: 14px; }
.video-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.video-result { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.video-result video { display: block; width: 100%; height: auto; background: #070b10; }
.video-result figcaption { display: grid; gap: 9px; padding: 18px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.video-result figcaption strong { color: var(--text); font-size: 16px; line-height: 1.5; }
.video-result figcaption span { color: var(--muted-light); }
.video-result figcaption a { width: fit-content; color: var(--accent); }
.video-gallery a:focus-visible, .video-result video:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.video-more-runs { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.video-more-runs > summary { color: var(--accent); font-size: 16px; cursor: pointer; }
.video-more-runs > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.video-more-runs[open] > summary { margin-bottom: 22px; }

.resource-card > .resource-kind { margin: 0 0 14px; color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.benchmark-chart, .publication-downloads, .publication-cta { margin: 36px 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.publication-downloads h2, .publication-cta h2 { margin: 0 0 18px; font-size: 24px; line-height: 1.3; }
.benchmark-metadata { margin: 0 0 16px; color: var(--muted-light); font-size: 14px; line-height: 1.6; }
.benchmark-metadata summary { width: fit-content; cursor: pointer; }
.benchmark-metadata summary:hover { color: var(--text); }
.benchmark-metadata summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.benchmark-metadata dl { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 14px 0; }
.benchmark-metadata dt { color: var(--muted); font-size: 13px; }
.benchmark-metadata dd { margin: 3px 0 0; font-size: 14px; }
.benchmark-chart p, .publication-downloads p, .publication-cta p { color: var(--muted-light); font-size: 15px; line-height: 1.7; }
.benchmark-metadata a, .publication-downloads a { color: var(--accent); }
.benchmark-chart { margin-inline: 0; }
.benchmark-chart figcaption { font-size: 23px; line-height: 1.4; }
.benchmark-chart ol { list-style: none; padding: 0; margin: 25px 0; }
.benchmark-chart li { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(100px, 2fr) minmax(90px, auto); align-items: center; gap: 16px; margin-top: 18px; font-size: 15px; }
.benchmark-chart li > span { overflow-wrap: anywhere; }
.benchmark-chart meter { width: 100%; height: 22px; accent-color: var(--accent); }
.benchmark-chart meter::-webkit-meter-bar { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; }
.benchmark-chart meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 4px; }
.benchmark-chart meter::-moz-meter-bar { background: var(--accent); border-radius: 4px; }
.benchmark-chart-value { font-variant-numeric: tabular-nums; }
.publication-downloads ul { padding-left: 20px; }
.publication-downloads li + li { margin-top: 18px; }
.publication-downloads small { display: block; color: var(--muted); margin-top: 7px; font-size: 13px; overflow-wrap: anywhere; }
.publication-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }

.related-resources {
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.related-resources h2 { margin: 0 0 20px; font-size: 25px; }
.related-resources ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.related-resources a { min-height: 100%; display: block; padding: 18px; color: var(--muted-light); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.related-resources a:hover { color: var(--text); border-color: #43515d; }

.site-footer .footer-resources {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  gap: 10px 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.footer-resources strong { width: 100%; color: var(--muted); font-size: 14px; letter-spacing: .09em; text-transform: uppercase; }

@media (max-width: 760px) {
  .resource-grid, .related-resources ul { grid-template-columns: 1fr; }
  .resource-hub { padding-block: 85px; }
  .resource-card { min-height: 0; }
  .content-shell { width: min(100% - 28px, 960px); padding-top: 28px; }
  .content-heading h1 { font-size: clamp(38px, 12vw, 56px); }
  .content-heading > p:not(.eyebrow) { font-size: 17px; }
  .editorial-illustration { float: none; width: min(100%, 420px); margin: 0 auto 26px; }
  .site-footer .footer-resources { grid-column: auto; }
  .benchmark-chart, .publication-downloads, .publication-cta { padding: 20px; }
  .benchmark-chart li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .benchmark-chart li > span:first-child { grid-column: 1 / -1; }
  .publication-actions .button { width: 100%; }
  .video-results { grid-template-columns: 1fr; gap: 22px; }
  .video-gallery { margin-block: 28px 38px; }
  .video-result figcaption { padding: 16px; }
}

@media print {
  .breadcrumbs, .related-resources, .resource-hub { display: none !important; }
  .content-shell { width: 100%; padding: 0; }
  .content-heading, .content-copy { border: 0; }
  .content-copy p, .content-copy li, .content-copy th, .content-copy td { color: #222; }
}
