/* CLI actions that are links or have a separate decorative face. */
html body :is(
  a:is(.product-primary,.product-button,.module-button,.repo-download,.btn,.button,.header-install,
       .nav-v5-login,.nav-v5-signup,.nav-v5-download,.nav-v5-link,.lang-link,.shot-frame),
  .edition-choices > a, .guide-grid a, .guide-jump a, .archive-jump a, .version-index a,
  .module-nav a, .cli-layout-platform-links a, .cli-layout-reading-grid > nav a,
  .nav-v5-account-panel a, .karmen-account-menu a, .account-tools a, .cli-footer-resources a,
  .repo-install a[data-download-link], .repo-file a[data-download-link],
  .edition-arrow, .dialog-image
) {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

html body :is(
  button, summary, [role="button"], [role="tab"], .edition-arrow, .guide-grid a, .version-index a,
  .edition-choices > a, .repo-download, .product-primary, .product-button
)::before,
html body :is(
  button, summary, [role="button"], [role="tab"], .edition-arrow, .guide-grid a, .version-index a,
  .edition-choices > a, .repo-download, .product-primary, .product-button
)::after {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Separation in the operation area comes from spacing and existing surfaces. */
html body :is(
  .site-header[data-site-nav-v5], .nav-v5-group-panel, [data-nav-menu-panel],
  [data-nav-mobile-utils], .nav-v5-mobile-group, .nav-v5-account-panel, .karmen-footer__group,
  .cli-layout-platform-menu, .cli-layout-reading-rail, .cli-layout-reading-grid > nav,
  .download-editions, .download-editions article, .download-platforms > div,
  .cli-layout-main-column, .repo-hero, .repo-product, .repo-product-head, .repo-legal,
  .repo-install, .repo-packages, .repo-file, .repo-command, .repo-checksum,
  .repo-support-files, .download-verify, .download-disclosure, .download-history,
  .download-resources, .archive-sections, .module-extra, .support-disclosure,
  [data-cli-version-row], [data-cli-version-disclosure], .version-index li,
  .guide-command, .code-copy, .guide-section, .guide-jump, .archive-jump, .guide-grid li,
  .cli-guide pre, .cli-guide blockquote, [data-cli-layout] :is(pre, .copy-status),
  .account-panel, .account-notice, .terminal-error, .product-dialog, .dialog-actions
) {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

html body :is(
  .site-header[data-site-nav-v5], .nav-v5-group-panel, [data-nav-menu-panel],
  .cli-layout-platform-menu, .cli-layout-reading-rail, .repo-product, .repo-file,
  .archive-sections, .download-history, .guide-command, .code-copy, .terminal-error
)::before,
html body :is(
  .site-header[data-site-nav-v5], .nav-v5-group-panel, [data-nav-menu-panel],
  .cli-layout-platform-menu, .cli-layout-reading-rail, .repo-product, .repo-file,
  .archive-sections, .download-history, .guide-command, .code-copy, .terminal-error
)::after {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

html body :is(
  .edition-choices > a, .guide-grid a, .guide-jump a, .archive-jump a, .version-index a,
  .module-nav a, .cli-layout-platform-links a, .cli-layout-reading-grid > nav a,
  .nav-v5-account-panel a, .karmen-account-menu a, .cli-footer-resources a,
  a:is(.product-primary,.product-button,.module-button,.repo-download,.lang-link,
       .nav-v5-login,.nav-v5-signup,.nav-v5-link,.nav-v5-download)
):focus-visible {
  text-decoration-line: underline !important;
  text-decoration-thickness: .13em;
  text-underline-offset: .2em;
}

html body :is(
  .site-header .icon-btn, [data-nav-toggle], .dialog-actions button, .dialog-image, .preview-image
):focus-visible {
  background-color: var(--hover, var(--bg-sunken)) !important;
  color: var(--text) !important;
}

html body .module-page .download-platforms a[data-install-platform][aria-current="true"] {
  background-color: var(--bg-sunken);
  font-weight: 700;
  text-decoration-line: underline;
  text-underline-offset: .2em;
}

html body .repo-file:target {
  background-color: var(--bg-sunken);
}

html body.workbench-site .product-hero-image .hero-preview {
  box-shadow: none !important;
}

@media (forced-colors: active) {
  html body :is(.site-header .icon-btn,[data-nav-toggle],.dialog-actions button,.dialog-image,.preview-image):focus-visible {
    forced-color-adjust: none;
    background-color: Highlight !important;
    color: HighlightText !important;
  }
}
