/* SlingologyEIS docs — small adjustments on top of Material */

/* Brand accent (Spec 15): #3D5A73, the one accent on the site */
:root,
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #3D5A73;
  --md-primary-fg-color--light: #5c7a93;
  --md-primary-fg-color--dark: #2e4557;
  --md-accent-fg-color: #3D5A73;
  --md-accent-fg-color--transparent: rgba(61, 90, 115, 0.1);
}
[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #8fb0c9;        /* lighter on dark ground so links stay readable */
  --md-typeset-a-color: #8fb0c9;
}
[data-md-color-scheme="default"] { --md-typeset-a-color: #3D5A73; }

.md-header__button.md-logo img { height: 2.1rem; width: 2.1rem; background: none; padding: 0; }
.md-header__title { font-weight: 700; letter-spacing: 0.02em; }

.md-typeset .brand-lockup { display: flex; align-items: center; gap: 1.25rem; margin: 0 0 1.5rem; }
.md-typeset .brand-lockup img { width: 160px; height: auto; margin: 0; }


.md-typeset img.screenshot,
.md-typeset figure.screenshot img {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.md-typeset figure.screenshot figcaption {
  font-size: 0.8rem;
  color: var(--md-default-fg-color--light);
  margin-top: 0.4rem;
}

/* The "In brief" block at the top of every concept page */
.md-typeset .in-brief {
  border-left: 4px solid #3D5A73;
  padding: 0.6rem 1rem;
  margin: 1rem 0 1.5rem;
  background: var(--md-code-bg-color);
  border-radius: 0 6px 6px 0;
}
.md-typeset .in-brief p:last-child { margin-bottom: 0; }

/* Concept diagrams: let them theme with the page */
.md-typeset figure.diagram { display: block; width: 100%; margin: 1.5rem 0; }
.md-typeset figure.diagram svg { width: 100%; max-width: 820px; height: auto; display: block; margin: 0 auto; }
.md-typeset figure.diagram figcaption {
  font-size: 0.8rem;
  color: var(--md-default-fg-color--light);
}

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

/* "Open the app" button in the header (docs/overrides/partials/header.html, extra.app_url) */
.md-header__app {
  display: inline-flex; align-items: center; gap: .3rem;
  margin: 0 .4rem 0 .2rem; padding: .3rem .7rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.14); color: #fff !important;
  font-size: .7rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.md-header__app:hover, .md-header__app:focus { background: #fff; color: var(--md-primary-fg-color) !important; border-color: #fff; }
.md-header__app svg { width: .8rem; height: .8rem; fill: currentColor; }
.md-header__app-short { display: none; }
@media screen and (max-width: 44.9375em) {
  .md-header__app { padding: .25rem .55rem; margin-right: .2rem; }
  .md-header__app-text { display: none; }
  .md-header__app-short { display: inline; }
}

/* Left navigation: make the section headings read as headings */
@media screen and (min-width: 76.25em) {
  .md-nav--primary .md-nav__item--section { margin-top: 1.1rem; }
  .md-nav--primary .md-nav__item--section > .md-nav__link {
    font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--md-primary-fg-color);
    padding-top: .45rem; margin-bottom: .2rem;
    border-top: 1px solid var(--md-default-fg-color--lightest);
  }
  [data-md-color-scheme="slate"] .md-nav--primary .md-nav__item--section > .md-nav__link { color: #a9c3d8; }
  .md-nav--primary .md-nav__item--section > .md-nav { padding-left: .25rem; border-left: 2px solid var(--md-default-fg-color--lightest); margin-left: .1rem; }
  .md-nav--primary .md-nav__item--section .md-nav__item .md-nav__link { padding-left: .55rem; }
}

/* "Feedback" link in the header, beside "Open the app" (extra.feedback_url) */
.md-header__feedback {
  display: inline-flex; align-items: center; gap: .3rem;
  margin: 0 .1rem 0 .4rem; padding: .3rem .6rem; border-radius: 999px;
  color: #fff !important; font-size: .7rem; font-weight: 600; white-space: nowrap;
  opacity: .9; transition: background .15s, opacity .15s;
}
.md-header__feedback:hover, .md-header__feedback:focus { background: rgba(255,255,255,.14); opacity: 1; }
.md-header__feedback svg { width: .9rem; height: .9rem; fill: currentColor; }
@media screen and (max-width: 44.9375em) {
  .md-header__feedback { padding: .3rem .35rem; margin-left: .1rem; }
  .md-header__feedback-text { display: none; }
}
