/* Typografie uit de SQL-cursus. Bewust lokaal gekopieerd: SQL blijft ongewijzigd.
   SQL: Bootstrap-basis 14px; header 2em; menu 1.2em; kopgewicht 500.
   Absolute maten voorkomen verschillen door de eigen rem-basis van elke cursus.
   Gewone tekst, codevoorbeelden en kleuren behouden hun bestaande vormgeving. */
@font-face {
  font-family: "Jura";
  src: url("../fonts/Jura-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

h1, h2, h3, h4, h5, h6,
.site-title, .page-title {
  font-family: "Jura", sans-serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: normal;
}

h1, .page-title { font-size: 28px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; } /* font-size-audit-allow: SQL-kopniveau */
h5 { font-size: 14px; } /* font-size-audit-allow: SQL-kopniveau */
h6 { font-size: 12px; } /* font-size-audit-allow: SQL-kopniveau */

/* De titel in de header en een direct volgende paginasubtitel zijn bij SQL 28px. */
.site-header { grid-template-columns: auto minmax(0, 1fr) auto; }
.site-header .site-title {
  position: static;
  transform: none;
  max-width: 100%;
  min-width: 0;
  font-size: 28px;
  text-align: center;
  overflow-wrap: anywhere;
}
.md h1 + h2,
.md > h2:first-child {
  font-size: 28px;
  font-weight: 500;
}

.side-menu h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
}

/* Vaste maten, ook voor geneste Python-menu's: geen oplopende em-vermenigvuldiging. */
.side-menu,
.side-menu .menu-list,
.side-menu .menu-list a,
.side-menu .menu-group > summary,
.side-menu .menu-link__title {
  font-family: "Jura", sans-serif;
  font-size: 16.8px; /* font-size-audit-allow: SQL-hoofdmenu */
  font-weight: 700;
  line-height: 24px;
}
.side-menu .menu-link__subtitle {
  font-size: 13.12px; /* font-size-audit-allow: toelichting hoofdmenu */
  font-weight: 400;
  line-height: 1.25;
}

/* Welkomstpagina: exacte verticale opbouw van de live SQL-header.
   Titel y=83px; padding 1vh; daarna 20px tot de subtitel.
   Langere tekst mag op smalle schermen doorlopen zonder overlap. */
.course-home .site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 83px 0 0;
  background: transparent;
}
.course-home .site-header > .site-title,
.course-home .site-header > h1 {
  grid-column: 1;
  grid-row: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1vh;
  text-align: center;
}
.course-home .site-title a { color: inherit; text-decoration: none; }
.course-home .site-header > .course-subtitle {
  grid-column: 1;
  grid-row: 2;
  box-sizing: border-box;
  width: 100%;
  margin: 20px 0 10px;
  padding: 1vh;
  font-family: "Jura", sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
}
.course-home .site-header > .hamburger {
  position: absolute;
  top: 37px;
  left: 40px;
}
.course-home .site-header > .header-actions,
.course-home .site-header > .theme-toggle {
  position: absolute;
  top: 27px;
  right: 40px;
}
.course-home .site-header > #theme-switcher {
  position: absolute;
  top: 27px;
  right: 0;
}
.course-home .welcome-tagline { text-align: center; color: var(--muted); }
@media (max-width: 400px) {
  .course-home .site-header > .hamburger { left: 20px; }
  .course-home .site-header > .header-actions,
  .course-home .site-header > .theme-toggle { right: 20px; }
}
