/* ------------------------------------------------------------------ */
/* Global type scale                                                   */
/* Material sizes everything in rem, so shifting the root font size    */
/* scales body copy, nav, tables, admonitions and code together.       */
/* This moves Material's own ladder (125 / 137.5 / 150%) up one step,  */
/* i.e. body copy goes from 16px to 17.6px.                            */
/* ------------------------------------------------------------------ */
html {
  font-size: 137.5%;
}

@media screen and (min-width: 100em) {
  html {
    font-size: 150%;
  }
}

@media screen and (min-width: 125em) {
  html {
    font-size: 162.5%;
  }
}

/* ------------------------------------------------------------------ */
/* Landing page pipeline overview figure                               */
/* Full content width; in dark mode it sits on a white card because   */
/* the figure is drawn for a white background.                        */
/* ------------------------------------------------------------------ */
.gd-pipeline {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.5rem auto 1.5rem;
  border-radius: 0.3rem;
}

[data-md-color-scheme="slate"] .gd-pipeline {
  background: #ffffff;
  padding: 0.6rem;
}

/* ------------------------------------------------------------------ */
/* Integrated TOC: differentiate heading levels in the left sidebar   */
/* ------------------------------------------------------------------ */

/* H2-level TOC entries: bold + primary colour */
.md-nav--integrated .md-nav__list > .md-nav__item .md-nav__list > .md-nav__item > .md-nav__link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--md-primary-fg-color--dark);
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}

/* H3-level TOC entries: smaller, indented, lighter */
.md-nav--integrated .md-nav__list > .md-nav__item .md-nav__list > .md-nav__item .md-nav__list > .md-nav__item > .md-nav__link {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.82;
}

/* Keep the active TOC link highlighted */
.md-nav--integrated .md-nav__link--active {
  color: var(--md-accent-fg-color) !important;
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Landing page logo                                                   */
/* ------------------------------------------------------------------ */
.gd-logo {
  display: block;
  margin: 0.5rem auto 1.8rem;
  height: 65px;
  width: auto;
}

/* ------------------------------------------------------------------ */
/* Sidebar: show left nav/TOC at narrower viewport widths              */
/* Force exactly 2 states:                                             */
/* ≥900px (56.25em): full sidebar with integrated TOC                  */
/* <900px: no sidebar (mobile hamburger navigation)                    */
/* ------------------------------------------------------------------ */
@media screen and (min-width: 56.25em) {
  .md-sidebar--primary {
    display: block !important;
    visibility: visible !important;
    transform: none !important;
  }
}
@media screen and (max-width: 56.1875em) {
  .md-sidebar--primary {
    display: none !important;
    visibility: hidden !important;
    transform: translateX(-100%) !important;
  }
}

/* ------------------------------------------------------------------ */
/* Colour scheme taken from the logo: DNA teal-blue, base-letter orange */
/* ------------------------------------------------------------------ */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color:        #23758a;
  --md-primary-fg-color--light: #4b97a9;
  --md-primary-fg-color--dark:  #18576a;
  --md-accent-fg-color:         #d9622b;
  --md-accent-fg-color--transparent: rgba(217, 98, 43, 0.1);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #23758a;
  --md-primary-fg-color--light: #4b97a9;
  --md-primary-fg-color--dark:  #6fb3c4;
  --md-accent-fg-color:         #f08a52;
  --md-accent-fg-color--transparent: rgba(240, 138, 82, 0.1);
}
