
/* Main font styling here */

/* 1. Register the font */
@font-face {
  font-family: "Inter";
  src: url("https://docs.apriori.com/en/ns/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 600; /* optional range if the file supports variable weights */
  font-display: swap;
}

/* 2. Apply it globally */
:root {
  --md-text-font: "Inter", system-ui, sans-serif;
  --md-code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body,
.md-typeset {
  font-family: var(--md-text-font) !important;
  font-size: .6rem;
}

:root [data-md-color-scheme="slate"] {
  --md-text-font: "Inter", sans-serif;

}

/* light background via variables */
:root [data-md-color-scheme="default"] {
  --md-default-bg-color: #f5f6f8;
}

/* tune dark scheme  */
:root [data-md-color-scheme="slate"] {
  /* pick dark values you like, or omit to keep defaults */
  /* --md-default-bg-color: #0f1117; */
  /* --md-default-fg-color: rgba(255,255,255,.92); */
}

/* Components reference variables, so they adapt automatically */
.md-nav--secondary .md-nav__title,
.md-nav--primary .md-nav__title {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--md-default-bg-color);
  box-shadow: 0 0 .4rem .4rem var(--md-default-bg-color);
  font-weight: 700;
}

.md-content,
.md-main,
body {
  background-color: var(--md-default-bg-color);
}

/* #### heading style here #### */
.md-typeset h1 {
  line-height: 1.1;
  margin: 0.3em 0 .34em;
  font-weight: 600;
  color: #616161;
  font-size: 1.8rem;
}

.md-typeset h2 {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0.6em 0 .64em;
  font-weight: 600;
  color: #616161;
}

.md-typeset h3 {
  font-size: 1.2rem;
  line-height: 1.1;
  margin: 0.6em 0 .64em;
  font-weight: 500;
  opacity: 0.9;
  color: #616161;
}

.md-typeset h4 {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
  color: #616161;
  margin: 0.4em 0 0.2em;
}

.md-typeset h5 {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  color: #616161;
  text-transform: unset;
}

.md-typeset h6 {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
  color: #616161;
  margin: 0.4em 0 0.2em;
}

/* THIS IS THE TOC STYLE */

/* Global */
.md-nav {
  font-size: .65rem;
}

/* Primary - the one on the left */

.md-nav--primary {
  /* font-size: .60rem; */
  line-height: 1.3;
  font-weight: 600;
  color: #616161;
  box-shadow: 0 0 .4rem .4rem var(--md-default-bg-color);
}

.md-nav--primary .md-nav__link--active {
  background-color: rgb(226, 245, 255);
  border-radius: 4px;
  color: var(--md-default-fg-color) !important;
  font-weight: 600;
}


/* Secondary  - the one on the right */
.md-nav--secondary .md-nav__link--active {
  background-color: rgb(226, 245, 255);
  border-radius: 4px;
  color: var(--md-default-fg-color) !important;
  font-weight: 600;
}

.md-nav--secondary .md-nav__link {
  padding: 0.25em 0.5em;
}

/* Footer fix */
/* Footer: render apriori links as text, keep others as icons */
.md-footer .md-social__link[href*="apriori.com"] svg {
  display: none;
}

.md-footer .md-social__link[href*="apriori.com"]::after {
  content: attr(aria-label);
  font-weight: 600;
  margin: 0 .6rem;
  color: var(--ap-footer-link, var(--md-accent-fg-color));
}

.md-footer .md-social {
  gap: .6rem;
}

.md-typeset img {
  max-width: 90%;
  max-height: 30vh;
  height: auto;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* soft shadow */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 6px; /* optional: softens corners */
  display: block;
  margin: 1rem ; /* optional: centers and adds spacing */
}

/* Warning banner */
.md-banner--warning {
  background-color: #3f3a3a; /* same as header background */
  color: #fff;               /* white text */
  text-align: center;
  font-weight: 500;
  padding: 0.15rem 0;        /* slightly thinner */
  font-size: .6rem;
}

/* Header Support link */

.md-header__button.support-link {
  padding-top: 0.82rem;
  padding-bottom: 0.4rem;
  margin-left: 0.0rem;
  margin-right: 0.0rem;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.65;
}

.support-link:hover {
  opacity: 5;
}

.support-link__icon svg {
  width: 1rem;
  height: 1rem;
  position: relative;
  top: 3px;
}

.md-header__title {
  font-size: 0.75rem;
  font: "Inter", system-ui, sans-serif;
  line-height: 2.9rem;
  opacity: 0.65;
}

/* Table Styling - Delete these two to remove it */
.md-typeset table:not([class]) {
  background-color: #fff;
  border: 0.05rem solid var(--md-typeset-table-color);
  border-radius: 8px;
  font-size: 0.64rem;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.md-typeset__table {
  overflow-x: auto;
}

/* CODE style here */

/* Inline code */
.md-typeset :not(pre) > code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 12%, transparent);
  background: color-mix(in srgb, var(--md-default-bg-color) 92%, var(--md-accent-fg-color));
}

/* Code blocks */
.md-typeset pre > code {
  font-size: 0.92em;
}

/* Code block container */
.md-typeset pre {
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 12%, transparent);
  padding: 0.9rem 1rem;
  overflow: auto;
}

.doc-button {
  border: 1px solid #1976d2;
  color: rgb(50, 125, 164);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

.doc-button-primary {
  background: rgb(50, 125, 164);
  color: white;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

.doc-button-primary-dvd {
  background: rgb(26, 115, 232);
  color: white;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

.doc-button-secondary {
  color: rgb(50, 125, 164);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}

.doc-button-cancel {
  border: 1px solid rgb(196, 18, 4);
  color: rgb(196, 18, 4);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}