/* study-ui 1.0.0. Alle selectoren zijn begrensd tot body.study-shell. */
body.study-shell {
  background: var(--study-canvas);
  color: var(--study-ink);
  font-family: var(--study-font-family);
}

body.study-shell [hidden] { display: none !important; }
body.study-shell .study-topbar,
body.study-shell .study-topbar *,
body.study-shell .study-dashboard,
body.study-shell .study-dashboard * { box-sizing: border-box; }

body.study-shell .study-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  height: auto;
  min-height: var(--study-header-height);
  padding: 5px 18px;
  background: var(--study-purple);
  color: #fff;
  box-shadow: 0 1px 2px #0003;
}

body.study-shell .study-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #fff;
  font: 700 46px/1 var(--study-font-family);
  letter-spacing: -1.6px;
  text-decoration: none;
  white-space: nowrap;
}
body.study-shell .study-brand > svg { width: 34px; height: 42px; flex: none; }
body.study-shell .study-brand small,
body.study-shell .study-brand .brand-sub {
  margin-left: 14px;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .09em;
}

body.study-shell .study-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.study-shell .study-controls a,
body.study-shell .study-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 36px;
  padding: 3px 7px;
  border: 0;
  border-radius: var(--study-radius);
  background: transparent;
  color: #fff;
  font: 400 var(--study-control-font-size)/1 var(--study-font-family);
  text-decoration: none;
  cursor: pointer;
}
body.study-shell .study-controls a:hover,
body.study-shell .study-controls button:hover { background: #ffffff18; }
body.study-shell .study-controls button:disabled { opacity: .35; cursor: default; }
body.study-shell .study-controls svg { width: 20px; height: 24px; flex: none; }
body.study-shell .study-font-group { display: flex; align-items: center; gap: 0; }
body.study-shell .study-font-group button { min-width: 27px; padding: 3px; font-size: 18px; }
body.study-shell .study-font-group button[data-font="-1"],
body.study-shell .study-font-group #font-minus { font-size: 16px; }
body.study-shell .study-font-group button[data-font="1"],
body.study-shell .study-font-group #font-plus { font-size: 20px; }
body.study-shell .study-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 18px;
  color: #f4f4f5;
  font: 700 14px/1.3 var(--study-font-family);
  white-space: nowrap;
}
body.study-shell .study-profile svg { width: 40px; height: 40px; flex: none; }

body.study-shell .study-nav {
  position: sticky;
  top: var(--study-header-height);
  z-index: 35;
  display: flex;
  align-items: stretch;
  min-height: var(--study-nav-height);
  gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid var(--study-border);
  background: var(--study-surface);
  overflow-x: auto;
}
body.study-shell .study-nav a,
body.study-shell .study-nav > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--study-muted);
  font: 400 var(--study-control-font-size)/1.3 var(--study-font-family);
  text-decoration: none;
  white-space: nowrap;
}
body.study-shell .study-nav [aria-current="page"] {
  border-bottom-color: var(--study-green);
  color: var(--study-green-dark);
  font-weight: 700;
}
body.study-shell .study-page-title {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid var(--study-border);
  background: var(--study-surface);
  color: var(--study-title);
  font: 700 22px/1.3 var(--study-font-family);
  letter-spacing: 0;
}
body.study-shell .study-page-title h1 { margin: 0; color: inherit; font: inherit; letter-spacing: 0; }

body.study-shell .study-dashboard { padding: 22px 24px 32px; color: var(--study-ink); }
body.study-shell .study-dashboard > section { margin: 28px 0 0; }
body.study-shell .study-dashboard > section:first-child { margin-top: 0; }
body.study-shell .study-dashboard > section > h2 {
  margin: 0 10px 20px;
  color: var(--study-title);
  font: 700 14px/1.5 var(--study-font-family);
  letter-spacing: 0;
}
body.study-shell .study-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  table-layout: fixed;
  border: 1px solid var(--study-border);
  border-collapse: collapse;
  background: var(--study-surface);
  color: var(--study-ink);
  font: 400 14px/1.5 var(--study-font-family);
}
body.study-shell .study-table th,
body.study-shell .study-table td {
  min-width: 0;
  padding: 14px 20px;
  border: 0;
  border-bottom: 1px solid var(--study-border);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
body.study-shell .study-table thead th {
  height: 50px;
  padding: 12px 20px;
  background: var(--study-subtle);
  color: var(--study-muted);
  font-size: 12px;
  font-weight: 600;
}
body.study-shell .study-table th:first-child { width: 35%; }
body.study-shell .study-table th:last-child { width: 158px; }
body.study-shell .study-table tbody th,
body.study-shell .study-table tbody td { height: 64px; background: var(--study-surface); }
body.study-shell .study-table tbody th { font-weight: 400; }
body.study-shell .study-table a { color: var(--study-ink); }
body.study-shell .study-table .study-btn.primary { color: #fff; }
body.study-shell .study-table small { display: block; color: var(--study-muted); font-size: 12px; }
body.study-shell .study-table .num { font-variant-numeric: tabular-nums; text-align: right; }

body.study-shell .study-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 35px;
  padding: 6px 10px;
  border: 1px solid var(--study-border);
  border-radius: var(--study-radius);
  background: var(--study-surface);
  color: var(--study-purple);
  font: 600 var(--study-control-font-size)/var(--study-control-line-height) var(--study-font-family);
  text-decoration: none;
  cursor: pointer;
}
body.study-shell .study-btn:hover { border-color: var(--study-green); background: #f5faf7; }
body.study-shell .study-btn.primary { border-color: var(--study-green); background: var(--study-green); color: #fff; }
body.study-shell .study-btn.primary:hover { border-color: var(--study-green-dark); background: var(--study-green-dark); }
body.study-shell .study-btn:disabled { opacity: .45; cursor: default; }
body.study-shell .study-score {
  display: inline-block;
  flex-shrink: 0;
  min-width: 98px;
  padding: 8px 12px;
  border: 1px solid var(--study-ungraded-border);
  border-radius: var(--study-radius);
  background: var(--study-ungraded-bg);
  color: var(--study-ink);
  font: 400 14px/1.4 var(--study-font-family);
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
body.study-shell .study-score.full { background: var(--study-full-bg); border-color: var(--study-full-border); }
body.study-shell .study-score.partial { background: var(--study-partial-bg); border-color: var(--study-partial-border); }
body.study-shell .study-score.zero { background: var(--study-zero-bg); border-color: var(--study-zero-border); }
body.study-shell .study-score.ungraded { font-size: 12px; }
body.study-shell .study-result-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--study-border);
  background: #f8f8f8;
  color: var(--study-ink);
  font-size: .9rem;
  line-height: 1.45;
  text-decoration: none;
}
body.study-shell .study-result-row > * { min-width: 0; }
body.study-shell a.study-result-row:hover { background: #d8eee7; }
body.study-shell .study-topbar :focus-visible,
body.study-shell .study-nav :focus-visible,
body.study-shell .study-btn:focus-visible,
body.study-shell .study-table a:focus-visible,
body.study-shell .study-result-row:focus-visible { outline: 3px solid var(--study-focus); outline-offset: 3px; }

/* Compact vragenoverzicht, afgeleid van CAFA2 css/question-overview.css. */
body.study-shell .study-overview-dialog {
  width: 850px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--study-surface);
  color: #383838;
  box-shadow: none;
  font: 14px/1.4 var(--study-font-family);
}
body.study-shell .study-overview-dialog::backdrop { background: #000b; }
body.study-shell .study-overview-dialog,
body.study-shell .study-overview-dialog * { box-sizing: border-box; }
body.study-shell .study-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding: 26px 30px;
  border-bottom: 1px solid #ddd;
  background: var(--study-surface);
}
body.study-shell .study-overview-head h2 {
  margin: 0;
  color: var(--study-title);
  font: 700 26px/1.25 var(--study-font-family);
  letter-spacing: 0;
}
body.study-shell .study-overview-head button {
  flex: none;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #737373;
  box-shadow: none;
  font: 400 42px/30px var(--study-font-family);
  cursor: pointer;
}
body.study-shell .study-overview-body {
  display: block;
  min-height: 0;
  max-height: calc(100dvh - 240px);
  padding: 24px 30px 46px;
  overflow: auto;
  overscroll-behavior: contain;
}
body.study-shell .study-overview-body-inner {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  min-width: 0;
}
body.study-shell .study-overview-remaining {
  display: flex;
  flex: 0 0 180px;
  align-items: center;
  gap: 20px;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}
body.study-shell .study-overview-remaining strong {
  padding: 2px 5px;
  background: var(--study-orange);
  color: #fff;
  font-size: 14px;
  line-height: 16px;
}
body.study-shell .study-overview-grid {
  display: grid;
  flex: 1;
  grid-auto-flow: column;
  grid-template-rows: repeat(10, 37px);
  grid-template-columns: repeat(var(--overview-columns, 2), minmax(112px, 168px));
  align-content: start;
  gap: 16px 24px;
  min-width: 0;
  margin: 0;
  padding: 4px 0 0;
  list-style: none;
}
body.study-shell .study-overview-grid > li {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.study-shell .study-overview-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 37px;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--study-surface);
  color: #383838;
  font: 400 14px/18px var(--study-font-family);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
body.study-shell .study-overview-item:hover { background: #edf7f4; }
body.study-shell .study-overview-item[aria-current]:not([aria-current="false"]) {
  background: #edf7f4;
  outline: 2px solid var(--study-purple);
  outline-offset: 3px;
}
body.study-shell .study-overview-item:focus-visible,
body.study-shell .study-overview-head button:focus-visible {
  outline: 3px solid var(--study-focus);
  outline-offset: 3px;
}
body.study-shell .study-overview-number {
  display: flex;
  flex: 0 0 37px;
  align-items: center;
  justify-content: center;
  height: 37px;
  background: var(--study-orange);
  color: #fff;
  font-weight: 700;
}
body.study-shell .study-overview-item.is-answered .study-overview-number { background: var(--study-answered); }
body.study-shell .study-overview-state { display: block; min-width: 0; font-weight: 400; overflow-wrap: normal; }
body.study-shell .study-overview-divider::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  left: 0;
  height: 1px;
  background: #ccc;
}
body.study-shell .study-overview-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 68px;
  padding: 15px 30px;
  border-top: 1px solid #ddd;
  background: #f0f0f0;
}
body.study-shell .study-overview-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  height: 37px;
  padding: 0 10px;
  border: 1px solid #c0c8cc;
  background: #e1e5e7;
  color: #102f41;
  font-weight: 700;
}
body.study-shell .study-overview-footer .study-btn.primary {
  padding: 7px 20px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 16px;
}

@media (max-width: 900px) {
  body.study-shell .study-controls { gap: 8px; }
  body.study-shell .study-brand small,
  body.study-shell .study-brand .brand-sub { display: none; }
  body.study-shell .study-profile { gap: 12px; margin-left: 8px; }
  body.study-shell .study-table th,
  body.study-shell .study-table td { padding-left: 12px; padding-right: 12px; }
  body.study-shell .study-table th:last-child { width: 140px; }
  body.study-shell .study-overview-body-inner { gap: 20px; }
  body.study-shell .study-overview-remaining { flex-basis: 160px; }
  body.study-shell .study-overview-grid { column-gap: 16px; grid-template-columns: repeat(var(--overview-columns, 2), minmax(103px, 168px)); }
  body.study-shell .study-overview-item { gap: 10px; }
}

@media (max-width: 680px) {
  body.study-shell .study-topbar { padding: 8px 10px; gap: 8px; }
  body.study-shell .study-brand { font-size: 33px; }
  body.study-shell .study-brand > svg { width: 26px; height: 35px; }
  body.study-shell .study-controls { gap: 5px; justify-content: flex-end; }
  body.study-shell .study-controls a,
  body.study-shell .study-controls button { min-width: 30px; padding: 3px 5px; }
  body.study-shell .study-font-group button { min-width: 24px; padding: 3px; }
  body.study-shell .study-profile { gap: 7px; margin-left: 5px; font-size: 12px; }
  body.study-shell .study-profile svg { width: 30px; height: 30px; }
  body.study-shell .study-nav { padding: 0 6px; }
  body.study-shell .study-nav a,
  body.study-shell .study-nav > button { padding: 11px 10px; font-size: 12px; }
  body.study-shell .study-page-title { padding: 12px 16px; font-size: 20px; }
  body.study-shell .study-dashboard { padding: 20px 12px; }
  body.study-shell .study-dashboard > section > h2 { margin-left: 4px; }
  body.study-shell .study-table,
  body.study-shell .study-table tbody,
  body.study-shell .study-table tr { display: block; width: 100%; }
  /* Keep column headings available to assistive technology. */
  body.study-shell .study-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body.study-shell .study-table tbody tr { padding: 12px 16px; border-bottom: 1px solid var(--study-border); }
  body.study-shell .study-table tbody tr:last-child { border-bottom: 0; }
  body.study-shell .study-table tbody th,
  body.study-shell .study-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: auto;
    height: auto;
    padding: 7px 0;
    border: 0;
    text-align: left;
    font-size: 13px;
  }
  body.study-shell .study-table td[data-label]::before { content: attr(data-label); color: var(--study-muted); font-size: 12px; }
  body.study-shell .study-table tbody th:first-child,
  body.study-shell .study-table tbody td:first-child { display: block; width: auto; padding-bottom: 10px; font-size: 15px; font-weight: 600; }
  body.study-shell .study-table tbody td:first-child::before,
  body.study-shell .study-table tbody td:last-child::before { content: none; }
  body.study-shell .study-table tbody td:last-child { display: block; width: auto; }
  body.study-shell .study-table tbody td:last-child .study-btn { width: 100%; min-height: 40px; margin-top: 6px; }
  body.study-shell .study-result-row { grid-template-columns: 24px minmax(0, 1fr) auto; padding: 14px 10px; gap: 10px; }
  body.study-shell .study-score { min-width: 65px; padding: 7px; font-size: 13px; }
  body.study-shell .study-overview-head { min-height: 72px; padding: 20px; }
  body.study-shell .study-overview-head h2 { font-size: 23px; }
  body.study-shell .study-overview-body { display: block; max-height: calc(100dvh - 205px); padding: 20px; }
  body.study-shell .study-overview-body-inner { display: block; }
  body.study-shell .study-overview-remaining { margin-bottom: 26px; }
  body.study-shell .study-overview-grid { grid-auto-flow: row; grid-template-rows: none; grid-auto-rows: 37px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; width: 100%; }
  body.study-shell .study-overview-item { gap: 8px; font-size: 12px; line-height: 16px; }
  body.study-shell .study-overview-footer { padding: 15px 20px; }
}

@media (max-width: 380px) {
  body.study-shell .study-profile > span { display: none; }
  body.study-shell .study-brand { font-size: 30px; }
  body.study-shell .study-controls { gap: 3px; }
}

@media print {
  body.study-shell .study-topbar,
  body.study-shell .study-nav { display: none !important; }
  body.study-shell .study-dashboard { padding: 0; }
  body.study-shell .study-table { break-inside: auto; }
  body.study-shell .study-result-row { break-inside: avoid; }
}
