/* Owl IDM documentation: the product's colours and type. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --md-text-font: "Inter";
  --md-code-font: "JetBrains Mono";
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #030724;
  --md-primary-fg-color--light: #13263f;
  --md-primary-fg-color--dark: #030724;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #2453c9;
  --md-typeset-a-color: #2453c9;
  --md-default-bg-color: #ffffff;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #030724;
  --md-primary-fg-color--light: #13263f;
  --md-primary-fg-color--dark: #030724;
  --md-accent-fg-color: #8fb4f0;
  --md-typeset-a-color: #8fb4f0;
  --md-default-bg-color: #0b1020;
}

/* A white top bar with a hairline, like the product's own - the Owl logo's text is dark. */
.md-header,
.md-tabs {
  background-color: #ffffff;
  color: #101828;
  box-shadow: 0 1px 0 #e3e7ed;
}

.md-header[data-md-state="shadow"],
.md-header--shadow {
  box-shadow: 0 1px 0 #e3e7ed, 0 2px 6px rgba(16, 24, 40, 0.06);
}

.md-header__button.md-logo img {
  height: 1.7rem;
}

.md-search__input {
  background-color: #f5f6f8;
  color: #101828;
}

.md-search__input::placeholder,
.md-search__icon {
  color: #5b6576;
}

[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-tabs {
  background-color: #ffffff;
}

/* the cards on the home page */
.md-typeset .grid.cards > ul > li {
  border-radius: 12px;
  border-color: #e3e7ed;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: #2453c9;
  box-shadow: 0 2px 10px rgba(36, 83, 201, 0.08);
}

.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--md-default-fg-color);
}

.md-typeset h2 {
  font-weight: 600;
  letter-spacing: -0.005em;
}

.md-typeset table:not([class]) {
  font-size: 0.72rem;
}

.md-typeset table:not([class]) th {
  background: rgba(36, 83, 201, 0.06);
  font-weight: 600;
}

/* "Where to find it" paths, e.g. Access › Account definitions */
.md-typeset .path {
  font-weight: 600;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ "who does what" swimlanes */

/* the thumbnail on the page: small, framed, says it opens */
.md-typeset a.swimlane {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0.4rem 0 1.2rem;
  padding: 8px 8px 6px;
  border: 1px solid #e3e7ed;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  cursor: zoom-in;
}

.md-typeset a.swimlane::after {
  content: attr(data-title) " — click to open";
  font-size: 0.62rem;
  font-weight: 500;
  color: #475467;
}

.md-typeset a.swimlane:hover,
.md-typeset a.swimlane:focus-visible {
  border-color: #2453c9;
  box-shadow: 0 2px 10px rgba(36, 83, 201, 0.12);
}

.md-typeset a.swimlane:hover::after,
.md-typeset a.swimlane:focus-visible::after {
  color: #2453c9;
}

.md-typeset img.swimlane-thumb {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

/* the pop-up: nearly the whole screen */
.swimlane-dialog {
  width: 98vw;
  max-width: none;
  height: 96vh;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(3, 7, 36, 0.35);
  overflow: hidden;
}

.swimlane-dialog[open] {
  display: flex;
  flex-direction: column;
}

.swimlane-dialog::backdrop {
  background: rgba(3, 7, 36, 0.6);
}

.swimlane-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 18px;
  border-bottom: 1px solid #e3e7ed;
  font-family: var(--md-text-font-family);
}

.swimlane-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: #101828;
}

.swimlane-size {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #cdd4dd;
  border-radius: 8px;
  background: #ffffff;
  color: #101828;
  font: 500 13px var(--md-text-font-family);
  cursor: pointer;
}

.swimlane-size:hover,
.swimlane-size:focus-visible {
  border-color: #2453c9;
  color: #2453c9;
}

.swimlane-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.swimlane-close:hover,
.swimlane-close:focus-visible {
  background: #eef1f5;
  color: #101828;
}

/* fitted: the whole diagram in the space there is - no scroll bars */
.swimlane-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  background: #ffffff;
}

.swimlane-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* full size: the diagram at its own size, scrolling where it is larger than the screen */
.swimlane-body.swimlane-full {
  display: block;
  overflow: auto;
}

.swimlane-body.swimlane-full img {
  max-width: none;
  max-height: none;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ screenshots */

/* a screenshot of the product, framed; a click opens it in the pop-up */
.md-typeset a.screen {
  display: block;
  margin: 0.8rem 0 0.6rem;
  padding: 6px 6px 4px;
  border: 1px solid #e3e7ed;
  border-radius: 12px;
  background: #f5f6f8;
  text-decoration: none;
  cursor: zoom-in;
}

.md-typeset a.screen::after {
  content: attr(data-title) " — click to enlarge";
  display: block;
  margin-top: 4px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 500;
  color: #475467;
}

.md-typeset a.screen:hover,
.md-typeset a.screen:focus-visible {
  border-color: #2453c9;
}

.md-typeset img.screen-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
