/* ── Primary colour (change here only) ── */
:root {
  --primary: #1B5E91;
  --primary-light: #2a7ab8;
  --primary-dark: #144569;
  --primary-rgb: 27, 94, 145;
}

/* ── Light mode ── */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #0087FE;
  --md-primary-fg-color--light: #339ffe;
  --md-primary-fg-color--dark: #0066bf;
  --md-accent-fg-color: var(--primary);
  --md-typeset-a-color: var(--primary);
  --md-default-bg-color: #F1F3F5;
}

/* ── Dark mode ── */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0087FE;
  --md-primary-fg-color--light: #339ffe;
  --md-primary-fg-color--dark: #0066bf;
  --md-accent-fg-color: var(--primary-light);
  --md-typeset-a-color: var(--primary-light);
}

/* Active tab — background shade of primary colour */
.md-typeset .tabbed-alternate .tabbed-labels label.active,
.md-typeset .tabbed-alternate input:nth-child(1):checked ~ .tabbed-labels label:nth-child(1),
.md-typeset .tabbed-alternate input:nth-child(2):checked ~ .tabbed-labels label:nth-child(2),
.md-typeset .tabbed-alternate input:nth-child(3):checked ~ .tabbed-labels label:nth-child(3),
.md-typeset .tabbed-alternate input:nth-child(4):checked ~ .tabbed-labels label:nth-child(4) {
  background-color: rgba(var(--primary-rgb), 0.25);
  border-radius: 4px 4px 0 0;
}

/* Widen the overall page container to use full screen width */
.md-grid {
  max-width: 100%;
}

/* Slim down the left nav sidebar */
.md-sidebar--primary {
  width: 11rem;
}
.md-sidebar--primary .md-sidebar__scrollwrap {
  width: 11rem;
}

/* Slim down the right TOC sidebar */
.md-sidebar--secondary {
  width: 11rem;
}
.md-sidebar--secondary .md-sidebar__scrollwrap {
  width: 11rem;
}

/* Bold the right-side table of contents */
.md-sidebar--secondary .md-nav__link {
  font-weight: 600;
}

/* Headings — primary colour, bold */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--primary);
  font-weight: 700;
}

/* Dark mode headings — use lighter shade for readability */
[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3 {
  color: var(--primary-light);
}

[data-md-color-scheme="slate"] .md-typeset h4 {
  color: var(--primary-light);
}

/* Subtle divider above step headings */
.md-typeset h3 {
  border-top: 1px solid #D1D5DB;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

[data-md-color-scheme="slate"] .md-typeset h3 {
  border-top-color: #404040;
}

.md-typeset h4 {
  color: var(--primary);
  font-weight: 600;
}

/* Left nav — bolder text */
.md-sidebar--primary .md-nav__link {
  font-weight: 600;
}

/* Left nav — active page: primary colour text + highlighted row */
.md-sidebar--primary .md-nav__link--active,
.md-sidebar--primary .md-nav__item--active > .md-nav__link {
  color: var(--primary);
  font-weight: 700;
  background-color: rgba(var(--primary-rgb), 0.12);
  border-radius: 4px;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link--active,
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item--active > .md-nav__link {
  color: var(--primary-light);
}

/* Reduce nav font size to fit narrower sidebar */
.md-nav {
  font-size: 0.65rem;
}

/* ── Homepage logo banner ── */
.logo-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
}

.logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 180px;
}

.logo-col img {
  height: 85px;
  width: auto;
}

.logo-center img {
  height: 180px;
  width: auto;
}
