/*******************************/
/* Branding */
/*******************************/

/* Colors */

:root>* {
  --md-primary-fg-color: #003078;
  --md-accent-fg-color: #003eaa;
}

/* Slovak Tricolor strip */

.md-header:before {
  content: "";
  background-image: linear-gradient(90deg, #fff 0, #fff 33.3%, #003183 0, #003183 66.6%, #d0190f 0, #d0190f);
  height: 3px;
  background-size: 150px;
  background-repeat: repeat;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.gcs-home-page .md-grid,
.gcs-index-page .md-grid {
  max-width: 44rem;
}

.md-header__inner.md-grid {
  max-width: unset;
}

.md-header__title {
  height: 2.9rem;
}

.md-header__title>.md-header__ellipsis {
  display: flex;
  align-items: center;
}

/* Make icons in site navigation smaller (by default ugly)*/

.md-nav__link svg {
  flex-shrink: 0;
  height: .8rem;
}

/* Make cards oval */

.md-typeset .grid.cards>ol>li,
.md-typeset .grid.cards>ul>li,
.md-typeset .grid>.card {
  border-radius: .5rem;
}

.md-typeset .md-tag {
  text-transform: uppercase;
}

.md-typeset .admonition {
  font-size: unset;
}

.md-main__inner {
  margin-bottom: 1.6rem;
  margin-top: 2.4rem;
}

.md-typeset h1 {
  color: var(--md-default-fg-color);
  font-weight: 400;
}

.gcs-borderless-table-wrap table:not([class]) {
  font-size: unset;
  border: unset;
}

.gcs-borderless-table-wrap table:not([class]) tr {

  td:first-child,
  th:first-child {
    padding-left: unset;
  }

  td:last-child,
  th:last-child {
    padding-right: unset;
  }
}

/* .gcs-regular-page .md-typeset h2 {
  color: var(--md-default-fg-color);
} */

/* In MkDocs Material styling 76.25em is minimal 
width when site navigation in side bar is visible */

@media screen and (min-width: 76.25em) {

  .md-sidebar--primary .md-nav__title {
    display: none;
  }

  [dir=ltr] .md-sidebar__inner {
    padding-right: calc(100% - 20rem);
    padding-left: calc(100% - 17.2rem);
  }

  .md-sidebar--primary {
    order: 1;
    width: 20rem
  }

  .gcs-regular-page:not(.embedded) .md-content {
    border: 1px solid var(--md-default-fg-color--lighter);
    border-radius: .5rem;
    padding: 1.6rem;
  }

  .md-nav {
    font-size: .8rem;
    font-weight: 300;
  }

  .gcs-home-page .md-sidebar--primary,
  .gcs-index-page .md-sidebar--primary {
    display: none;
  }
}


/* In MkDocs Material styling 60em is minimal 
width when search bar is visible */

@media screen and (min-width: 60em) {

  .md-search {
    padding-inline: .8rem;
  }

  .md-search__form {
    background-color: #ffffff33;
  }

  .md-search__inner {
    width: 15.4rem;
  }

}

.gcs-footer {
  background-color: var(--md-footer-bg-color--dark);
}

.gcs-footer a {
  margin: 1rem .6rem .6rem .6rem;
  font-size: .7rem;
}

/***********************
* Embeded page styling *
***********************/

:root.embedded .md-typeset {
  font-size: 0.8rem;
}

:root.embedded .md-typeset h1 {
  font-size: 1.25rem;
}

:root.embedded .md-typeset h2 {
  font-size: 1.1rem;
}

:root.embedded .md-header {
  background-color: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
}

:root.embedded .md-header__title {
  margin-left: 0.8rem;
}

:root.embedded .md-header--shadow {
  box-shadow: 0 0 .1rem #0000001a, 0 .1rem .4rem #0001;
  transition: transform .25s cubic-bezier(.1, .7, .1, 1), box-shadow .25s;
}

:root.embedded .md-header:before {
  content: "";
  background-image: none;
}

:root.embedded .md-header label.md-header__button:first-of-type {
  display: none;
}

:root.embedded .md-header__inner {
  padding: 0;
}

:root.embedded .md-header__topic {
  font-size: 1rem;
}

:root.embedded .md-header__topic:first-child {
  font-weight: unset;
}


:root.embedded .md-sidebar--primary {
  display: none;
}

:root.embedded .md-sidebar--secondary {
  display: none;
}

:root.embedded .md-footer {
  display: none;
}

/* Expand main content area to fill the screen */
:root.embedded .md-content {
  margin-left: 0;
}

:root.embedded .md-main__inner {
  margin-top: 0;
}

:root.embedded .md-path {
  margin: 0;
  padding: 0.8rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

:root.embedded .home-index-actions {
  display: none;
}

:root.embedded *::-webkit-scrollbar {
  width: 4px;
}

:root.embedded *::-webkit-scrollbar-track {
  background-color: rgba(0, 48, 120, 0.2);
  border-radius: 4px;
}

:root.embedded *::-webkit-scrollbar-thumb {
  background-color: rgba(0, 48, 120, 0.4);
  border-radius: 4px;
}

:root.embedded *::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 48, 120, 0.8);
}


/***********************
** home index styling **
***********************/

.grid:has(> .home-index-actions),
.grid:has(> ul.home-index) {
  grid-template-columns: unset;
  grid-gap: .8rem;
}

.home-index-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.home-index-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  font-size: .75rem;
  font-weight: 400;
  font-family: inherit;
  color: var(--md-default-fg-color--light);
  background-color: var(--md-default-bg-color);
  /* border: 1px solid var(--md-default-fg-color--lighter); */
  border-radius: .35rem;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
  user-select: none;
  line-height: 1.4;
}

.home-index-toggle-btn:hover {
  color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
  background-color: var(--md-default-fg-color--lightest);
}

.home-index-toggle-btn:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 2px;
}

.home-index-toggle-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-index-toggle-btn__icon svg {
  width: .9rem;
  height: .9rem;
  fill: currentColor;
}

.grid.cards:has(> ul.home-index) ul>li {
  padding: unset;
}

ul.home-index {
  list-style-type: none;
}

.home-index details {
  border: unset;
  box-shadow: unset;
  font-size: unset;
  padding: unset;
}

.home-index details:focus-within {
  box-shadow: unset;
}

.md-typeset .home-index summary {
  background: unset;
  padding: 0 .8rem;
  margin: unset;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.home-index summary:before {
  display: none;
}

.home-index summary:after {
  height: 1.6rem;
  width: 1.6rem;
  background-color: var(--md-default-fg-color--light);
  position: unset;
  flex-shrink: 0;
}

.home-index summary .summary__inner {
  flex-grow: 1;
}

.home-index h2 {
  margin: .8rem 0;
  display: flex;
  align-items: center;
}

.home-index h2 svg {
  margin-bottom: .1rem;
  height: .9rem;
  margin-right: .6rem;
  fill: currentColor;
  flex-shrink: 0;
}

.home-index summary .description {
  color: var(--md-default-fg-color--light);
  margin: .8rem 0;
}

/* Nav */

.md-typeset .home-index details {
  margin: unset;
}

.md-typeset ul.home-index details ul {
  list-style-type: none;
  margin: unset;
  padding: unset;
}

.md-typeset .home-index details li {
  margin: unset;
  padding: unset;
  border-top: 1px solid var(--md-default-fg-color--lightest)
}

.home-index a:hover {
  background-color: var(--md-default-fg-color--lightest);
}

.home-index .md-nav__link {
  margin: unset;
  padding: .4rem .8rem;
}

.home-index svg {
  height: .9rem;
  margin-top: .2rem;
}