@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@600;700&display=swap");

.md-typeset {
  font-size: 0.7rem;
  line-height: 1.7;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.md-typeset h2 {
  padding-bottom: 0.4em;
  border-bottom: 1px solid #2c3d5f;
}

.md-grid {
  max-width: 92rem;
}

.md-content__inner {
  max-width: 64rem;
}

.md-typeset .highlight {
  border: 1px solid #2c3d5f;
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset .highlight pre {
  margin: 0;
  border: 0;
  border-radius: 0;
}

/* Keep consecutive code blocks apart so they do not read as one. */
.md-typeset .highlight {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.md-typeset .highlight + .highlight {
  margin-top: 1.5em;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #1a2338;
  --md-default-fg-color: #e4e8f1;
  --md-default-fg-color--light: #9aa4bd;
  --md-code-bg-color: #0f1524;
  --md-primary-fg-color: #4a7de0;
  --md-accent-fg-color: #5b8dee;
  --md-typeset-a-color: #5b8dee;
}

/* Layers, from darkest to lightest: header and sidebars, then the page, then code blocks and tables. */
[data-md-color-scheme="slate"] .md-header {
  background-color: #0b0f19;
  border-bottom: 1px solid #22304d;
}

[data-md-color-scheme="slate"] .md-sidebar--primary,
[data-md-color-scheme="slate"] .md-sidebar--primary .md-sidebar__scrollwrap,
[data-md-color-scheme="slate"] .md-sidebar--secondary,
[data-md-color-scheme="slate"] .md-sidebar--secondary .md-sidebar__scrollwrap {
  background-color: #0f1320;
}

[data-md-color-scheme="slate"] .md-main,
[data-md-color-scheme="slate"] .md-main__inner,
[data-md-color-scheme="slate"] .md-content {
  background-color: #1a2338;
}

.md-typeset a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 141, 238, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.md-typeset a:hover {
  border-bottom-color: #5b8dee;
}

[data-md-color-scheme="slate"] .md-typeset a {
  color: #5b8dee;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.6rem;
  width: auto;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background-color: #2a3b60;
  color: #e4e8f1;
}

[data-md-color-scheme="slate"] .md-typeset .highlight,
[data-md-color-scheme="slate"] .md-typeset pre {
  background-color: #0f1524;
}

[data-md-color-scheme="slate"] .md-typeset pre code,
[data-md-color-scheme="slate"] .md-typeset .highlight code {
  background-color: transparent;
  color: inherit;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
  border: 1px solid #2c3d5f;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: #222e4d;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
  border-top: 1px solid #2c3d5f;
}

[data-md-color-scheme="slate"] .md-search__form {
  background-color: #0f1320;
}

/* Hide the right panel when the page has no headings to list. */
.md-sidebar--secondary:not(:has(.md-nav__link)) {
  display: none;
}

/* Side panels: small uppercase titles, quiet links, and a clear accent for the current item. */
.md-sidebar__scrollwrap {
  padding: 0.5rem 0.75rem 1rem 0.25rem;
}

.md-sidebar .md-nav__title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light);
}

.md-sidebar .md-nav__link {
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: var(--md-default-fg-color--light);
}

.md-sidebar .md-nav__link:hover {
  color: var(--md-default-fg-color);
  background-color: rgba(255, 255, 255, 0.04);
}

.md-sidebar--secondary .md-nav__link {
  border-left: 2px solid #2c3d5f;
  border-radius: 0 6px 6px 0;
}

.md-sidebar .md-nav__link--active {
  color: #5b8dee;
  font-weight: 600;
  background-color: rgba(74, 125, 224, 0.14);
}

.md-sidebar--secondary .md-nav__link--active {
  border-left-color: #4a7de0;
}

/* Side panels run to the edges of the window, without the gaps Material leaves around them. */
.md-sidebar--primary,
.md-sidebar--secondary {
  top: 0;
  bottom: 0;
  height: auto;
  margin: 0;
}

.md-main__inner {
  margin-top: 0;
  margin-bottom: 0;
}

/* Light theme: white content on a cool grey frame, with the same layers as the dark theme. */
[data-md-color-scheme="default"] {
  --md-default-bg-color: #eef2f8;
  --md-default-fg-color: #1a2338;
  --md-default-fg-color--light: #56607a;
  --md-code-bg-color: #f1f4f9;
  --md-primary-fg-color: #2f66c9;
  --md-accent-fg-color: #4a7de0;
  --md-typeset-a-color: #2f66c9;
}

[data-md-color-scheme="default"] .md-header {
  background-color: #d6dfec;
  border-bottom: 1px solid #bccadd;
}

[data-md-color-scheme="default"] .md-main,
[data-md-color-scheme="default"] .md-main__inner,
[data-md-color-scheme="default"] .md-content {
  background-color: #eef2f8;
}

[data-md-color-scheme="default"] .md-sidebar {
  background-color: #e1e8f2;
}

[data-md-color-scheme="default"] .md-sidebar .md-nav__link--active {
  color: #2f66c9;
  background-color: rgba(47, 102, 201, 0.1);
}

[data-md-color-scheme="default"] .md-typeset .highlight {
  background-color: #e3e9f3;
  border-color: #bccadd;
}

[data-md-color-scheme="default"] .md-typeset code {
  background-color: #d5deeb;
  color: #1a2338;
}

[data-md-color-scheme="default"] .md-typeset .highlight code {
  background-color: transparent;
}

[data-md-color-scheme="default"] .md-typeset h2 {
  border-bottom-color: #d5dce8;
}

[data-md-color-scheme="default"] .md-typeset table:not([class]) {
  border: 1px solid #d5dce8;
}

[data-md-color-scheme="default"] .md-typeset table:not([class]) th {
  background-color: #d5deeb;
}

[data-md-color-scheme="default"] .md-typeset table:not([class]) td {
  border-top: 1px solid #d5dce8;
}

/* Heading anchors: a link icon instead of the pilcrow. */
.md-typeset a.headerlink {
  font-size: 0;
  border-bottom: 0;
  opacity: 0.35;
  transition: opacity 0.15s ease;
}

.md-typeset a.headerlink::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  vertical-align: -0.1rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
}

.md-typeset h1:hover a.headerlink,
.md-typeset h2:hover a.headerlink,
.md-typeset h3:hover a.headerlink,
.md-typeset h4:hover a.headerlink,
.md-typeset a.headerlink:hover,
.md-typeset a.headerlink:focus {
  opacity: 1;
}

/* Links: a clear hover state, and an arrow for links that leave the wiki. */
.md-typeset a:hover {
  background-color: rgba(74, 125, 224, 0.12);
  border-radius: 3px;
}

.md-typeset a[href^="http"]:not([href*="pharo-open-documentation"])::after {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.2em;
  vertical-align: baseline;
  background-color: currentColor;
  opacity: 0.7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
