@font-face {
  font-family: "Trebuchet MS";
  font-weight: 700;
  size-adjust: 95%;
  src: local("Trebuchet MS"), local("TrebuchetMS");
}

@font-face {
  font-family: "Trebuchet MS";
  font-weight: 400;
  size-adjust: 87%;
  src: local("Trebuchet MS"), local("TrebuchetMS");
}

:root {
  /* Enable native dark mode support */
  color-scheme: light dark;

  /* Fonts */
  --body-font-family: "Adobe Clean", adobe-clean, "Trebuchet MS", sans-serif;
  --code-font-family:
    "Source Code Pro",
    source-code-pro,
    "Courier New",
    monospace;

  /* Headings (Consonant) */
  --type-heading-all-weight: 700;
  --type-heading-xxxl-size: 44px;
  --type-heading-xxxl-lh: 1;
  --type-heading-xxl-size: 36px;
  --type-heading-xxl-lh: 1;
  --type-heading-xl-size: 28px;
  --type-heading-xl-lh: 35px;
  --type-heading-l-size: 24px;
  --type-heading-l-lh: 30px;
  --type-heading-m-size: 20px;
  --type-heading-m-lh: 25px;
  --type-heading-s-size: 16px;
  --type-heading-s-lh: 20px;
  --type-heading-xs-size: 18px;
  --type-heading-xs-lh: 22px;
  --type-heading-xxs-size: var(--type-body-s-size);
  --type-heading-xxs-lh: var(--type-body-s-lh);

  /* Body (Consonant) */
  --type-body-l-size: 20px;
  --type-body-l-lh: 30px;
  --type-body-m-size: 18px;
  --type-body-m-lh: 27px;
  --type-body-s-size: 16px;
  --type-body-s-lh: 1.5;
  --type-body-xs-size: 14px;
  --type-body-xs-lh: 21px;
  --type-body-xxs-size: 12px;
  --type-body-xxs-lh: 1.5;
  --type-body-xxxs-lh: 15px;

  /* Detail (Consonant) */
  --type-detail-all-weight: 700;
  --type-detail-m-transform: uppercase;
  --type-detail-xl-size: 20px;
  --type-detail-xl-lh: 1.75;
  --type-detail-l-size: 16px;
  --type-detail-l-lh: 1.5;
  --type-detail-m-size: 12px;
  --type-detail-m-lh: 15px;

  /* Button */
  --body-line-height: 1.6875;

  /* Spacing (Consonant) */
  --spacing-xxxs: 4px;
  --spacing-xxs: 8px;
  --spacing-xs: 16px;
  --spacing-s: 24px;
  --spacing-m: 32px;
  --spacing-ml: 40px;
  --spacing-l: 48px;
  --spacing-xl: 56px;
  --spacing-xxl: 80px;
  --spacing-xxxl: 104px;

  /* Adobe Spectrum Colors with light-dark() support */

  /* Primary brand colors */
  --dark-spectrum-blue: #0463d6;
  --spectrum-blue: #1473e6;
  --brand-color-purple: #8a8df3;
  --brand-color-dark-purple: #7473e4;
  --brand-color-pink: #f1bce7;
  --brand-color-green-yellow: #ebf3a4;
  --highlight-gradient: linear-gradient(75deg, #db3278, #ee732f);

  /* Base colors using Adobe Spectrum palette with light-dark() */
  --color-black: light-dark(#000, #fff);
  --color-white: light-dark(#fff, #000);

  /* Gray scale - Adobe Spectrum inspired */
  --color-gray-50: light-dark(#fff, #1e1e1e);
  --color-gray-100: light-dark(#f5f5f5, #2c2c2c);
  --color-gray-200: light-dark(#e1e1e1, #3e3e3e);
  --color-gray-300: light-dark(#d6d6d6, #4a4a4a);
  --color-gray-400: light-dark(#b3b3b3, #6e6e6e);
  --color-gray-500: light-dark(#8e8e8e, #909090);
  --color-gray-600: light-dark(#686868, #b3b3b3);
  --color-gray-700: light-dark(#4b4b4b, #d4d4d4);
  --color-gray-800: light-dark(#2c2c2c, #e1e1e1);
  --color-gray-900: light-dark(#1e1e1e, #f5f5f5);

  /* Semantic colors for buttons and interactions */
  --color-info-accent: light-dark(#1473e6, #378ef0);
  --color-info-accent-hover: light-dark(#0d66d0, #4b9cf5);
  --color-info-accent-down: light-dark(#095aba, #2680eb);
  --color-info-primary: light-dark(#1473e6, #378ef0);
  --color-info-primary-hover: light-dark(#0d66d0, #4b9cf5);
  --color-info-primary-down: light-dark(#095aba, #2680eb);
  --color-info-secondary: light-dark(#f5f5f5, #2c2c2c);
  --color-info-secondary-hover: light-dark(#e1e1e1, #3e3e3e);
  --color-info-secondary-down: light-dark(#d6d6d6, #4a4a4a);
  --color-info-accent-reverse: light-dark(#e3f2fd, #1a2332);
  --color-info-accent-reverse-down: light-dark(#c8e4fb, #0d1824);

  /* Text colors */
  --color-font-grey: light-dark(#2c2c2c, #e1e1e1);
  --color-light-grey-600: light-dark(#686868, #b3b3b3);
  --color-eyebrow-light-grey: light-dark(#444, #d4d4d4);
  --color-eyebrow-highlight: #6870ec;

  /* Accent colors - adjusted for dark mode visibility */
  --color-accent-blue: light-dark(#6870ec, #8b92ff);
  --color-accent-highlight-yellow: light-dark(#e3fa8c, #c5dc6e);
  --color-accent-pink-bg: light-dark(#f0b2f2, #7d2d7f);
  --color-accent-pink-content: light-dark(#88008d, #fff);
  --color-accent-purple-bg: light-dark(#474eb8, #4a52c4);
  --color-accent-purple-content: light-dark(#e2e4ff, #fff);
  --color-accent-lightgreen-bg: light-dark(#e1fa82, #8fa940);
  --color-accent-lightgreen-content: light-dark(#3b5700, #fff);
  --color-accent-yellow-bg: light-dark(#f5e66b, #a89a2f);
  --color-accent-yellow-content: light-dark(#7f6000, #fff);

  /* Background colors */
  --bg-color-lightgrey: light-dark(#f8f8f8, #1e1e1e);
  --bg-color-grey: light-dark(#e8e8e8, #2c2c2c);
  --bg-color-grey-2: light-dark(#d6d6d6, #3e3e3e);
  --overlay-curtain-bg-color: light-dark(rgb(0 0 0 / 60%), rgb(0 0 0 / 80%));
  --overlay-curtain-bg-filter: blur(0.05em);
  --code-bg-color: light-dark(#f1f1f1, #2c2c2c);

  /* Shadow colors - for consistent shadow treatment */
  --shadow-color-5: rgb(0 0 0 / 5%);
  --shadow-color-7: rgb(0 0 0 / 7%);
  --shadow-color-10: rgb(0 0 0 / 10%);
  --shadow-color-15: rgb(0 0 0 / 15%);
  --shadow-color-20: rgb(0 0 0 / 20%);
  --shadow-color-25: rgb(0 0 0 / 25%);
  --shadow-color-30: rgb(0 0 0 / 30%);
  --shadow-color-33: rgb(0 0 0 / 33%);
  --shadow-color-40: rgb(0 0 0 / 40%);
  --shadow-color-50: rgb(0 0 0 / 50%);
  --shadow-color-60: rgb(0 0 0 / 60%);
  --shadow-color-70: rgb(0 0 0 / 70%);
  --shadow-color-80: rgb(0 0 0 / 80%);
  --shadow-color-90: rgb(0 0 0 / 90%);
  --shadow-color-100: rgb(0 0 0 / 100%);

  /* Border colors */
  --border-color-light: light-dark(#eaeaea, #3a3a3a);
  --border-color-medium: light-dark(#d6d6d6, #4a4a4a);
  --border-color-dark: light-dark(#ccc, #555);

  /* Brand/accent colors - non-semantic */
  --color-brand-red: #d31510;
  --color-brand-pink: #e6118a;
  --color-brand-orange: #fe833f;
  --color-brand-deep-blue: #2a2f8f;

  /* Status/semantic colors */
  --color-warning: light-dark(#ffc107, #ffca28);
  --color-error: light-dark(#d31510, #ff5252);
  --color-success: light-dark(#2e7d32, #66bb6a);

  /* Highlight/search colors */
  --color-search-highlight: light-dark(rgb(255 208 0 / 30%), rgb(255 208 0 / 75%));

  /* Release tag colors */
  --color-release-blue: light-dark(#d4e8ff, #1a3352);
  --color-release-pink: light-dark(#ffd4f1, #3d1a33);
  --color-release-green: light-dark(#d1ffed, #1a3d2e);
  --color-release-gray: light-dark(#e8e8e8, #3a3a3a);
  --color-release-lime: light-dark(#e4e8bf, #2e3318);
  --color-release-yellow: light-dark(#f4f8cf, #33301a);
  --color-release-orange: light-dark(#ffebd4, #3d2a1a);
  --color-release-cyan: light-dark(#cfebf8, #1a2e3d);
  --color-release-purple: light-dark(#edd1ff, #2e1a3d);
  --color-release-peach: light-dark(#ffe4d4, #3d261a);
  --color-release-red: light-dark(#ffd1d1, #3d1a1a);

  /* Grid / container width -- 600px, 900px */
  --grid-mobile-container-width: 88%;
  --grid-tablet-container-width: 83%;
  --grid-laptop-container-width: 90%;
  --grid-desktop-container-width: 1200px;

  /* header navbar */
  --header-container-width: 1440px;
  --header-container-tablet-x-padding: 24px;
  --header-container-desktop-x-padding: 20px;

  /* Border-radius */
  --input-border-radius: 4px;
  --image-border-radius-m: 8px;
  --image-border-radius-l: 16px;
  --image-border-radius-xl: 24px;
  --image-border-radius-xxl: 30px;
  --card-border-radius-l: 12px;

  /* nav */
  --nav-height: 65px;

  /* breadcrumb */
  --breadcrumb-height: 1px;

  /* Checkerboard pattern */
  --color-checkerboard-bg-border: rgb(214 213 213 / 40%);
  --color-checkerboard-bg-fill: transparent;
  --checkerboard-background:
    linear-gradient(
      var(--color-checkerboard-bg-border) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      var(--color-checkerboard-bg-border) 1px,
      transparent 1px
    ),
    linear-gradient(
      45deg,
      var(--color-checkerboard-bg-fill) 50%,
      var(--color-checkerboard-bg-fill) 51%
    );
  --checkerboard-background-size: clamp(15px, 3vw, 25px) clamp(15px, 3vw, 25px);

  /* z-index */
  --sidebar-z-index: 9998;
  --nav-z-index: 9999;

  /* colorful tags */
  --circular-icon-tag-size: 30px;
  --circular-number-tag-size: 60px;

  /* drop-shadow */
  --image-filter-drop-shadow-small:
    drop-shadow(
      10px 25px 50px rgb(0 0 0 / 10%)
    );

  /* guide-templates */
  --side-navigation-bar-gap: var(--spacing-s);

  /* animation & transition */
  --cubic-bezier-1: cubic-bezier(0.802, 0, 0.2, 1);
  --cubic-bezier-2: cubic-bezier(0.23, 1, 0.32, 1);
  --transition-cubic-bezier-1: all 0.4s var(--cubic-bezier-2);
  --transition-ease-in-out: all 0.4s ease-in-out;
  --fade-transition: all 0.6s var(--cubic-bezier-1);
  --slide-text-transition: all 0.8s var(--cubic-bezier-1);
  --slide-reveal-transition-slow: all 1s var(--cubic-bezier-1);

  /* clip-paths */
  --circular-1-clip-path-init: circle(50% at 0 50%);
  --circular-1-clip-path-full: circle(120% at 0 50%);
}

/* Theme override selectors - for manual theme toggle */
html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

@media (width >= 600px) {
  :root {
    /* breadcrumb */
    --breadcrumb-height: 47px;
  }
}

/* desktop variables */
@media (width >= 900px) {
  :root {
    /* Headings (Consonant) */
    --type-heading-all-weight: 700;
    --type-heading-xxxl-size: clamp(60px, 4.2vw, 80px);
    --type-heading-xxxl-lh: 0.9;
    --type-heading-xxl-size: 44px;
    --type-heading-xxl-lh: 1;
    --type-heading-xl-size: 36px;
    --type-heading-xl-lh: 45px;
    --type-heading-l-size: 28px;
    --type-heading-l-lh: 35px;
    --type-heading-m-size: 24px;
    --type-heading-m-lh: 30px;
    --type-heading-s-size: 20px;
    --type-heading-s-lh: 25px;
    --type-heading-xs-size: 18px;
    --type-heading-xs-lh: 22px;

    /* colorful tags */
    --circular-icon-tag-size: 50px;
    --circular-number-tag-size: 60px;

    /* Border-radius */
    --card-border-radius-l: 24px;

    /* guide-templates */
    --side-navigation-bar-gap:
      clamp(
        var(--spacing-m),
        3.2vw,
        var(--spacing-ml)
      );
  }
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

a,
button {
  -webkit-tap-highlight-color: transparent;

  /* outline: none; */
}

body {
  font-family: var(--body-font-family);
  margin: 0;
  padding-top: var(--nav-height);
  font-size: var(--type-body-l-size);
  line-height: var(--type-body-l-lh);
  display: none;
  background-color: var(--color-gray-50);
  color: var(--color-gray-900);
}

body.appear {
  display: unset;
}

/* block style for container width, max-width */
.block.contained,
.section.content > div,
.default-content-wrapper,
.contained-wrapper,
.feed.recent,
.feed.compact,
.feed.blog,
.event-list {
  max-width: var(--grid-mobile-container-width);
  margin-left: auto;
  margin-right: auto;
}

aside {
  min-height: 75px;
  padding: var(--spacing-xxs) 0 0;
}

@media screen and (width >= 600px) {
  .block.contained,
  .section.content > div,
  .default-content-wrapper,
  .contained-wrapper,
  .feed.recent,
  .feed.compact,
  .feed.blog,
  .event-list {
    max-width: var(--grid-tablet-container-width);
  }
}

@media screen and (width >= 900px) {
  .block.contained,
  .default-content-wrapper,
  .franklin .gnav .submenu-content,
  .contained-wrapper,
  .feed.recent,
  .feed.compact,
  .feed.blog,
  .event-list {
    max-width: 90%;
  }

  .side-navigation-wrapper.expand {
    margin-left: auto;
    margin-right: auto;
  }

  .section.content > div,
  .results-wrapper.open {
    max-width: 100%;
    padding-left: var(--side-navigation-bar-gap);
    margin-right: 0;
  }

  body.blog-template {
    --blog-content-width: 70%;
  }

  .blog-template .default-content-wrapper {
    max-width: var(--blog-content-width);
  }
}

@media screen and (width >= 1250px) {
  .block.contained,
  .section.content > div,
  .default-content-wrapper,
  .contained-wrapper,
  .side-navigation-wrapper.expand,
  .side-navigation-wrapper.expand + .section.content,
  .franklin .gnav .submenu-content,
  .feed.recent,
  .feed.compact,
  .feed.blog,
  .event-list {
    max-width: var(--grid-desktop-container-width);
  }

  body.blog-template {
    --blog-content-width: 60%;
  }

  .blog-template .default-content-wrapper {
    max-width: var(--blog-content-width);
    height: 50%;
  }
}

[class$="-"],
[data-block-select] {
  opacity: 0;
}

[data-block-select][data-block-loaded] {
  opacity: 1;
}

header {
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--color-gray-50);
  z-index: var(--nav-z-index);
}

header,
footer {
  visibility: hidden;
}

.no-header-template header {
  display: none;
}

header:has(.header.block[data-block-status="loaded"]),
footer:has(.footer.block[data-block-status="loaded"]) {
  visibility: unset;
}

header .header {
  width: 100%;
}

img {
  max-width: 100%;
  width: auto;
  height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin: 0;
  scroll-margin: calc(var(--nav-height) + 1em);
}

h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.04em;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
  font-weight: 900;
}

/* Heading XXL */
h1 {
  font-size: var(--type-heading-xxl-size);
  line-height: 1;
  margin-bottom: 20px;
}

/* Heading XL */
h2 {
  font-size: var(--type-heading-xxl-size);
  line-height: 1;
}

/* Heading M */
h3 {
  font-size: var(--type-heading-m-size);
  line-height: var(--type-heading-m-lh);
}

/* Heading S */
h4 {
  font-size: var(--type-heading-s-size);
  line-height: var(--type-heading-s-lh);
}

/* Heading XS */
h5 {
  font-size: var(--type-heading-xs-size);
  line-height: var(--type-heading-xs-lh);
}

/* Heading XS */
h6 {
  font-size: var(--type-heading-xxs-size);
  line-height: var(--type-heading-xxs-lh);
}

/* Utilities */
.hidden {
  display: none;
}

em a {
  color: var(--color-gray-900);
  border: 2px solid;
  background-color: transparent;
  border-radius: 16px;
  display: inline-block;
  line-height: 28px;
  padding: 0 14px;
  text-decoration: none;
  font-size: 14px;
  font-style: normal;
  cursor: pointer;
}

/* Primary button over background */
strong a {
  color: inherit;
}

pre {
  width: 100%;
}

main table pre {
  margin: 0;
  padding: 0.5em;
  background-color: transparent;
}

pre:not(:has(.hljs)) {
  overflow-x: scroll;
}

/* inline code styles */
code {
  font-family: var(--code-font-family);
  letter-spacing: -0.08px;
  line-height: 1.8;
}

pre code {
  font-size: 14px;
  border: unset;
}

code:not(pre > code) {
  font-size: 14px;
  overflow-wrap: break-word;
  border: 1px solid var(--color-gray-200);
  background-color: var(--code-bg-color);
  color: light-dark(#0463d6, #6cb2ff);
  padding: 1px 4px;
  border-radius: 4px;
}

@media screen and (width >= 600px) {
  pre code {
    font-size: 16px;
  }
}

/* Code copy button */
.code-block-wrapper {
  position: relative;
}

.code-copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 8px;
  background-color: rgb(0 0 0 / 50%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.code-copy-button:hover {
  background-color: rgb(0 0 0 / 70%);
  opacity: 1;
}

.code-copy-button:focus {
  opacity: 1;
  outline: 2px solid #1473e6;
  outline-offset: 2px;
}

.code-block-wrapper:hover .code-copy-button {
  opacity: 1;
}

.code-copy-button.copied {
  background-color: #2d8659;
  border-color: rgb(255 255 255 / 30%);
}

.code-copy-button svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Icon on button */

em a img,
strong a img {
  position: relative;
  height: 24px;
  left: -6px;
  float: left;
}

/* icon style reset for updated decorateIcons function
as height expanded weirdly */
.icon svg {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* buttons */
a.button:any-link {
  text-decoration: none;
  border-radius: 25px;
  padding: 5px 1.2em 6px;
  text-align: center;
  font-size: var(--type-body-xs-size);
  font-style: normal;
  font-weight: 600;
  line-height: var(--body-line-height);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border 0.3s;
  border-width: 2px;
  border-style: solid;
  margin: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  height: fit-content;
}

a.button.xlarge:any-link {
  padding: 13px 1.5em;
  border-radius: 27px;
  font-size: var(--type-body-l-size);
}

a.button.large:any-link {
  padding: 8px 1.5em;
  border-radius: 100px;
}

a.button.small:any-link {
  padding: 4px 1em;
  border-radius: 15px;
  font-size: var(--type-body-xxs-size);
}

a.button:any-link,
a.button.accent:any-link,
a.button.primary-cta:any-link {
  color: var(--color-white);
  background-color: var(--color-info-accent);
  border-color: var(--color-info-accent);
}

a.button:focus,
a.button.accent:focus,
a.button.primary-cta:focus {
  background-color: var(--color-info-accent-hover);
  border-color: var(--color-info-accent-hover);
  color: var(--color-white);
  box-shadow:
    0 0 0 2px var(--color-white),
    0 0 0 4px var(--color-info-accent-hover);
}

p.button-container > a.button {
  margin-left: 0;
}

a.button:any-link:hover,
a.button.accent:any-link:hover,
a.button.primary-cta:any-link:hover {
  background-color: var(--color-info-accent-hover);
  border-color: var(--color-info-accent-hover);
}

a.button:any-link:active,
a.button.accent:any-link:active,
a.button.primary-cta:any-link:active {
  background-color: var(--color-info-accent-down);
  border-color: var(--color-info-accent-down);
}

/* stylelint-disable no-descending-specificity */
a.button.primary:any-link {
  color: #fff;
  background-color: #1473e6;
  border-color: #1473e6;
}

a.button.primary:focus,
a.button.primary.reverse:focus {
  background-color: #0d66d0;
  border-color: #0d66d0;
  color: #fff;
}

a.button.primary:any-link:hover {
  background-color: #0d66d0;
  border-color: #0d66d0;
  color: #fff;
}

a.button.primary:any-link:active {
  background-color: #095aba;
  border-color: #095aba;
}

.redesign a.button.primary:any-link {
  color: #fff;
  background-color: #1473e6;
  border-color: #1473e6;
}

.redesign a.button.primary:focus,
.redesign a.button.primary.reverse:focus {
  background-color: #0d66d0;
  border-color: #0d66d0;
  color: #fff;
}

.redesign a.button.primary:any-link:hover {
  background-color: #0d66d0;
  border-color: #0d66d0;
}

.redesign a.button.primary:any-link:active {
  background-color: #095aba;
  border-color: #095aba;
}

:where(html[data-theme="dark"]) a.button.primary:any-link {
  color: #fff;
  background-color: #0d66d0;
  border-color: #0d66d0;
}

:where(html[data-theme="dark"]) a.button.primary:focus,
:where(html[data-theme="dark"]) a.button.primary.reverse:focus {
  background-color: #095aba;
  border-color: #095aba;
}

:where(html[data-theme="dark"]) a.button.primary:any-link:hover {
  background-color: #095aba;
  border-color: #095aba;
}

:where(html[data-theme="dark"]) a.button.primary:any-link:active {
  background-color: #074a8e;
  border-color: #074a8e;
}

:where(html[data-theme="dark"]) .redesign a.button.primary:any-link {
  color: #fff;
  background-color: #0d66d0;
  border-color: #0d66d0;
}

:where(html[data-theme="dark"]) .redesign a.button.primary:focus,
:where(html[data-theme="dark"]) .redesign a.button.primary.reverse:focus {
  background-color: #095aba;
  border-color: #095aba;
}

:where(html[data-theme="dark"]) .redesign a.button.primary:any-link:hover {
  background-color: #095aba;
  border-color: #095aba;
  color: #fff;
}

:where(html[data-theme="dark"]) .redesign a.button.primary:any-link:active {
  background-color: #074a8e;
  border-color: #074a8e;
}
/* stylelint-enable no-descending-specificity */

a.button.secondary:any-link {
  color: var(--color-black);
  background-color: var(--color-info-secondary);
  border-color: var(--color-info-secondary);
}

a.button.secondary:focus {
  background-color: var(--color-gray-500);
  border-color: var(--color-gray-500);
  color: var(--color-white);
}

a.button.secondary:any-link:hover {
  background-color: var(--color-info-secondary-hover);
  border-color: var(--color-info-secondary-hover);
}

a.button.secondary:any-link:active {
  background-color: var(--color-info-secondary-down);
  border-color: var(--color-info-secondary-down);
}

a.button.reverse.accent:any-link,
a.button.reverse.primary-cta:any-link {
  color: var(--color-info-accent);
}

a.button.reverse:any-link {
  color: var(--color-black);
  background-color: var(--color-white);
}

a.button.reverse:focus,
a.button.reverse.accent:any-link:focus,
a.button.reverse.primary-cta:any-link:focus {
  background-color: var(--color-info-accent-hover);
  border-color: var(--color-info-accent-hover);
  color: var(--color-white);
}

a.button.reverse:any-link:hover {
  background-color: var(--color-info-secondary-hover);
}

a.button.reverse:any-link:active {
  background-color: var(--color-info-secondary-down);
}

a.button.reverse.accent:any-link:hover,
a.button.reverse.primary-cta:any-link:hover {
  background-color: var(--color-info-accent-reverse);
}

a.button.reverse.accent:any-link:active,
a.button.reverse.primary-cta:any-link:active {
  background-color: var(--color-info-accent-reverse-down);
}

a.button > svg {
  float: left;
  display: inline;
  width: 20px;
  height: 20px;
  margin: 8px 8px 8px 0;
  fill: currentcolor;
  color: currentcolor;
}

a.button > svg > use {
  fill: currentcolor;
  color: currentcolor;
}

/* Redesign button animation */

/* primary button: blue bg */
.redesign a.button:any-link,
main .form .button,
.feed.blog .read-more {
  cursor: pointer;
  text-decoration: none;
  padding: 5.5px 15px;
  text-align: center;
  font-size: var(--type-body-xs-size);
  line-height: var(--body-line-height);
  font-style: normal;
  font-weight: 600;
  color: var(--color-white);
  background: transparent;
  border: 2px solid var(--spectrum-blue);
  border-radius: 100px;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
  position: relative;
  height: fit-content;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  transform: translateZ(0);

  /* fix for ios overflow with border-radius not working */
  isolation: isolate;
}

main .form .button {
  font-weight: 500;
}

.redesign a.button:any-link span {
  color: #fff;
  transition: all 0.3s ease-in-out;
}

.redesign a.button:any-link:hover,
main .form .button:hover,
.feed.blog .read-more:hover {
  color: var(--spectrum-blue);
  border-color: var(--spectrum-blue);
  transform: translateZ(0);
}

.redesign a.button:any-link:hover span {
  color: var(--spectrum-blue);
}

.redesign a.button:any-link::before,
main .form .button::before {
  content: "";
  position: absolute;
  left: -102%;
  top: 0;
  transition: all 0.3s ease-in-out;
  width: 202%;
  height: 104%;
  z-index: -1;

  /* 1st value: hovered color, 2nd value: original color */
  background:
    radial-gradient(
      circle at left,
      var(--color-white) 50%,
      var(--spectrum-blue) 50%
    );
}

.redesign a.button:any-link:hover::before,
main .form .button:hover::before {
  left: 0%;
}

/* secondary button: grey border transparent bg -> border button */
.redesign a.button.secondary:any-link {
  color: var(--color-font-grey);
  border-color: var(--color-font-grey);
}

.redesign a.button.secondary:any-link:hover {
  color: var(--color-white);
}

.redesign a.button.secondary:any-link::before {
  /* 1st value: hovered color, 2nd value: original color */
  background:
    radial-gradient(
      circle at left,
      var(--color-font-grey) 50%,
      transparent 50%
    );
}

/* .black-border button: black border transparent bg -> border button */
.redesign a.button.black-border:any-link {
  color: var(--color-black);
  border-color: var(--color-black);
}

.redesign a.button.black-border:any-link:hover {
  color: var(--color-white);
}

.redesign a.button.black-border:any-link::before {
  /* 1st value: hovered color, 2nd value: original color */
  background:
    radial-gradient(
      circle at left,
      rgb(0 0 0 / 50%) 50%,
      transparent 50%
    );
}

:where(html[data-theme="dark"]) .hero.colorful-bg a.button.black-border:any-link {
  --color-black: #000;
  --color-white: #fff;

  font-weight: 700;
}

/* larger size */
.redesign a.button.large:any-link {
  font-size: var(--type-body-s-size);
  line-height: var(--type-body-s-lh);
}

@media screen and (width >= 900px) {
  .redesign a.button.large:any-link {
    font-size: var(--type-body-m-size);
    line-height: 1.35;
    padding: 8px 20px;
    margin-bottom: 0;
  }
}

@media screen and (width >= 1200px) {
  .redesign a.button.large:any-link {
    font-size: 18px;
    line-height: 24px;
    padding: 10px 26px;
  }
}

/* ---- button ends ---- */

/* cannot use `overflow:hidden` here as position:sticky in breadcrumb */
main {
  min-height: calc(100vh - 264px);
}

main p em strong,
main p strong em {
  background-color: #fe833f;
  padding: 0 10px;
  display: inline-block;
}

main table,
main table th,
main table tr,
main table td {
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
}

main table th {
  border-bottom: 1px solid currentcolor;
}

main table td {
  vertical-align: top;
}

main table p {
  margin: 0;
  padding: 0.5em;
  background-color: transparent;
}

/* section styling */
main .section {
  padding: 4rem 0;
}

/* fix for overflow */
main .section > div:has(.inview-animation),
main .section > div:has(.fade-left),
main .section > div:has(.fade-right) {
  overflow: hidden;
}

.quote-wrapper {
  max-width: 900px;
  margin: auto;
}

main .section ul {
  text-align: left;
}

main .section:empty {
  display: none;
}

.docs-template main .section {
  text-align: left;
}

.block {
  text-align: left;
}

main .section.highlight {
  background: var(--highlight-gradient);
  color: white;
}

main .section.separator {
  margin: auto;
  width: 60%;
  border-top: 2px solid var(--color-gray-300);
  padding: 20px 0;
}

/* Above the fold */

main .section[data-section-status="loading"],
main .section[data-section-status="initialized"] {
  display: none;
}

body.no-header-template {
  padding: 0;
}

/* ---- Utility Classes ---- */

/* padding classes */
.block.xxxl-spacing {
  padding: var(--spacing-xxxl) 0;
}

.block.xxl-spacing {
  padding: var(--spacing-xxl) 0;
}

.block.xl-spacing {
  padding: var(--spacing-xl) 0;
}

.block.l-spacing {
  padding: var(--spacing-l) 0;
}

.block.ml-spacing {
  padding: var(--spacing-ml) 0;
}

.block.m-spacing {
  padding: var(--spacing-m) 0;
}

.block.s-spacing {
  padding: var(--spacing-xs) 0;
}

.block.xs-spacing {
  padding: var(--spacing-xxs) 0;
}

.block.pt-0,
.section.pt-0 {
  padding-top: 0;
}

.block.pb-0,
.section.pb-0 {
  padding-bottom: 0;
}

.block.pl-0,
.section.pl-0 {
  padding-left: 0;
}

.block.pr-0,
.section.pr-0 {
  padding-right: 0;
}

.block.px-0,
.section.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.block.py-0,
.section.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

/* padding classes end */

/* margin */
.block.mt-0 {
  margin-top: 0;
}

.block.mb-0 {
  margin-bottom: 0;
}

.block.ml-0 {
  margin-left: 0;
}

.block.mr-0 {
  margin-right: 0;
}

.block.mx-0 {
  margin-left: 0;
  margin-right: 0;
}

.block.my-0 {
  margin-top: 0;
  margin-bottom: 0;
}

/* margin classes end */

/* checkerboard background */
.block.colorful-bg {
  background: url("../img/colorful-bg.jpg") center center / cover;
  background-position: center center;
}

/* used with above class for colorful background in new design */
.block .checker-board-guide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--checkerboard-background);
  background-size: var(--checkerboard-background-size);
  z-index: 0;
}

/* redesign styles: icon eyebrow + headline, classes added when .title-section is used */
.icon-eyebrow {
  display: flex;
  align-items: center;
  color: var(--color-eyebrow-light-grey);
  font-size: var(--type-body-xs-size);
  text-transform: uppercase;
  line-height: 1.25;
  font-style: normal;
  font-weight: 700;
  padding-bottom: calc(var(--spacing-xxs) + var(--spacing-xxxs));
  margin: 0;
}

.title-section .icon-eyebrow {
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

.main-headline {
  font-size: var(--type-heading-l-size);
  line-height: var(--type-heading-xxl-lh);
  font-weight: 900;
  text-align: left;
  letter-spacing: -0.04em;
  width: 85%;
  max-width: 540px;
}

.title-section .main-headline {
  margin: 0 auto;
  text-align: center;
}

.title-section .default-content-wrapper img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 800px;
}

.icon-eyebrow .icon {
  color: var(--color-eyebrow-light-grey);
  display: grid;
  place-items: center;
  margin-right: var(--spacing-xxxs);
}

.icon-eyebrow .icon svg {
  width: var(--type-body-xs-size);
}

@media screen and (width >= 600px) {
  .main-headline {
    font-size: var(--type-heading-xl-size);
    width: 50%;
  }

  .title-section .main-headline {
    padding-bottom: 0;
  }

  .title-section .default-content-wrapper img {
    width: 70%;
  }
}

@media screen and (width >= 900px) {
  .icon-eyebrow {
    font-size: var(--type-body-l-size);
    padding-bottom: var(--spacing-s);
  }

  .icon-eyebrow .icon {
    margin-right: var(--spacing-xxs);
  }

  .icon-eyebrow .icon svg {
    width: var(--type-body-l-size);
  }

  .main-headline {
    font-size: var(--type-heading-xxl-size);
    width: 80%;
  }

  .full-width-title .main-headline {
    width: 100%;
    max-width: fit-content;
  }

  .title-section .default-content-wrapper img {
    width: 60%;
  }
}

/* icon eyebrow + headline styles end */

/* -- colored tags -- */
.colored-tag {
  display: inline-block;
  font-size: var(--type-body-xs-size);
  line-height: var(--type-body-xs-lh);
  padding: 4px 8px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 10px;
}

/* colored tags: circle icon */
.colored-tag.circle {
  width: var(--circular-icon-tag-size);
  height: var(--circular-icon-tag-size);
  border-radius: 100%;
  display: grid;
  place-items: center;
  padding: 0;
}

.colored-tag.circle svg {
  width: 40%;
  height: 40%;
}

/* colored tags: circle number */
.colored-tag.number-tag {
  width: var(--circular-number-tag-size);
  height: var(--circular-number-tag-size);
  border-radius: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: var(--type-heading-l-size);
  font-weight: 900;
  line-height: 1;
  /* stylelint-disable-next-line declaration-colon-newline-after */
  box-shadow: rgb(0 0 0 / 7%) 0 100px 148px,
    rgb(0 0 0 / 5%) 0 42px 62px,
    rgb(0 0 0 / 4%) 0 22px 33px,
    rgb(0 0 0 / 3.5%) 0 13px 19px,
    rgb(0 0 0 / 3%) 0 7px 10px,
    rgb(0 0 0 / 2%) 0 3px 4px;
  margin-bottom: var(--spacing-xs);
}

/* colored tags: color variation */
.colored-tag.pink {
  background-color: var(--color-accent-pink-bg);
  color: var(--color-accent-pink-content);
}

.colored-tag.pink svg {
  color: var(--color-accent-pink-content);
}

.colored-tag.purple {
  background-color: var(--color-accent-purple-bg);
  color: var(--color-accent-purple-content);
}

.colored-tag.lightgreen {
  background-color: var(--color-accent-lightgreen-bg);
  color: var(--color-accent-lightgreen-content);
}

.colored-tag.yellow {
  background-color: var(--color-accent-yellow-bg);
  color: var(--color-accent-yellow-content);
}

.colored-tag.black {
  background-color: var(--color-black);
}

:where(html[data-theme="dark"]) .colored-tag.black {
  background-color: var(--color-gray-200);
}

.colored-tag-description {
  font-size: var(--type-body-xs-size);
  line-height: var(--type-body-xs-lh);
}

@media screen and (width >= 768px) {
  .colored-tag {
    padding: 4px 16px;
  }

  .colored-tag.number-tag {
    margin-bottom: var(--spacing-s);
  }
}

/* -- colored tags end -- */

/* add small drop-shadow to png only */
.drop-shadow-img-sm img[type="image/png"] {
  filter: var(--image-filter-drop-shadow-small);
}

/* ------- animations classes ------ */
.link-underline-effect,
.breadcrumb-link-underline-effect {
  position: relative;
  display: inline-block;
}

.link-underline-effect::before,
.breadcrumb-link-underline-effect::before {
  content: "";
  position: absolute;
  background: var(--color-gray-900);
  height: 1px;
  left: auto;
  right: 0;
  bottom: -1px;
  width: 0;
  /* stylelint-disable-next-line declaration-colon-newline-after */
  transition: left 0.5s var(--cubic-bezier-2),
    right 0.5s var(--cubic-bezier-2),
    width 0.5s var(--cubic-bezier-2);
}

.link-underline-effect:hover::before {
  width: 100%;
  right: auto;
  left: 0;
}

/* NOTE: with .breadcrumb prefix would address line length for '/' in breadcrumb,
use .link-underline-effect for normal case */
.breadcrumb-link-underline-effect::before {
  background: var(--color-light-grey-600);
  width: 0;
  right: 12px;
  left: auto;
}

.breadcrumb-link-underline-effect:hover::before {
  width: calc(100% - 12px);
  right: 12px;
  left: 0;
}

/* highlight effect, support line break as well:D */
.link-highlight-colorful-effect,
.link-highlight-colorful-effect-2 {
  /* stylelint-disable-next-line property-no-vendor-prefix */
  -webkit-box-decoration-break: clone;
  /* stylelint-disable-next-line declaration-colon-newline-after */
  background-image: linear-gradient(
    90deg,
    rgb(137 140 242 / 50%) 0%,
    rgb(242 231 251 / 50%) 50%,
    rgb(241 188 231 / 50%) 100%
  );
  background-repeat: no-repeat;
  background-position: 4px 82%;
  background-size: 0% 50%;
  transition: background-size 0.3s ease-in-out;
  padding-right: 4px;
  box-decoration-break: clone;
}

/* effect 2: greenish yellow with pink */
.link-highlight-colorful-effect-2 {
  /* stylelint-disable-next-line declaration-colon-newline-after */
  background-image: linear-gradient(
    90deg,
    rgb(234 190 248 / 80%) 0%,
    rgb(255 251 232 / 100%) 50%,
    rgb(238 246 172 / 100%) 100%
  );
}

/* dark theme: richer tones for better contrast with white text */
:where(html[data-theme="dark"]) .link-highlight-colorful-effect {
  /* stylelint-disable-next-line declaration-colon-newline-after */
  background-image: linear-gradient(
    90deg,
    rgb(80 82 160 / 70%) 0%,
    rgb(120 100 140 / 70%) 50%,
    rgb(140 80 130 / 70%) 100%
  );
}

:where(html[data-theme="dark"]) .link-highlight-colorful-effect-2 {
  /* stylelint-disable-next-line declaration-colon-newline-after */
  background-image: linear-gradient(
    90deg,
    rgb(180 100 160 / 80%) 0%,
    rgb(190 150 60 / 85%) 50%,
    rgb(130 170 60 / 85%) 100%
  );
}

/* can add `.link-highlight-colorful-effect-hover-wrapper` to trigger hover child highlight effect */
.link-highlight-colorful-effect:hover,
.link-highlight-colorful-effect-2:hover,
/* stylelint-disable-next-line selector-descendant-combinator-no-non-space */
.link-highlight-colorful-effect-hover-wrapper:hover
.link-highlight-colorful-effect,
.link-highlight-colorful-effect-hover-wrapper:hover
.link-highlight-colorful-effect-2 {
  background-size: 100% 50%;
  color: inherit;
}

/* hover wrapper and bounce the inner icon */
.bounce-item-effect-hover-wrapper:hover .bounce-item-effect {
  animation: bounce 1s ease;
}

/* bounce effect: for icons */
@keyframes bounce {
  0%,
  20%,
  60%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-4px);
  }

  80% {
    transform: translateY(-2px);
  }
}

/* ---- scroll in-view animation ---- */
.fade-in,
.item-fade-in {
  transition: var(--fade-transition);
  opacity: 0;
  will-change: opacity;
}

.fade-up,
.item-fade-up {
  transition: var(--fade-transition);
  transform: translateY(30px);
  opacity: 0;
}

.fade-left,
.item-fade-left {
  transition: var(--fade-transition);
  transform: translateX(30px);
  opacity: 0;
}

.fade-right,
.item-fade-left {
  transition: var(--fade-transition);
  transform: translateX(-30px);
  opacity: 0;
}

.in-view,
.in-view .fade-in,
.in-view .fade-up,
.in-view .fade-left,
.in-view .item-fade-in,
.in-view .item-fade-up,
.in-view .item-fade-left {
  transform: none;
  opacity: 1;
}

/* slide up text */
.slide-reveal-wrapper {
  overflow: hidden;

  /* prevent bottom text, like `g` hidden by overflow-hidden */
  padding-bottom: 4px;
  margin-bottom: -4px;
}

.slide-reveal-up {
  transform: translateY(102%);
  transition: var(--slide-text-transition);
}

.slide-reveal-up-slow {
  transform: translateY(102%);
  transition: var(--slide-reveal-transition-slow);
}

.in-view .slide-reveal-up,
.in-view .slide-reveal-up-slow {
  transform: none;
}

/* animation: text fade & scale down */
.text-main-reveal {
  color: var(--color-black);
  opacity: 0;
}

/* active */
.in-view .text-main-reveal {
  animation: main-reveal 0.8s forwards var(--cubic-bezier-1);
}

@media screen and (width >= 768px) {
  .in-view .text-main-reveal {
    animation: main-reveal 1s forwards var(--cubic-bezier-1);
  }
}

@keyframes main-reveal {
  0%,
  10% {
    opacity: 0;
    transform: scale(1.5) translateZ(0);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
  }
}

/* -------------- Utility Classes Ends -------------- */

/* -------------- Templates related styles ---------- */

/* docs template */
body.docs-template {
  padding-top: 128px;
}

body.docs-template main .section {
  max-width: 83.4%;
  margin: 0 auto;
}

body.docs-template main .default-content-wrapper {
  max-width: 100%;
}

body.docs-template ol {
  padding-left: 16px;
}

body.docs-template h1 {
  margin-top: 64px;
}

body.guides-template main a.anchor-link {
  position: relative;
}

body.docs-template main a.anchor-link:any-link {
  position: relative;
  text-decoration: none;
  color: currentcolor;
  transition: color 0.2s;
}

.docs-template a.button.accent:any-link {
  background-color: var(--spectrum-blue);
  border-color: var(--spectrum-blue);
}

body.docs-template main a.anchor-link:any-link::before {
  content: "#";
  position: absolute;
  left: -1.5rem;
  opacity: 0.2;
}

body.docs-template main a.anchor-link:hover::before {
  text-decoration: none;
  opacity: 1;
}

body.docs-template main a.anchor-link.anchor-link-copied {
  color: green;
}

/* docs-template & guides-template styles */
body.docs-template main h1,
body.guides-template main h1,
body.skills-template main h1 {
  font-size: var(--type-heading-xxl-size);
  line-height: var(--type-heading-xxl-lh);
  margin-bottom: var(--spacing-s);
}

body.blog-template main h1,
body .blog.feed-container h1 {
  padding-top: 30px;
}

body.docs-template main h2,
body.guides-template main h2,
body.skills-template main h2 {
  font-size: var(--type-heading-xl-size);
  line-height: var(--type-heading-xl-lh);
  margin-bottom: var(--spacing-s);
}

body.docs-template main h3,
body.guides-template main h3,
body.skills-template main h3 {
  font-size: var(--type-heading-m-size);
  line-height: var(--type-heading-m-lh);
  margin-bottom: var(--spacing-s);
}

body.docs-template main p {
  font-size: var(--type-body-l-size);
  line-height: var(--type-body-l-lh);
  margin-bottom: var(--spacing-s);
}

body.guides-template main h3.icon-eyebrow svg,
body.skills-template main h3.icon-eyebrow svg {
  width: var(--type-heading-m-size);
}

@media screen and (width >= 900px) {
  main {
    min-height: calc(100vh - 216px);
  }

  body.no-header-template main {
    min-height: calc(100vh - 88px);
  }

  body.docs-template main .section {
    max-width: 800px;
    margin: auto;
  }

  body.docs-template main h1,
  body.guides-template main h1,
  body.skills-template main h1 {
    line-height: 55px;
    margin-top: var(--spacing-s);
    margin-bottom: var(--spacing-ml);
  }
}

/* Layout for Guide Template pages  */
body.guides-template,
body.skills-template {
  display: block;
}

body.guides-template main.without-full-width-hero,
body.skills-template main.without-full-width-hero {
  min-height: 900px;
}

body.guides-template main .section,
body.skills-template main .section {
  box-sizing: border-box;
}

body.guides-template main .section.heading,
body.skills-template main .section.heading {
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

body.guides-template main .section.content,
body.skills-template main .section.content {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  padding-top: 0;
  padding-bottom: var(--spacing-xl);
}

body.guides-template main h2,
body.guides-template main h3,
body.guides-template main h4,
body.guides-template main h5,
body.guides-template main h6,
body.skills-template main h2,
body.skills-template main h3,
body.skills-template main h4,
body.skills-template main h5,
body.skills-template main h6 {
  font-weight: 700;
  margin-top: var(--spacing-s);
  scroll-margin: calc(var(--nav-height) + 1em + var(--breadcrumb-height));
}

/* separation for better readability in long section */
body.guides-template main h2,
body.skills-template main h2 {
  border-bottom: 1px solid lightgrey;
  padding-bottom: var(--spacing-xs);
  padding-top: var(--spacing-xs);
}

body.blog-template main h2 {
  font-size: var(--type-heading-xl-size);
  line-height: var(--type-heading-xl-lh);
}

body.blog-template main h2:first-of-type {
  padding-bottom: 20px;
}

body.guides-template main p,
body.guides-template main li,
body.guides-template main a,
body.skills-template main p,
body.skills-template main li,
body.skills-template main a {
  font-size: var(--type-body-s-size);
  line-height: var(--type-body-s-lh);
}

body.guides-template main h1 a,
body.guides-template main h2 a,
body.guides-template main h3 a,
body.guides-template main h4 a,
body.guides-template main h5 a,
body.guides-template main h6 a,
body.skills-template main h1 a,
body.skills-template main h2 a,
body.skills-template main h3 a,
body.skills-template main h4 a,
body.skills-template main h5 a,
body.skills-template main h6 a {
  color: var(--color-black);
  font-size: inherit;
  line-height: inherit;
  text-decoration: inherit;
  border: none;
}

body main .faq dd a {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

/* break long link </a> into separate lines, not overflowing */
body.guides-template .default-content-wrapper a,
body.skills-template .default-content-wrapper a {
  overflow-wrap: break-word;
}

body.guides-template main .default-content-wrapper a,
body.skills-template main .default-content-wrapper a {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

body.guides-template main .guides-back-btn a {
  text-decoration: none;
}

/* for SEO tap target */
body.guides-template .default-content-wrapper ul > li > a,
body.skills-template .default-content-wrapper ul > li > a {
  margin-bottom: 1em;
}

body main .faq dd a:hover {
  color: var(--spectrum-blue);
}

body.guides-template main .default-content-wrapper a:hover,
body.skills-template main .default-content-wrapper a:hover {
  color: var(--spectrum-blue);
}

body.guides-template main .section.content a,
body.skills-template main .section.content a {
  overflow-wrap: break-word;
}

body.guides-template main .default-content-wrapper h1 a:hover,
body.guides-template main .default-content-wrapper h2 a:hover,
body.guides-template main .default-content-wrapper h3 a:hover,
body.guides-template main .default-content-wrapper h4 a:hover,
body.guides-template main .default-content-wrapper h5 a:hover,
body.guides-template main .default-content-wrapper h6 a:hover,
body.skills-template main .default-content-wrapper h1 a:hover,
body.skills-template main .default-content-wrapper h2 a:hover,
body.skills-template main .default-content-wrapper h3 a:hover,
body.skills-template main .default-content-wrapper h4 a:hover,
body.skills-template main .default-content-wrapper h5 a:hover,
body.skills-template main .default-content-wrapper h6 a:hover {
  color: var(--color-black);
  transition: var(--transition-ease-in-out);
}

body.guides-template main a.anchor-link:any-link::before,
body.skills-template main a.anchor-link:any-link::before {
  content: "#";
  position: absolute;
  left: -0.9rem;
  opacity: 0.2;
  transition: var(--transition-ease-in-out);
}

body.guides-template main a.anchor-link:hover::before,
body.skills-template main a.anchor-link:hover::before {
  text-decoration: none;
  opacity: 1;
}

body.guides-template main h2 a.anchor-link:any-link::before,
body.skills-template main h2 a.anchor-link:any-link::before {
  left: -1.1rem;
}

@media screen and (width >= 768px) {
  body.guides-template main a.anchor-link:any-link::before,
  body.skills-template main a.anchor-link:any-link::before {
    left: -1.25rem;
  }

  body.guides-template main h2 a.anchor-link:any-link::before,
  body.skills-template main h2 a.anchor-link:any-link::before {
    left: -1.5rem;
  }
}

/* guide template - content side styles */
body.guides-template .default-content-wrapper li,
body.skills-template .default-content-wrapper li {
  margin-bottom: 1em;
  padding-inline-start: 0.5em;
}

body.guides-template .default-content-wrapper ul,
body.skills-template .default-content-wrapper ul {
  margin-bottom: 2em;
  padding-inline-start: 1.5em;
}

body.guides-template .default-content-wrapper ol,
body.guides-template .columns ol,
body.skills-template .default-content-wrapper ol,
body.skills-template .columns ol {
  padding-inline-start: 1.5em;
  margin-top: 0.5em;
}

body.guides-template,
main {
  margin-top: 0;
}

body.guides-template main .default-content-wrapper > :is(h1, h2, h3, h4, h5, h6):first-of-type {
  margin-top: 0;
}

body.guides-template .form {
  filter: none;
  box-shadow: 0 0 20px var(--bg-color-grey);
  margin: var(--spacing-s) 0 var(--spacing-l);
}

/* for guides-template without hero section (.heading), like doc detail page */
body.guides-template main.without-full-width-hero .default-content-wrapper h1,
body.skills-template main.without-full-width-hero .default-content-wrapper h1 {
  margin-top: var(--spacing-s);
}

body.guides-template main.without-full-width-hero .default-content-wrapper h2,
body.guides-template main.without-full-width-hero .default-content-wrapper h3,
body.skills-template main.without-full-width-hero .default-content-wrapper h2,
body.skills-template main.without-full-width-hero .default-content-wrapper h3 {
  letter-spacing: 0;
}

/* stylelint-disable-next-line max-line-length */
body.guides-template main.without-full-width-hero .default-content-wrapper:first-of-type img:first-of-type.doc-detail-hero-image {
  width: 100%;
  height: auto;
  max-height: 45vh;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  border-radius: var(--image-border-radius-l);
  margin: 0 auto var(--spacing-s) auto;
}

body.guides-template main.without-full-width-hero .default-content-wrapper img,
body.skills-template main.without-full-width-hero .default-content-wrapper img {
  display: block;
  margin: var(--spacing-s) auto var(--spacing-xs);
}

/* for guides-template with hero section (.heading), like doc category page */
body.guides-template main.has-full-width-hero .section.heading,
body.skills-template main.has-full-width-hero .section.heading {
  padding-bottom: var(--spacing-xs);
}

body.guides-template main.has-full-width-hero .default-content-wrapper h2,
body.skills-template main.has-full-width-hero .default-content-wrapper h2 {
  font-weight: 900;
}

body.guides-template main.has-full-width-hero .card-list-wrapper {
  margin-bottom: var(--spacing-m);
}

/* guides-template back button on documentation detail pages */
body.guides-template .guides-back-btn {
  display: flex;
  align-items: center;
}

body.guides-template .guides-back-btn span.icon {
  margin-right: var(--spacing-xxs);
}

@media screen and (width <= 899px) {
  body.guides-template .guides-back-btn.desktop {
    display: none;
  }
}

/* guides-template message box for copying url success */
.message-box {
  opacity: 0;
  position: fixed;
  bottom: 4%;
  right: 7%;
  width: 120px;
  min-height: 50px;
  padding: var(--spacing-xxs) var(--spacing-xs);
  background-color: var(--color-white);
  border: 1px solid var(--bg-color-grey);
  border-radius: 8px;
  box-shadow: 0 0 10px var(--bg-color-grey);
  display: flex;
  align-items: center;
  font-size: var(--type-body-s-size);
  line-height: var(--type-body-s-lh);
  z-index: 999;
  overflow: hidden;
  transition: var(--transition-ease-in-out);
  transform: translateY(20px);
}

.message-box::before,
.message-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--bg-color-grey-2);
}

.message-box::after {
  width: 0;
  background: var(--brand-color-purple);
}

.message-box.active {
  opacity: 1;
  transform: translateY(0);
}

.message-box.fill::after {
  animation: progress-bar-fill 0.9s linear forwards;
}

@keyframes progress-bar-fill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* guides-template message box ENDS */

@media screen and (width >= 768px) {
  body.guides-template main.has-full-width-hero .section.heading,
  body.skills-template main.has-full-width-hero .section.heading {
    padding-bottom: var(--spacing-s);
  }

  body.guides-template main.without-full-width-hero .doc-detail-hero-image,
  body.skills-template main.without-full-width-hero .doc-detail-hero-image {
    border-radius: var(--image-border-radius-xxl);
  }

  body.blog-template img {
    max-width: 90%;
  }
}

@media screen and (width >= 900px) {
  body.guides-template main,
  body.skills-template main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding-bottom: var(--spacing-xxxl);
  }

  body.guides-template main .section.content,
  body.skills-template main .section.content {
    width: calc(100% - 300px - var(--side-navigation-bar-gap));
    max-width: 900px;
  }

  body.guides-template main .default-content-wrapper > p,
  body.skills-template main .default-content-wrapper > p {
    margin-bottom: var(--spacing-s);
  }

  body.guides-template main.has-full-width-hero .section.heading,
  body.skills-template main.has-full-width-hero .section.heading {
    padding-bottom: var(--spacing-xxxl);
  }

  body.guides-template main.has-full-width-hero .card-list-wrapper,
  body.skills-template main.has-full-width-hero .card-list-wrapper {
    margin-bottom: var(--spacing-l);
  }

  body.guides-template main.without-full-width-hero .default-content-wrapper,
  body.skills-template,
  h1 {
    margin-top: var(--spacing-ml);
    margin-bottom: var(--spacing-m);
  }

  body.guides-template .guides-back-btn {
    margin: 0 0 var(--spacing-s);
  }

  body.guides-template main.without-full-width-hero img.doc-detail-hero-image {
    margin-top: 0;
  }
}

body.guides-template main .section.content .default-content-wrapper,
body.skills-template main .section.content .default-content-wrapper {
  width: 100%;
  height: 100%;
}

body.guides-template .icon-icon-caret-right,
body.guides-template .icon-icon-caret-down,
body.guides-template .icon-icon-arrow {
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center center;
}

body.guides-template .pagination .icon-icon-arrow {
  height: auto;
}

body.guides-template .icon-icon-caret-right {
  background-image: url("/icons/icon-caret-right.svg");
}

body.guides-template .icon-icon-caret-down {
  background-image: url("/icons/icon-caret-down.svg");
}

body.guides-template .guides-back-btn .icon-icon-arrow {
  background-image: url("/icons/icon-arrow.svg");
  filter:
    invert(38%) sepia(42%) saturate(5895%) hue-rotate(203deg)
    brightness(94%) contrast(92%);
}

body.blog-template aside {
  display: none;
}

/* bumper template */
body.bumper-template {
  text-align: center;
}

body.bumper-template main .section {
  padding: 0;
}

body.bumper-template main .section .hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

body.bumper-template main .section p {
  color: transparent;
}

/* Layout for Contact template */
body.contact-template {
  display: block;
}

body.contact-template main .section {
  box-sizing: border-box;
}

body.contact-template .section:first-of-type {
  padding-bottom: 0;
  margin-top: var(--spacing-l);
}

body.contact-template .section:first-of-type::before,
body.contact-template .section:first-of-type::after {
  width: 100%;
  height: 780px;
  background-size: cover;
  background-position: center;
  position: absolute;
  left: 0;
  top: 0;
}

body.contact-template .section:only-of-type::before,
body.contact-template .section:only-of-type::after {
  height: 100%;
}

body.contact-template .section:first-of-type::before {
  content: "";
  background: url("../../img/colorful-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -2;
}

body.contact-template .section:first-of-type::after {
  content: "";
  z-index: -1;
  background: var(--checkerboard-background);
  background-size: var(--checkerboard-background-size);
}

body.contact-template .section:last-of-type {
  padding-bottom: var(--spacing-xxxl);
}

/* stylelint-disable-next-line no-descending-specificity */
body.contact-template main .default-content-wrapper {
  text-align: center;
}

/* stylelint-disable-next-line no-descending-specificity */
body.contact-template main .default-content-wrapper h1 {
  font-size: var(--type-heading-xxxl-size);
  line-height: var(--type-heading-xxxl-lh);
}

/* stylelint-disable-next-line no-descending-specificity */
body.contact-template main .default-content-wrapper img {
  filter: var(--image-filter-drop-shadow-small);
  width: 102px;
  height: 102px;
}

@media screen and (width >= 900px) {
  body.contact-template main .section,
  body.contact-template main .section:first-of-type p {
    max-width: 800px;
    margin: auto;
  }

  body.contact-template main .section:first-of-type {
    max-width: 900px;
  }
}

/* breadcrumb */
/* stylelint-disable no-descending-specificity */

.breadcrumb-wrapper {
  display: none;
  width: 100%;
  max-height: var(--breadcrumb-height);
  background: var(--color-gray-50);
  box-shadow: 0 4px 6px light-dark(rgb(0 0 0 / 15%), rgb(0 0 0 / 40%));
  z-index: 100;
}

.breadcrumb-wrapper:not(.no-shadow) {
  margin-bottom: var(--spacing-xxs);
}

.breadcrumb {
  max-width: var(--header-container-width);
  padding: 0 var(--header-container-tablet-x-padding);
  height: var(--breadcrumb-height);
  overflow: hidden;
  margin: auto;
}

.breadcrumb ul {
  display: flex;
  flex-flow: wrap;
  list-style: none;
  padding: var(--spacing-xxs) 0;
}

.breadcrumb.contained.block > div > div > ul {
  margin: 0;
}

.breadcrumb ul li {
  padding-right: var(--spacing-xxs);
  padding-inline-start: 0;
  font-size: var(--type-body-xxs-size);
}

.breadcrumb ul li:not(:last-child) a::after {
  content: "/";
  padding-left: var(--spacing-xxs);
}

.breadcrumb ul li a {
  text-decoration: none;
  color: var(--color-light-grey-600);
  font-size: var(--type-body-xxs-size);
}

.breadcrumb ul li:last-of-type a {
  color: var(--color-black);
}

.breadcrumb .category {
  text-transform: capitalize;
}

@media screen and (width >= 600px) {
  .breadcrumb-wrapper {
    display: block;
    position: sticky;
    top: calc(var(--nav-height));
    left: 0;
  }

  .block.breadcrumb {
    max-width: none;
  }

  .breadcrumb ul {
    padding: 11px 0 12px;
    margin: 0 auto;
  }

  .breadcrumb-wrapper:not(.no-shadow) {
    margin-bottom: var(--spacing-s);
  }
}

@media screen and (width >= 900px) {
  .breadcrumb-wrapper:not(.no-shadow) {
    margin-bottom: var(--spacing-ml);
  }
}

@media (width >= 1440px) {
  .block.breadcrumb {
    max-width: var(--header-container-width);
  }
}

@media (width >= 1440px) {
  .block.breadcrumb {
    max-width: var(--header-container-width);
    padding: 0 var(--header-container-desktop-x-padding);
  }
}

.faq-theme main .section + .section {
  padding: 0;
}

@media (width >= 900px) {
  body.faq-theme main {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(16px, 1fr) 300px auto minmax(16px, 1fr);
  }

  body.faq-theme main .breadcrumb-wrapper {
    max-width: unset;
    grid-column: 1 / span 4;
  }

  body.faq-theme main aside.side-navigation-wrapper {
    grid-column-start: 2;
    grid-row: 2 / span 10;
    width: 300px;
  }

  body.faq-theme main div {
    grid-column-start: 3;
    max-width: 900px;
  }

  body.faq-theme main aside.side-navigation-wrapper.expand {
    grid-column: 1 / span 4;
    width: unset;
  }

  body.faq-theme main .section.content {
    width: unset;
    padding: unset;
  }

  body.faq-theme main .section:not(.content) {
    padding-left: 32px;
  }
}

/* Community hero — default content + community rail */
main .section.hero-split {
  padding: var(--spacing-xxl) var(--spacing-m) var(--spacing-xl);
  background: linear-gradient(135deg, #f8f8ff 0%, #fff 50%, #f5f0ff 100%);
  box-sizing: border-box;
}

main .section.hero-split > .default-content-wrapper h1 {
  font-size: var(--type-heading-xxl-size);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: var(--spacing-s);
}

main .section.hero-split > .default-content-wrapper > p:first-of-type {
  font-size: var(--type-body-l-size);
  line-height: 1.6;
  color: var(--color-gray-700);
  max-width: 600px;
}

@media screen and (width >= 900px) {
  main .section.hero-split {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    max-width: var(--grid-desktop-container-width);
    margin-left: auto;
    margin-right: auto;
  }

  main .section.hero-split > .default-content-wrapper {
    max-width: none;
    margin: 0;
    padding-inline: 0;
  }

  main .section.hero-split > div:has(.community-rail-wrapper) {
    max-width: none;
    margin: 0;
  }

  main .section.hero-split .community-rail-wrapper {
    margin: 0;
  }
}

@media screen and (width < 900px) {
  main .section.hero-split > div:has(.community-rail-wrapper) {
    margin-top: var(--spacing-m);
  }
}
