/* DataCertLab brand: navy and blue from the logo. */
:root {
  --dcl-navy: #0b1f3a;
  --dcl-blue: #1c57b5;
  --dcl-blue-light: #6f9eea;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: var(--dcl-navy);
  --md-primary-fg-color--light: #23406b;
  --md-primary-fg-color--dark: #06142a;
  --md-accent-fg-color: var(--dcl-blue);
  --md-typeset-a-color: var(--dcl-blue);
}

[data-md-color-scheme="slate"] {
  --md-hue: 218;
  --md-primary-fg-color: #0e2547;
  --md-primary-fg-color--light: #23406b;
  --md-primary-fg-color--dark: #06142a;
  --md-accent-fg-color: var(--dcl-blue-light);
  --md-typeset-a-color: var(--dcl-blue-light);
}

/* Dark mode: the navy primary is for the header only; buttons need the lighter blue to show. */
[data-md-color-scheme="slate"] .md-typeset .md-button {
  color: var(--dcl-blue-light);
  border-color: var(--dcl-blue-light);
}
[data-md-color-scheme="slate"] .md-typeset .md-button--primary {
  background-color: var(--dcl-blue);
  border-color: var(--dcl-blue);
  color: #fff;
}
[data-md-color-scheme="slate"] .md-typeset .md-button:is(:hover, :focus) {
  background-color: var(--dcl-blue-light);
  border-color: var(--dcl-blue-light);
  color: #06142a;
}

/* The logo mark is navy on transparent: give it a white disc so it reads on the navy header. */
.md-header__button.md-logo img,
.md-nav__title .md-nav__button.md-logo img {
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  height: 1.9rem;
  width: 1.9rem;
}

/* Home page hero */
.dcl-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0.5rem 0 1.5rem;
}
.dcl-hero__text { flex: 1 1 22rem; }
.dcl-hero__text h1 {
  font-weight: 700;
  color: var(--md-default-fg-color);
  margin-bottom: 0.6em;
}
.dcl-hero__logo { flex: 0 0 auto; }
.dcl-hero__logo img { border-radius: 50%; display: block; }
[data-md-color-scheme="slate"] .dcl-hero__logo img { box-shadow: 0 0 0 4px #ffffff22; }
@media screen and (max-width: 44.9375em) {
  .dcl-hero { flex-direction: column-reverse; gap: 1rem; text-align: center; }
  .dcl-hero__text { flex: 0 1 auto; min-width: 0; }
  .dcl-hero__logo img { width: 160px; height: 160px; margin: 0 auto; }
}

/* Exam cards: keep the two buttons on one row where there is room */
.md-typeset .grid.dcl-exams {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.dcl-exams .md-button { margin: 0.2rem 0.3rem 0.2rem 0; font-size: 0.7rem; }

/* Long tables in the notes scroll inside themselves, not the page */
.md-typeset__table { max-width: 100%; }
