/* Storyteller Dokka Custom Styling */

:root {
  --md-primary-fg-color: #4051b5;

  --dokka-logo-height: 24px;
  --dokka-logo-width: 117px;

  --background-color: #fff;
  --default-font-color: #000000de;
  --border-color: #00000012;

  --footer-background: var(--md-primary-fg-color);
  --footer-font-color: #fff;
  --footer-go-to-top-color: #fff;
  --breadcrumb-font-color: #0000008a;

  --code-background: #f5f5f5;

  --active-tab-border-color: var(--md-primary-fg-color);
  --inactive-tab-border-color: var(--default-font-color);
  --active-section-color: var(--md-primary-fg-color);
  --inactive-section-color: var(--default-font-color);

  --default-monospace-font-family: "Roboto Mono", SFMono-Regular, Consolas, Menlo, monospace;
  --default-font-family: "Roboto", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

h1 {
  color: #0000008a;
  font-weight: 300 !important;
  letter-spacing: -.01em;
}

/* Navigation */
.navigation {
  background-color: var(--md-primary-fg-color);
  box-shadow: 0 0 .2rem #0000001a,0 .2rem .4rem #0003;
  color: var(--footer-font-color);
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 4;
}

.navigation--inner {
  max-width: 1132px;
}

.library-version {
  top: 0;
}

.library-name--link {
  font-weight: 700;
}

.library-name--link::before {
  background-size: var(--dokka-logo-width) var(--dokka-logo-height);
  width: var(--dokka-logo-width);
  height: var(--dokka-logo-height);
  margin: 8px;
}

/* Code blocks */
pre, code {
  border-radius: 4px;
}

/* Tables */
table {
  width: 100%;
}

th, td {
  padding: 8px;
}

/** Styles are the same on dark and light mode, and there are
no sidebar items, so we can hide the toggles */
.navigation-controls--theme, .menu-toggle {
  display: none;
}

.footer {
  --breadcrumb-font-color: #ffffff73;
}

/** Code highlighting */
.token.atrule, .token.attr-value, .token.keyword {
  color: #3f6ec6 !important; 
}

.token.punctuation {
  color: #0000008a !important;
}

.token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted {
  color: #6e59d9 !important;
}

.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string {
  color: #0000008a !important;
}

.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted {
  color: #1c7d4d !important;
}

.token.function {
  color: #a846b9 !important;
}

/** Search popup */
.popup-wrapper {
  background-color: #fff !important;
  color: #000000de !important;
}

.popup-wrapper svg {
  color: #0000008a !important;
}

.popup-wrapper input {
  color: #000000de !important;
}

.popup-wrapper [class^=filterWrapper] {
  border-bottom-color: var(--border-color);
}

/* Attempt to hide the project/library version from Dokka output */
/* If this doesn't work, you may need to inspect the generated HTML */
/* to find the correct selector for the version element. */
.project-version,
.library-version {
  display: none !important;
}

/* Attempt to hide platform markers like AndroidJvm icon */
/* If this doesn't work, inspect the HTML for the correct selector. */
.platform-hint {
  display: none !important;
}

div[data-platform-hint] {
    display: none !important;
}

span[data-filterable-current][data-filterable-set*="androidJvm"] ~ .platform-hint {
    display: none !important;
}

/* Hide AndroidJvm platform tags and filter button */
.platform-tag.jvm-like,
button.platform-tag.platform-selector.jvm-like {
  display: none !important;
}