/* ================================================================
   Custom stylesheet for Yoriito Documentation
   ================================================================ */

/* ----------------------------------------------------------------
   1. Theme variables
   ---------------------------------------------------------------- */

:root {
  --md-primary-fg-color: #84A2D4;
  --md-accent-fg-color: #446FB7;
  --md-header-gradient-start: #34567D;
  --color-navy: #1e3a5f;
}

body[data-md-color-scheme="default"] {
  --md-footer-bg-color: var(--md-primary-fg-color);
  --md-footer-bg-color--dark: var(--md-primary-fg-color);
}

/* ----------------------------------------------------------------
   2. Full-bleed sections
   ---------------------------------------------------------------- */
/* Added for the documentation page*/
.md-main__inner, .md-content {
  max-width: 100vw !important;
}
/* Added for the documentation page*/
@media (min-width: 960px) {
  .md-content {
    padding-left: 40px !important;  
  }
}
/* Added for the documentation page*/
.md-nav {
  padding-left: 5px !important;
}

/* Added for the documentation page*/
.md-typeset img,
.md-typeset video,
.md-typeset table {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.section {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1rem 0;
}

.section > .md-grid {
  box-sizing: border-box;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

@media (min-width: 60em) {
  .section > .md-grid {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

.section :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

/* -- Section color variants ------------------------------------ */

.section-hero {
  color: var(--md-primary-bg-color--light);
}

.section-colored {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--md-primary-fg-color) 30%, var(--md-primary-bg-color)) 0%,
    var(--md-primary-fg-color) 100%
  );
}

.section.section-colored .md-typeset h1,
.section.section-colored .md-typeset h2,
.section.section-colored .md-typeset h3,
.section.section-colored .md-typeset p,
.section.section-colored .md-typeset li {
  color: var(--color-navy);
}

.section-light-colored {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--md-primary-fg-color) 5%, var(--md-primary-bg-color)) 0%,
    color-mix(in srgb, var(--md-primary-fg-color) 15%, var(--md-primary-bg-color)) 100%
  );
}

/* ----------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------- */

.md-header__title .md-header__topic:first-child {
  font-size: 1.2rem;
}

.md-tabs__link {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--md-primary-bg-color);
  opacity: 1;
}

.md-typeset p,
.md-typeset li {
  font-size: 0.9rem;
}

.md-copyright {
  font-size: 0.7rem;
}

.md-social__link svg {
  max-height: 1rem;
}

/* ----------------------------------------------------------------
   4. Header & Footer & navigation
   ---------------------------------------------------------------- */

/* Added for the documentation page*/
.md-footer,
.md-footer__inner,
.md-footer-nav,
.md-footer-nav__link {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 85px !important;
}
/* Added for the documentation page*/
.md-footer__direction {
  font-size: 0.6rem !important;
}
/* Added for the documentation page*/
.md-footer__link .md-ellipsis {
  font-size: 0.8rem !important;
}

.md-header {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--md-header-gradient-start) 90%, transparent 10%) 0%,
    color-mix(in srgb, var(--md-accent-fg-color) 90%, transparent 10%) 100%
  );
}

.md-nav--primary .md-nav__title {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--md-header-gradient-start) 90%, transparent 10%) 0%,
    color-mix(in srgb, var(--md-accent-fg-color) 90%, transparent 10%) 100%
  );
}

.md-header__title .md-header__topic + .md-header__topic {
  display: none !important;
}

.md-header__title .md-header__topic {
  opacity: 1 !important;
  transform: none !important;
}

.md-nav__link[href^="https"]::after,
.md-tabs__link[href^="https"]::after {
  content: "↗";
  margin-left: 0.3rem;
  font-size: 0.85em;
  opacity: 0.7;
}

.md-nav__source {
  background-color: var(--md-accent-fg-color);
}

/* Added for the documentation page*/
.md-nav {
  font-size: 1.05em;
}

/* ----------------------------------------------------------------
   5. Global spacing tweaks
   ---------------------------------------------------------------- */

/* Modified for the documentation page: 0->5*/
.md-main__inner.md-grid {
  margin-top: 5;
}

article.md-content__inner.md-typeset {
  padding-top: 0;
}

article.md-content__inner.md-typeset::before {
  height: 0;
}

/* Modified for the documentation page: 0->5*/
.md-content__inner {
  margin-bottom: 5;
}

.md-typeset .md-button {
  padding: 0.3em 1.1em;
}