/* Eenvoudige lesopmaak. Ook bruikbaar zonder de Tailwind-CDN. */
:root {
  --ink: #222;
  --muted: #606770;
  --green: #245b87;
  --paper: #fff;
  --line: #d9dfe5;
  --sidebar: 230px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    17px/1.75 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #bd7b00;
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}
h1 {
  font-size: 32px;
  margin: 0 0 16px;
}
h2 {
  font-size: 23px;
  margin: 0 0 20px;
}
h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
p {
  margin: 0 0 20px;
}
ul,
ol {
  padding-left: 28px;
  margin: 16px 0 24px;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
li {
  margin: 10px 0;
}
strong {
  font-weight: 700;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 99;
  padding: 12px;
  background: #fff;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 26px 18px;
  background: #f4f5f6;
  border-right: 1px solid var(--line);
  z-index: 30;
  overflow-y: auto;
}
.brand {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
  color: var(--muted);
}
.nav-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 28px 10px 8px;
}
.nav {
  display: grid;
  gap: 3px;
}
.nav a {
  padding: 10px 12px;
  font-size: 15px;
  text-decoration: none;
  border-left: 3px solid transparent;
  color: #303942;
}
.nav a:hover {
  background: #e8ecef;
}
.nav a[aria-current] {
  background: #e4edf5;
  color: #174d75;
  border-left-color: #245b87;
  font-weight: 700;
}
.sidebar-footer {
  font-size: 12px;
  color: var(--muted);
  margin: 32px 10px 0;
}
.main {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 8px;
}
.search {
  width: 280px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #bac3cd;
  border-radius: 3px;
  font-size: 14px;
  background: white;
}
.search-results {
  position: absolute;
  top: 43px;
  left: 0;
  right: 0;
  border: 1px solid #bac3cd;
  background: #fff;
  z-index: 20;
  max-height: 360px;
  overflow: auto;
  box-shadow: 0 4px 10px #0001;
}
.search-results a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.search-results small {
  display: block;
  color: var(--muted);
  text-decoration: none;
}
.search-results p {
  padding: 12px;
  margin: 0;
  font-size: 14px;
}
.content {
  max-width: 960px;
  margin: auto;
  padding: 36px 40px 64px;
}
.disclaimer {
  font-size: 14px;
  color: var(--muted);
  background: #f5f6f7;
  border-left: 3px solid #a7afb7;
  padding: 16px 20px;
  margin-bottom: 36px;
}
.disclaimer b {
  display: none;
}
.hero {
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.lead {
  font-size: 17px;
  max-width: 68ch;
  color: #444;
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.button {
  display: inline-block;
  padding: 10px 16px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 3px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
}
.button.secondary {
  color: var(--green);
  background: #fff;
  border-color: #aebdc9;
}
.section {
  margin-top: 40px;
}
.section-header {
  margin-bottom: 14px;
}
.section-header h2 {
  margin-bottom: 8px;
}
.section-header p {
  font-size: 14px;
  color: var(--muted);
}
.chapter {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.subsection {
  margin-top: 20px;
  scroll-margin-top: 24px;
}
.grid {
  display: grid;
  gap: 24px;
}
.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  border: 1px solid var(--line);
  padding: 24px;
  background: #fff;
}
.work-card {
  border: 0;
  border-left: 3px solid #b9cbd9;
  background: #f5f7f9;
}
.work-card h3 {
  font-size: 19px;
}
.work-card p {
  font-size: 16px;
}
.card-link {
  font-size: 14px;
}
.badge {
  font-size: 13px;
  font-weight: 700;
  color: #444;
}
.muted {
  color: var(--muted);
}
.case {
  display: block;
  padding: 20px;
  background: #f5f7f9;
  border-left: 3px solid #b9cbd9;
}
.case h3 {
  font-size: 19px;
}
.case p {
  font-size: 15px;
}
.case-chain {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  margin: 15px 0;
}
.info {
  padding: 20px 24px;
  margin: 26px 0;
  border-left: 3px solid;
  font-size: 16px;
}
.info h3 {
  font-size: 16px;
  margin-bottom: 12px;
}
.info > :last-child {
  margin-bottom: 0;
}
.info.blue {
  border-color: #6d95b5;
  background: #f3f7fa;
}
.info.green {
  border-color: #7a9b7c;
  background: #f5f8f4;
}
.info.yellow {
  border-color: #c1a05d;
  background: #fcf9f0;
}
.info.purple {
  border-color: #9483ab;
  background: #f8f6fa;
}
.info.red {
  border-color: #b88377;
  background: #fcf6f4;
}
.toc {
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
  margin: 32px 0;
}
.toc h2 {
  font-size: 17px;
  margin-bottom: 14px;
}
.toc div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.toc a {
  font-size: 15px;
}
.quick-start {
  margin: 28px 0;
  padding: 24px 28px;
  background: #f4f6f8;
  border-left: 3px solid #245b87;
}
.quick-start h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
.quick-start ol {
  margin: 12px 0 24px;
}
.quick-start p {
  font-size: 15px;
}
.quick-start > :last-child {
  margin-bottom: 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
th,
td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f0f2f4;
  font-weight: 700;
}
pre {
  background: #f2f4f6;
  border: 1px solid var(--line);
  color: #202a34;
  padding: 22px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.8;
  margin: 24px 0;
}
code {
  font-family: Consolas, ui-monospace, monospace;
}
p code,
li code,
td code {
  background: #f0f2f4;
  padding: 1px 3px;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.checklist {
  display: grid;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eceff2;
  cursor: pointer;
  font-size: 16px;
}
.check-row:last-child {
  border: 0;
}
.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.check-row:has(input:checked) {
  color: #66725e;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 8px;
}
.progress-track {
  height: 5px;
  background: #e4e9ed;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  width: 0;
}
.storage-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
details {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 22px;
  background: #f6f7f8;
}
summary h3 {
  display: inline;
  font-size: 17px;
  margin: 0;
}
summary::marker {
  color: #606770;
}
details[open] > summary {
  border-bottom: 1px solid var(--line);
}
.detail-body {
  padding: 24px 28px;
}
.detail-body > :last-child {
  margin-bottom: 0;
}
.lesson {
  margin-top: 0;
}
.lesson .detail-body {
  padding: 24px 28px;
}
.lesson summary:hover {
  background: #eef2f5;
}
.reading-note {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 24px;
}
.teacher-note {
  margin: 24px 0;
}
.teacher-note summary {
  font-size: 14px;
  font-weight: 400;
}
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: #fafafa;
  border: 1px solid var(--line);
}
.flow-block {
  padding: 9px 16px;
  border: 1px solid #acbac7;
  background: white;
  text-align: center;
  width: min(100%, 340px);
  font-size: 14px;
}
.flow-block.terminal {
  border-radius: 24px;
  background: #edf2f6;
}
.flow-block.decision {
  border: 2px solid #c1aa70;
  background: #fcf9ef;
}
.flow-block.io {
  border-left: 4px solid #779ab7;
}
.flow-arrow {
  font-size: 18px;
  color: #6f7a84;
  line-height: 1;
}
.flow-branch {
  font-size: 13px;
  color: #7d5e34;
  text-align: center;
}
.diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
}
.entity {
  border: 1px solid var(--line);
  font-size: 13px;
}
.entity strong {
  display: block;
  background: #edf1f4;
  padding: 10px;
}
.entity ul {
  list-style: none;
  margin: 0;
  padding: 10px;
}
.entity li {
  overflow-wrap: anywhere;
}
.relationship {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.steps {
  list-style: decimal;
  padding-left: 25px;
}
.steps li {
  padding: 7px 0;
}
.glossary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
}
.glossary article {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  scroll-margin-top: 24px;
}
.glossary h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.glossary p {
  font-size: 16px;
  margin: 0;
}
.page-next {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.page-next > .muted {
  display: none;
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 32px;
  font-size: 13px;
  color: var(--muted);
}
.footer p {
  max-width: 720px;
}
.footer a {
  font-size: 13px;
}
.mobile-menu,
.menu-close {
  display: none;
}
/* Korte regels voor de lesinhoud; tabellen en code mogen de volle breedte gebruiken. */
.content p {
  max-width: 68ch;
}
.content ul,
.content ol {
  max-width: 72ch;
}
.card {
  min-width: 0;
}
.card > :last-child,
.chapter > :last-child {
  margin-bottom: 0;
}
.toc a {
  padding: 4px 0;
}
summary {
  line-height: 1.55;
}
.detail-body > h3:not(:first-child) {
  margin-top: 28px;
}
.quick-start .exam-reminder {
  margin-top: 24px;
}

@media (max-width: 1050px) {
  .content {
    padding: 32px 28px 56px;
  }
  .topbar {
    padding: 0 24px;
  }
  .diagram {
    grid-template-columns: 1fr;
  }
  .cols-3 {
    grid-template-columns: 1fr;
  }
  .work-card {
    padding: 20px 24px;
  }
  .work-card h3 {
    margin-bottom: 7px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
    line-height: 1.75;
  }
  p {
    margin-bottom: 18px;
  }
  .disclaimer {
    padding: 16px;
    margin-bottom: 28px;
  }
  .info {
    padding: 18px;
    margin: 22px 0;
  }
  summary {
    padding: 16px 18px;
  }
  .exam-reminder {
    padding: 14px 16px;
  }
  .hero {
    margin-bottom: 28px;
  }
  .mobile-menu {
    flex-shrink: 0;
  }
  .search {
    min-width: 0;
  }
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    box-shadow: 4px 0 16px #0002;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
    background: #fff;
    border: 1px solid #bac3cd;
    padding: 5px 8px;
    font-size: 14px;
  }
  .menu-close {
    display: block;
    position: absolute;
    right: 12px;
    top: 12px;
    border: 0;
    background: transparent;
    font-size: 25px;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }
  .breadcrumb {
    display: none;
  }
  .search {
    width: min(100%, 280px);
  }
  .content {
    padding: 28px 20px 48px;
  }
  h1 {
    font-size: 27px;
  }
  h2 {
    font-size: 21px;
  }
  .cols-2,
  .glossary {
    grid-template-columns: 1fr;
  }
  .quick-start {
    padding: 20px;
  }
  .chapter {
    margin-top: 36px;
    padding-top: 28px;
  }
  .detail-body,
  .lesson .detail-body {
    padding: 20px 18px;
  }
  .progress-meta {
    font-size: 12px;
  }
  .toc div {
    gap: 10px 18px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .actions,
  .page-next,
  .reset-button {
    display: none !important;
  }
  .main {
    margin: 0;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  body {
    font-size: 11px;
  }
  h1 {
    font-size: 25px;
  }
  h2 {
    font-size: 19px;
  }
  .chapter {
    margin-top: 20px;
  }
  .info {
    break-inside: avoid;
  }
  details {
    border: 0;
  }
  details > summary {
    background: white;
    border: 0 !important;
    padding: 12px 0;
  }
  details .detail-body {
    padding: 0;
  }
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer {
    font-size: 9px;
  }
  pre,
  table {
    font-size: 10px;
  }
}
/* Korte verwijzingen naar het examen en een vaste plek voor vragen. */
.disclaimer p {
  margin: 0;
}
.disclaimer p + p {
  margin-top: 10px;
}
.exam-reminder {
  font-size: 15px;
  border-left: 3px solid #a7afb7;
  padding: 14px 18px;
  margin: 22px 0;
  background: #f5f6f7;
}
.contact {
  margin-bottom: 32px;
  font-size: 16px;
}
.contact h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.contact p {
  margin-bottom: 12px;
}
.contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact li {
  margin: 10px 0;
}
.contact a {
  font-size: 16px;
  overflow-wrap: anywhere;
}
