/* Besigheidstudies Toets */
.bst-app {
	--bst-ink: #1c2434;
	--bst-muted: #5d6779;
	--bst-line: #dfe3ea;
	--bst-bg: #f6f7f9;
	--bst-card: #ffffff;
	--bst-accent: #1f5fbf;
	--bst-accent-dark: #174a96;
	--bst-accent-soft: #e9f1fd;
	--bst-ok: #1c7c46;
	--bst-ok-soft: #e6f4ec;
	--bst-bad: #b3261e;
	--bst-bad-soft: #fbeceb;
	--bst-warn-soft: #fff5dc;
	max-width: 760px;
	margin: 0 auto;
	color: var(--bst-ink);
	font-size: 17px;
	line-height: 1.5;
	text-align: left;
}
.bst-app *, .bst-app *::before, .bst-app *::after { box-sizing: border-box; }

.bst-head { margin-bottom: 16px; }
.bst-head-title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.bst-head-sub { color: var(--bst-muted); font-size: 15px; }

.bst-card {
	background: var(--bst-card);
	border: 1px solid var(--bst-line);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 18px;
}
.bst-card h2 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; color: var(--bst-ink); }
.bst-card h3 { font-size: 18px; margin: 0 0 6px; color: var(--bst-ink); }
.bst-card p { margin: 0 0 12px; }

.bst-loading { padding: 30px 0; color: var(--bst-muted); text-align: center; }
.bst-note { color: var(--bst-muted); font-size: 14px; margin: 10px 0 0; }
.bst-error {
	background: var(--bst-bad-soft);
	border: 1px solid #f0c4c1;
	color: var(--bst-bad);
	border-radius: 8px;
	padding: 10px 14px;
	margin: 12px 0;
	font-size: 15px;
}

.bst-rules { margin: 0 0 16px; padding-left: 22px; }
.bst-rules li { margin-bottom: 4px; }

.bst-parts-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.bst-part-mini { background: var(--bst-bg); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; font-size: 15px; }
.bst-part-mini em { color: var(--bst-muted); font-style: normal; font-size: 13px; margin-top: 4px; }

.bst-label { display: block; font-weight: 600; margin-bottom: 6px; }
.bst-app .bst-input, .bst-app .bst-select {
	width: 100%;
	font: inherit;
	color: var(--bst-ink);
	background: #fff;
	border: 1.5px solid #b9c0cc;
	border-radius: 8px;
	padding: 10px 12px;
	min-height: 46px;
	height: auto;
	box-shadow: none;
}
.bst-app .bst-input:focus, .bst-app .bst-select:focus { outline: 3px solid var(--bst-accent-soft); border-color: var(--bst-accent); }

.bst-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bst-actions-top { margin: 0 0 14px; }
.bst-app .bst-btn {
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	border-radius: 8px;
	padding: 11px 20px;
	min-height: 46px;
	border: 1.5px solid var(--bst-accent);
	background: #fff;
	color: var(--bst-accent);
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.2;
	transition: background .15s, color .15s;
}
.bst-app .bst-btn:hover { background: var(--bst-accent-soft); color: var(--bst-accent-dark); }
.bst-app .bst-btn-primary { background: var(--bst-accent); color: #fff; }
.bst-app .bst-btn-primary:hover { background: var(--bst-accent-dark); color: #fff; }
.bst-app .bst-btn:disabled { opacity: .45; cursor: not-allowed; }
.bst-app .bst-btn:focus-visible, .bst-app .bst-link:focus-visible { outline: 3px solid #9cc0f5; outline-offset: 2px; }
.bst-app .bst-link { background: none; border: 0; padding: 6px; font: inherit; font-size: 15px; color: var(--bst-muted); text-decoration: underline; cursor: pointer; }
.bst-pause { text-align: center; margin: 0; }

/* Overview */
.bst-parts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bst-part {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	border: 1px solid var(--bst-line); border-radius: 10px; padding: 14px 16px; background: #fff;
}
.bst-part.is-done { background: var(--bst-ok-soft); border-color: #bfe0cd; }
.bst-part-n { font-size: 13px; color: var(--bst-muted); text-transform: uppercase; letter-spacing: .04em; }
.bst-part-title { font-weight: 700; font-size: 18px; }
.bst-part-status { font-size: 14px; color: var(--bst-muted); }
.bst-part-score { font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.bst-part-score strong { font-size: 18px; color: var(--bst-ok); }
.bst-part-action { flex-shrink: 0; }

/* Question */
.bst-progress-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--bst-muted); margin-bottom: 8px; }
.bst-marks { background: var(--bst-accent-soft); color: var(--bst-accent-dark); font-weight: 600; border-radius: 99px; padding: 1px 10px; white-space: nowrap; }
.bst-bar { height: 8px; background: var(--bst-bg); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.bst-bar-fill { height: 100%; background: var(--bst-accent); border-radius: 99px; transition: width .3s; }
.bst-section { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--bst-muted); margin-bottom: 8px; }
.bst-context { background: var(--bst-warn-soft); border-left: 4px solid #e2b93b; border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; font-size: 16px; }
.bst-context p { margin: 0 0 4px; }
.bst-context p:last-child { margin: 0; }
.bst-card h2.bst-qtext { font-size: 20px; margin: 0 0 16px; }

.bst-counter { font-size: 14px; font-weight: 600; color: var(--bst-accent-dark); margin-bottom: 8px; }
.bst-options { display: flex; flex-direction: column; gap: 8px; }
.bst-app .bst-option {
	display: flex; align-items: flex-start; gap: 12px;
	border: 1.5px solid var(--bst-line); border-radius: 10px; padding: 12px 14px;
	cursor: pointer; margin: 0; font-weight: 400; background: #fff;
}
.bst-app .bst-option:hover { border-color: #9cc0f5; }
.bst-app .bst-option.is-picked { border-color: var(--bst-accent); background: var(--bst-accent-soft); }
.bst-app .bst-option.is-off { opacity: .5; cursor: not-allowed; }
.bst-app .bst-option input { width: 20px; height: 20px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--bst-accent); }

.bst-rows { display: flex; flex-direction: column; gap: 10px; }
.bst-row { display: grid; grid-template-columns: 1fr minmax(180px, 240px); gap: 12px; align-items: center; border: 1px solid var(--bst-line); border-radius: 10px; padding: 12px 14px; }
.bst-app .bst-row-label { margin: 0; font-weight: 500; }
.bst-num { display: flex; align-items: center; gap: 8px; }
.bst-affix { color: var(--bst-muted); font-weight: 600; white-space: nowrap; }

/* Results */
.bst-result { text-align: center; }
.bst-result .bst-parts { text-align: left; }
.bst-result .bst-actions { justify-content: center; }
.bst-big { display: flex; flex-direction: column; align-items: center; margin: 8px 0 12px; }
.bst-big-pct { font-size: 64px; font-weight: 800; line-height: 1; color: var(--bst-accent); }
.bst-big-raw { font-size: 18px; color: var(--bst-muted); margin-top: 6px; }
.bst-verdict { font-weight: 600; }
.bst-compare.is-up { color: var(--bst-ok); font-weight: 600; }
.bst-compare.is-down { color: var(--bst-bad); }

.bst-table-wrap { overflow-x: auto; }
.bst-app .bst-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 0; }
.bst-app .bst-table th, .bst-app .bst-table td { text-align: left; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--bst-line); background: none; }
.bst-app .bst-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--bst-muted); }

/* Review */
.bst-review { display: flex; flex-direction: column; gap: 10px; }
.bst-rv { border: 1px solid var(--bst-line); border-left-width: 5px; border-radius: 8px; padding: 12px 14px; }
.bst-rv.is-full { border-left-color: var(--bst-ok); }
.bst-rv.is-part { border-left-color: #e2b93b; }
.bst-rv.is-zero { border-left-color: var(--bst-bad); }
.bst-rv-head { display: flex; justify-content: space-between; font-size: 14px; color: var(--bst-muted); margin-bottom: 4px; }
.bst-rv-score { font-weight: 700; color: var(--bst-ink); }
.bst-rv-text { font-weight: 600; margin-bottom: 8px; }
.bst-rv-rows { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.bst-rv-row { display: flex; gap: 10px; align-items: flex-start; }
.bst-rv-label { font-weight: 500; }
.bst-rv-yours { color: var(--bst-ink); }
.bst-rv-row .bst-rv-label + .bst-rv-yours { color: var(--bst-muted); font-size: 15px; }
.bst-rv-correct { color: var(--bst-ok); font-size: 15px; }
.bst-rv-correct ul { margin: 2px 0 0; padding-left: 20px; }
.bst-tick { font-weight: 700; width: 20px; flex-shrink: 0; }
.bst-tick.is-ok { color: var(--bst-ok); }
.bst-tick.is-bad { color: var(--bst-bad); }

@media (max-width: 600px) {
	.bst-app { font-size: 16px; }
	.bst-card { padding: 18px 16px; }
	.bst-parts-mini { grid-template-columns: 1fr; }
	.bst-part { flex-direction: column; align-items: stretch; }
	.bst-part-action .bst-btn { width: 100%; }
	.bst-row { grid-template-columns: 1fr; }
	.bst-actions .bst-btn { flex: 1 1 100%; }
	.bst-big-pct { font-size: 52px; }
}

/* ---- v2: exam cards, result and handbook study analysis ---- */
.bst-part-sub { font-size: 15px; color: var(--bst-ink); margin-bottom: 2px; }
.bst-part-action { display: flex; flex-direction: column; gap: 8px; }
.bst-result-date { color: var(--bst-muted); font-size: 14px; }

.bst-chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; text-align: left; }
.bst-chapter { border: 1px solid var(--bst-line); border-top-width: 5px; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; }
.bst-chapter-n { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--bst-muted); }
.bst-chapter-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.bst-chapter strong { font-size: 24px; line-height: 1.1; }
.bst-chapter-raw { font-size: 14px; color: var(--bst-muted); }
.bst-chapter.is-low { border-top-color: var(--bst-bad); }
.bst-chapter.is-mid { border-top-color: #e2b93b; }
.bst-chapter.is-high { border-top-color: var(--bst-ok); }

.bst-group { margin-top: 20px; }
.bst-group h3 { margin: 0 0 2px; }
.bst-group.is-low h3 { color: var(--bst-bad); }
.bst-group.is-mid h3 { color: #8a6100; }
.bst-group.is-high h3 { color: var(--bst-ok); }
.bst-group .bst-note { margin: 0 0 10px; }
.bst-topics { display: flex; flex-direction: column; gap: 8px; }
.bst-topic { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid var(--bst-line); border-left-width: 5px; border-radius: 8px; padding: 12px 14px; }
.bst-topic.is-low { border-left-color: var(--bst-bad); background: var(--bst-bad-soft); }
.bst-topic.is-mid { border-left-color: #e2b93b; background: var(--bst-warn-soft); }
.bst-topic.is-high { border-left-color: var(--bst-ok); }
.bst-topic-title { font-weight: 700; }
.bst-topic-ref { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 15px; margin: 4px 0 2px; }
.bst-topic-ref span { background: #fff; border: 1px solid var(--bst-line); border-radius: 6px; padding: 1px 8px; }
.bst-topic-ref .bst-ref-ch { font-weight: 700; }
.bst-topic-ref .bst-ref-pages { font-weight: 700; color: var(--bst-accent-dark); }
.bst-topic-q { font-size: 13px; color: var(--bst-muted); }
.bst-topic-score { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; text-align: right; }
.bst-topic-score strong { font-size: 22px; line-height: 1.1; }
.bst-topic-score span { font-size: 14px; color: var(--bst-muted); }
.bst-topic-prev.is-up { color: var(--bst-ok); font-weight: 600; }
.bst-topic-prev.is-down { color: var(--bst-bad); }
.bst-rv-ref { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--bst-line); font-size: 14px; font-weight: 600; color: var(--bst-accent-dark); }

@media (max-width: 600px) {
	.bst-chapters { grid-template-columns: 1fr; }
}
