/* The shared Vixan detail hero on the eight original service routes. */
main.qcs-service-detail-page:is(
  .qcs-network-engineering,
  .qcs-network-security,
  :has(> #cloud-scope),
  .qcs-firewall-management,
  .qcs-pentest-detail,
  .qcs-troubleshooting-detail,
  .qcs-noc-detail,
  .qcs-specialist-detail
) > #service-overview {
  --qcs-service-hero-edge-x: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  --qcs-service-hero-edge-y: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 63% 60% at 32% 70%, var(--qcs-service-hero-glow, #eadde1), transparent 79%),
    linear-gradient(180deg, #fff 5%, var(--qcs-service-hero-paper, #faf5f2) 58%, #fff 100%);
}

main.qcs-service-detail-page:has(> #cloud-scope) > #service-overview {
  --qcs-service-hero-glow: #e9e4f6;
  --qcs-service-hero-paper: #f8f6fc;
}

main.qcs-service-detail-page:is(.qcs-network-security, .qcs-pentest-detail) > #service-overview {
  --qcs-service-hero-glow: #eddfeb;
}

main.qcs-service-detail-page:is(.qcs-firewall-management, .qcs-specialist-detail) > #service-overview {
  --qcs-service-hero-glow: #f0e4da;
}

main.qcs-service-detail-page:is(.qcs-noc-detail, .qcs-troubleshooting-detail) > #service-overview {
  --qcs-service-hero-glow: #e3e3ec;
}

main.qcs-service-detail-page:is(
  .qcs-network-engineering, .qcs-network-security, :has(> #cloud-scope),
  .qcs-firewall-management, .qcs-pentest-detail, .qcs-troubleshooting-detail,
  .qcs-noc-detail, .qcs-specialist-detail
) > #service-overview :is(.cs_section_heading, .cs_service_details_text) {
  position: relative;
  z-index: 1;
}

main.qcs-service-detail-page:is(
  .qcs-network-engineering, .qcs-network-security, :has(> #cloud-scope),
  .qcs-firewall-management, .qcs-pentest-detail, .qcs-troubleshooting-detail,
  .qcs-noc-detail, .qcs-specialist-detail
) > #service-overview .cs_service_details_img > .cs_style_img {
  /* The original media slot retains its dimensions and scroll position. */
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  scale: 1.1;
  translate: -1.2% -4%;
  transform-origin: 45% 42%;
}

main.qcs-service-detail-page:is(
  .qcs-network-engineering, .qcs-network-security, :has(> #cloud-scope),
  .qcs-firewall-management, .qcs-pentest-detail, .qcs-troubleshooting-detail,
  .qcs-noc-detail, .qcs-specialist-detail
) > #service-overview .cs_service_details_img :is(
  .cs_style_img > img,
  .qcs-network-scene--failover:not(:has(figcaption)),
  .qcs-network-scene--failover:has(figcaption) > .qcs-network-scene__photo,
  .qcs-security-hero-art,
  .qcs-cloud-provider-hero__stage
) {
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  mask-image: var(--qcs-service-hero-edge-x), var(--qcs-service-hero-edge-y);
  mask-composite: intersect;
}

main.qcs-service-detail-page:is(.qcs-network-engineering, .qcs-network-security, :has(> #cloud-scope))
  > #service-overview .cs_service_details_img :is(.qcs-network-scene--failover, .qcs-cloud-provider-hero, .qcs-cloud-provider-hero__stage) {
  background-color: transparent;
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 991px) {
  main.qcs-service-detail-page:is(
    .qcs-network-engineering, .qcs-network-security, :has(> #cloud-scope),
    .qcs-firewall-management, .qcs-pentest-detail, .qcs-troubleshooting-detail,
    .qcs-noc-detail, .qcs-specialist-detail
  ) > #service-overview {
    --qcs-service-hero-edge-x: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    --qcs-service-hero-edge-y: linear-gradient(180deg, transparent, #000 10%, #000 89%, transparent);
    background:
      radial-gradient(ellipse 82% 34% at 49% 44%, var(--qcs-service-hero-glow, #eadde1), transparent 93%),
      linear-gradient(180deg, #fff 4%, var(--qcs-service-hero-paper, #faf5f2) 52%, #fff 100%);
  }

  main.qcs-service-detail-page:is(
    .qcs-network-engineering, .qcs-network-security, :has(> #cloud-scope),
    .qcs-firewall-management, .qcs-pentest-detail, .qcs-troubleshooting-detail,
    .qcs-noc-detail, .qcs-specialist-detail
  ) > #service-overview .cs_service_details_img > .cs_style_img {
    scale: 1.055;
    translate: 0 -1%;
    transform-origin: 50% 43%;
  }
}

/* The existing animated domain figure blends into a continuous hero surface. */
:is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero):has(> .domain-hero-visual) {
  --library-hero-gutter: max(clamp(1rem, 5vw, 4.5rem), calc((100% - 81rem) / 2));
  position: relative;
  isolation: isolate;
  overflow: clip;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr);
  padding-block-end: clamp(2.5rem, 6vw, 5rem);
  align-items: stretch;
  gap: clamp(1.5rem, 5vw, 5rem);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--library-hero-gutter);
  background: linear-gradient(112deg, #fff 35%, #f8f2f7 100%);
}

:is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero):has(> .domain-hero-visual) > :is(.page-hero-copy, .ccna-course-copy) {
  position: relative;
  z-index: 2;
  display: block;
  align-self: center;
  min-width: 0;
}

:is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero):has(> .domain-hero-visual) > :is(.page-hero-copy, .ccna-course-copy) > h1 {
  width: auto;
  max-width: 18ch;
  margin-block-end: clamp(.9rem, 2vw, 1.5rem);
  overflow-wrap: anywhere;
}

:is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero) > .domain-hero-visual {
  position: relative;
  z-index: 1;
  display: block;
  justify-self: stretch;
  align-self: center;
  grid-area: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

:is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero) > .domain-hero-visual::before {
  display: none;
}

:is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero) > .domain-hero-visual .qcs-domain-canvas {
  --library-art-overlap: clamp(2rem, 6vw, 5rem);
  position: relative;
  width: calc(100% + var(--library-art-overlap));
  height: clamp(12rem, 28vw, 25rem);
  margin-inline-start: calc(-1 * var(--library-art-overlap));
  border: 0;
  border-radius: 0;
  background: transparent;
  mask-image: radial-gradient(ellipse at 59% 48%, #000 50%, transparent 78%);
}

:is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero) > .domain-hero-visual .qcs-scene-fallback {
  object-position: center;
  padding: 0;
}

:is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero) > .domain-hero-visual :is(.qcs-scene-controls, .qcs-scene-caption, figcaption) {
  position: relative;
  z-index: 2;
}

/* Keep article evidence in the reveal and preserve its full aspect ratio. */
:is(html[data-qcs-vixan-exact] body, body) main > article > :is(.blog-hero, .advisory-article-hero):has(> :is(.blog-hero-media, .advisory-article-media) > img) {
  --library-hero-gutter: max(clamp(1rem, 5vw, 4.5rem), calc((100% - 81rem) / 2));
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--library-hero-gutter);
  background: linear-gradient(170deg, #fff 0%, #fbf7f8 47%, #f1eaf2 100%);
}

:is(html[data-qcs-vixan-exact] body, body) main > article > :is(.blog-hero, .advisory-article-hero) > :is(.blog-hero-media, .advisory-article-media):has(> img) {
  grid-column: 1 / -1;
  width: calc(100% + 2 * var(--library-hero-gutter, 0px));
  max-width: none;
  height: auto;
  min-height: 0;
  margin-inline: calc(-1 * var(--library-hero-gutter, 0px));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(html[data-qcs-vixan-exact] body, body) main > article > :is(.blog-hero, .advisory-article-hero) > :is(.blog-hero-media, .advisory-article-media) > img {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  max-width: none;
  height: auto !important;
  object-fit: contain;
}

/* Only the lead illustrative canvases merge into the background. Tool controls stay outside. */
main.qcs-tools-page > section[aria-labelledby="tool-title"]:has(> .container > .cs_service_details > .cs_service_details_img [data-wide][class*="tool-motion_preview"]) {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.5rem, 6vw, 6rem);
  background: radial-gradient(ellipse at 95% 20%, #302738, #17151b 65%);
  color: #fff7f4;
}

main.qcs-tools-page > section[aria-labelledby="tool-title"]:has(> .container > .cs_service_details > .cs_service_details_img [data-wide][class*="tool-motion_preview"]) > .container {
  position: static;
}

main.qcs-tools-page > section[aria-labelledby="tool-title"] > .container > .cs_service_details:has(> .cs_service_details_img [data-wide][class*="tool-motion_preview"]) {
  position: static;
  display: block;
}

main.qcs-tools-page > section[aria-labelledby="tool-title"] > .container > .cs_service_details > .cs_service_details_img:has([data-wide][class*="tool-motion_preview"]) {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 33%, #000 67%);
}

main.qcs-tools-page > section[aria-labelledby="tool-title"] > .container > .cs_service_details > .cs_service_details_img :is(.cs_style_img, [data-wide][class*="tool-motion_preview"]) {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

main.qcs-tools-page > section[aria-labelledby="tool-title"]:has(> .container > .cs_service_details > .cs_service_details_img [data-wide][class*="tool-motion_preview"]) :is(.cs_section_heading, .cs_service_details_text) {
  position: relative;
  z-index: 1;
  width: min(100%, 43rem);
}

main.qcs-tools-page > section[aria-labelledby="tool-title"]:has(> .container > .cs_service_details > .cs_service_details_img [data-wide][class*="tool-motion_preview"]) :is(h1, h2, p, .cs_btn.cs_style_1, .cs_back_to_services_btn a) {
  color: #fff7f4;
}

main.qcs-tools-page > section[aria-labelledby="tool-title"]:has(> .container > .cs_service_details > .cs_service_details_img [data-wide][class*="tool-motion_preview"]) :is(.cs_btn.cs_style_1, .cs_back_to_services_btn a)::before {
  background-color: #9d3c13;
}

main.qcs-tools-page > section[aria-labelledby="tool-title"] > .container > .cs_section_heading + :is(.cs_height_100, .cs_height_lg_60):has(+ .cs_service_details > .cs_service_details_img [data-wide][class*="tool-motion_preview"]) {
  height: clamp(1rem, 3vw, 2.5rem);
}

@media (max-width: 767px) {
  :is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero):has(> .domain-hero-visual) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  :is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero) > .domain-hero-visual {
    padding-top: .75rem;
  }

  :is(html[data-qcs-vixan-exact] body, body) main:is(.purpose-learning, .purpose-assessment, .purpose-intelligence, .purpose-solution, .purpose-resource) > :is(.visual-page-hero, .ccna-course-hero) > .domain-hero-visual .qcs-domain-canvas {
    width: calc(100% + 2 * var(--library-hero-gutter));
    height: clamp(10rem, 52vw, 22rem);
    margin-inline-start: calc(-1 * var(--library-hero-gutter));
    mask-image: radial-gradient(ellipse at 50% 50%, #000 53%, transparent 79%);
  }

  main.qcs-tools-page > section[aria-labelledby="tool-title"] > .container > .cs_service_details > .cs_service_details_img:has([data-wide][class*="tool-motion_preview"]) {
    mask-image: linear-gradient(180deg, transparent 12%, #000 100%);
    opacity: .55;
  }
}

/* The rotating approach mark shares the page's existing intro surface. */
main.qcs-approach-page > #approach-intro {
  background: radial-gradient(ellipse at 80% 53%, #f4e6eb 0, #faf3f5 23%, transparent 62%), #fff;
}

main.qcs-approach-page > #approach-intro .cs_animated_badge {
  background: transparent;
  box-shadow: none;
}

@media (max-width: 991px) {
  main.qcs-approach-page > #approach-intro {
    background: radial-gradient(ellipse at 53% 76%, #f4e6eb 0, #faf3f5 23%, transparent 74%), #fff;
  }
}

/* Keep the Portfolio Details text aligned with the full-width evidence hero. */
html[data-qcs-vixan-exact] body main article[data-qcs-case-parity] > .blog-hero:has(> .blog-hero-media > img) .article-breadcrumb {
  inset-inline: var(--library-hero-gutter, var(--qcs-editorial-gutter));
}

html[data-qcs-vixan-exact] body main article[data-qcs-case-parity] > .blog-hero:has(> .blog-hero-media > img) [data-qcs-editorial="metadata"] {
  margin-block-start: clamp(2.25rem, 5vw, 4rem);
}

html[data-qcs-vixan-exact] body main article[data-qcs-case-parity] > .blog-hero:has(> .blog-hero-media > img) > .blog-hero-media {
  margin-block-start: clamp(1.75rem, 3.5vw, 3rem);
}

/* Blend the existing topology into the CCNA hero surface. Lesson and watch players keep their own layout. */
:is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero:has(> .domain-training) {
  background: radial-gradient(ellipse at 84% 35%, #eaf2f9, transparent 60%),
    linear-gradient(112deg, #fff 34%, #f8f3f7 100%);
}

/* The training fallback contains captured buttons and a caption beneath the topology. */
:is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero .domain-training .qcs-scene-fallback {
  inset: 50% auto auto 0 !important;
  width: 144% !important;
  height: auto !important;
  max-width: none;
  padding: 0;
  object-fit: initial;
  transform: translateY(-36%);
  mask-image: linear-gradient(180deg, transparent 7%, #000 16%, #000 58%, transparent 64%),
    linear-gradient(90deg, transparent 0%, #000 5%, #000 65%, transparent 71%);
  mask-composite: intersect;
}

@media (min-width: 992px) {
  :is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero > .domain-training {
    align-self: start;
    padding-block-start: clamp(15rem, 28vw, 25rem);
  }

  :is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero .domain-training .qcs-domain-canvas {
    position: absolute;
    inset: auto 0 100% auto;
    width: min(46vw, 54rem);
    height: clamp(19rem, 34vw, 30rem);
    margin: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 54% 47%, #000 41%, transparent 76%);
  }
}

@media (max-width: 767px) {
  :is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero:has(> .domain-training) {
    background: radial-gradient(ellipse at 62% 74%, #eaf2f9, transparent 62%),
      linear-gradient(150deg, #fff 32%, #f8f3f7 100%);
  }

  :is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero .ccna-course-copy > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.6;
  }

  :is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero .ccna-course-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero .ccna-course-stats > div {
    padding-inline: clamp(.35rem, 2vw, .8rem);
    overflow-wrap: anywhere;
  }
}

/* Continue the shared tool hero treatment into the directory's toolkit feature. */
main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"]:has(.qcs-tools-feature [data-tool-motion="toolkit"][data-wide]) {
  --utility-ink: #fff7f4;
  --qcs-action-ink: #fff7f4;
  --qcs-action-coral: #9d3c13;
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse at 23% 28%, #332738, #17151b 67%);
  color: #fff7f4;
}

main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] > .container {
  position: static;
}

main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] .qcs-tools-feature:has([data-tool-motion="toolkit"][data-wide]) {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
  min-block-size: clamp(21rem, 29vw, 28rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] .qcs-tools-feature > .cs_service_details_img:has([data-tool-motion="toolkit"][data-wide]) {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] .qcs-tools-feature > .cs_service_details_img > .cs_style_img:has([data-tool-motion="toolkit"][data-wide]) {
  width: min(100%, 64vw);
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: 0;
  mask-image: radial-gradient(ellipse at 46% 51%, #000 38%, transparent 74%);
}

main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] [data-tool-motion="toolkit"][data-wide] {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] .qcs-tools-feature > .cs_service_details_text {
  position: relative;
  z-index: 1;
  grid-column: 2;
  min-width: 0;
}

main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] :is(h2, p, .cs_btn.cs_style_1, .cs_btn.cs_style_1 > *) {
  color: #fff7f4;
}

@media (max-width: 767px) {
  main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] .qcs-tools-feature:has([data-tool-motion="toolkit"][data-wide]) {
    grid-template-columns: minmax(0, 1fr);
    min-block-size: 0;
    padding-block: clamp(11.25rem, 53vw, 17.5rem) 2.25rem;
  }

  main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] .qcs-tools-feature > .cs_service_details_img > .cs_style_img:has([data-tool-motion="toolkit"][data-wide]) {
    width: 100%;
    height: clamp(13rem, 62vw, 20rem);
    mask-image: radial-gradient(ellipse at 50% 46%, #000 30%, transparent 75%);
  }

  main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] .qcs-tools-feature > .cs_service_details_text {
    grid-column: 1;
  }

  main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] #toolkit-feature-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

/* Blend the overview illustration into its section while keeping the form and service link in flow. */
main.qcs-contact-page > #contact-overview:has(.qcs-contact-art > img) {
  background: radial-gradient(ellipse 54% 46% at 78% 13%, #f1e6ee, transparent 84%), #fff;
}

main.qcs-contact-page > #contact-overview .qcs-contact-art:has(> img) {
  position: relative;
  isolation: isolate;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

main.qcs-contact-page > #contact-overview .qcs-contact-art > img {
  border-radius: 0;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 78%, transparent),
    linear-gradient(180deg, transparent, #000 13%, #000 83%, transparent);
  mask-composite: intersect;
}

@media (max-width: 991px) {
  main.qcs-contact-page > #contact-overview:has(.qcs-contact-art > img) {
    background: #fff;
  }

  main.qcs-contact-page > #contact-overview .qcs-contact-art:has(> img)::before {
    position: absolute;
    z-index: -1;
    inset: -1rem 0;
    background: radial-gradient(ellipse, #f3e9f0, transparent 74%);
    pointer-events: none;
    content: "";
  }
}

/* Keep the title readable in its existing column at tablet widths. */
@media (min-width: 768px) and (max-width: 991px) {
  :is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero > .ccna-course-copy > h1 {
    max-width: 100%;
    font-size: clamp(2.125rem, 4.45vw, 2.75rem);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  :is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero > .ccna-course-copy > h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 4.5vw, 3.2rem);
  }
}

@media (min-width: 1600px) {
  :is(html[data-qcs-vixan-exact] body, body) main.ccna-course-page.purpose-learning > .ccna-course-hero .domain-training .qcs-domain-canvas {
    width: min(38vw, 47rem);
  }
}

@media (min-width: 768px) {
  /* The full-bleed hero wash continues behind a right-aligned tool illustration. */
  main.qcs-tools-page > section[aria-labelledby="tool-title"] > .container > .cs_service_details > .cs_service_details_img:has([data-tool-motion][data-wide]) {
    mask-image: linear-gradient(90deg, transparent 33%, #000 60%);
  }

  main.qcs-tools-page > section[aria-labelledby="tool-title"] > .container > .cs_service_details > .cs_service_details_img > .cs_style_img:has([data-tool-motion][data-wide]) {
    position: absolute;
    inset-block: 0;
    inset-inline-end: max(0px, calc((100% - 96rem) / 2));
    width: min(63%, 67rem);
    margin: 0;
    mask-image: radial-gradient(ellipse at 57% 52%, #000 42%, transparent 80%);
  }
}

@media (768px <= width < 1200px) {
  main.qcs-tools-page > section[aria-labelledby="tool-title"]:has(> .container > .cs_service_details > .cs_service_details_img [data-tool-motion][data-wide]) .cs_service_details_text {
    width: min(54%, 33rem);
  }

  main.qcs-tools-page > section[aria-labelledby="tool-title"] > .container > .cs_service_details > .cs_service_details_img > .cs_style_img:has([data-tool-motion][data-wide]) {
    inset-block-start: auto;
    height: 78%;
  }
}

@media (768px <= width < 992px) {
  main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] .qcs-tools-feature:has([data-tool-motion="toolkit"][data-wide]) {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  }

  main.qcs-tools-page > section[aria-labelledby="toolkit-feature-title"] #toolkit-feature-title {
    font-size: clamp(2.4rem, 5.25vw, 3.25rem);
  }
}

@media (min-width: 768px) {
  main.qcs-contact-page > #contact-overview .qcs-contact-art > img {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: auto;
    object-fit: contain;
    mask-image: radial-gradient(ellipse 72% 74% at 45% 48%, #000 46%, rgb(0 0 0 / .85) 62%, transparent 100%),
      linear-gradient(90deg, transparent, #000 9%, #000 75%, transparent),
      linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent);
    mask-composite: intersect;
  }
}

@media (min-width: 992px) {
  main.qcs-contact-page > #contact-overview .cs_contact {
    container-type: inline-size;
  }

  main.qcs-contact-page > #contact-overview .cs_contact .cs_contact_title {
    font-size: clamp(2.25rem, 12.2cqi, 4.125rem);
    text-wrap: balance;
    overflow-wrap: break-word;
  }
}

/* Fade each hero's media edge without fading its controls or live status. */
@media (min-width: 768px) {
  main.qcs-service-detail-page:is(.qcs-network-engineering, .qcs-network-security, :has(> #cloud-scope))
    > #service-overview .cs_service_details_img .cs_style_img :is(
      figure.qcs-network-scene--failover, div.qcs-security-hero-art, div.qcs-cloud-provider-hero__stage
    ) {
    mask-image: none;
    background: transparent;
  }

  main.qcs-service-detail-page:is(.qcs-network-engineering, .qcs-network-security, :has(> #cloud-scope))
    > #service-overview .cs_service_details_img .cs_style_img :is(
      .qcs-network-scene--failover > .qcs-network-scene__photo,
      .qcs-security-hero-art__scene > img,
      .qcs-cloud-provider-hero__stage > :is(img, video)
    ) {
    mask-image: var(--qcs-service-hero-edge-x), var(--qcs-service-hero-edge-y);
    mask-composite: intersect;
  }

  main.qcs-service-detail-page.qcs-network-engineering > #service-overview
    .qcs-network-scene--failover > .qcs-network-scene__overlay {
    background: transparent;
  }

  main.qcs-service-detail-page.qcs-network-engineering > #service-overview
    .qcs-network-scene--failover .qcs-network-scene__trace {
    box-shadow: none;
  }
}

@media (min-width: 768px) {
  /* Soften the photo perimeter while retaining the equipment and cable endpoints. */
  main.qcs-service-detail-page:is(
    .qcs-firewall-management, .qcs-pentest-detail, .qcs-troubleshooting-detail,
    .qcs-noc-detail, .qcs-specialist-detail
  ) > #service-overview .cs_service_details_img > .cs_style_img > img {
    --qcs-service-hero-edge-x: var(--qcs-specialist-photo-fade,
      linear-gradient(90deg, transparent, #0009 5%, #000 11%, #000 88%, #0009 95%, transparent));
    --qcs-service-hero-edge-y: linear-gradient(180deg, transparent, #0009 7%, #000 18%, #000 81%, #0008 93%, transparent);
    object-fit: contain;
  }

  /* Assessment and Wi-Fi equipment sit toward the left of their photographs. */
  main.qcs-service-detail-page:is(.qcs-pentest-detail, .qcs-specialist-detail) > #service-overview {
    --qcs-specialist-photo-fade: linear-gradient(90deg, transparent, #000b 4%, #000 10%, #000 55%, #000b 77%, #0005 91%, transparent);
  }

  /* The NOC equipment is on the right, with room to fade the empty left edge. */
  main.qcs-service-detail-page.qcs-noc-detail > #service-overview {
    --qcs-specialist-photo-fade: linear-gradient(90deg, transparent, #0005 12%, #000b 26%, #000 39%, #000 89%, #000b 96%, transparent);
  }
}
