/* Een overzicht dat klopt */
.ov-table-wrap,
.ov-sheet-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ov-table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.5;
}
.ov-table th,
.ov-table td {
  padding: .6rem .7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.ov-table thead th {
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--navy);
}
.ov-table tbody th { color: var(--ink); font-weight: 600; }
.article-layout > .article-copy { min-width: 0; }

.prompt-preview img { margin: 1rem 0; }

/* Oefening */
.ov-lab {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ov-steps { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.ov-steps li + li { margin-top: .2rem; }

.ov-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 1rem 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
}
.ov-control label {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
}
.ov-control output { color: var(--navy); font-variant-numeric: tabular-nums; }
.ov-control input[type="range"] { width: 100%; accent-color: var(--navy); }
.ov-score { margin: 0; color: var(--muted); font-size: .92rem; white-space: nowrap; }
.ov-score strong { color: var(--navy); font-family: var(--serif); font-size: 1.4rem; }

.ov-formula-bar {
  display: flex;
  align-items: stretch;
  margin-bottom: .5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: .95rem;
  background: var(--navy-wash);
}
.ov-cell-ref {
  min-width: 3.5rem;
  padding: .45rem .6rem;
  color: var(--muted);
  font-weight: 600;
  border-right: 1px solid var(--line);
}
.ov-cell-ref::after { content: "fx"; margin-left: .6rem; font-style: italic; color: var(--muted); }
.ov-formula-bar code {
  flex: 1;
  padding: .45rem .7rem;
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--white);
  overflow-wrap: anywhere;
}

.ov-sheet {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .94rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.ov-sheet th,
.ov-sheet td { border: 1px solid var(--line); padding: 0; }
.ov-sheet thead th,
.ov-sheet .ov-rownum {
  padding: .25rem .5rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  background: var(--navy-pale);
}
.ov-sheet .ov-rownum { width: 2.4rem; }
.ov-sheet thead th:nth-child(2) { width: 36%; }
.ov-sheet thead th:nth-child(4) { width: 24%; }
.ov-title-cell { padding: .45rem .6rem !important; color: var(--ink); font-family: var(--serif); font-weight: 600; }
.ov-head-cell { padding: .4rem .6rem !important; color: var(--navy); font-weight: 700; background: var(--navy-wash); }
.ov-note-cell { padding: .4rem .6rem !important; color: var(--muted); font-size: .88rem; }
.ov-num-cell .ov-cell { text-align: right; }
.ov-total-row .ov-cell { font-weight: 700; }

.ov-cell {
  display: block;
  width: 100%;
  min-height: 2.2rem;
  padding: .4rem .6rem;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0;
}
.ov-cell:hover { background: var(--navy-wash); }
.ov-cell:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.ov-cell.is-selected { border-color: var(--navy); background: var(--white); }
.ov-cell.is-found { background: #fbf1e4; box-shadow: inset 4px 0 0 #b06c2c; }
.ov-cell.is-revealed { background: #fbf1e4; box-shadow: inset 4px 0 0 #b06c2c; text-decoration: underline dotted #b06c2c; }

@keyframes ov-flash { from { background: #fff2b8; } to { background: transparent; } }
.ov-cell.ov-flash { animation: ov-flash .9s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .ov-cell.ov-flash { animation: none; outline: 2px dashed #b08a00; outline-offset: -4px; }
}

.ov-hint { margin: .5rem 0 1rem; color: var(--muted); font-size: .85rem; }

.ov-judge { margin: 1rem 0 .5rem; }
.ov-judge-question { margin: 0 0 .5rem; color: var(--ink); }

.ov-feedback {
  margin: 1rem 0;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--navy);
  background: var(--navy-wash);
}
.ov-feedback p { margin: 0; }
.ov-feedback p + p { margin-top: .45rem; }
.ov-feedback-title { color: var(--ink); font-weight: 700; }
.ov-feedback.is-warn { border-left-color: #b06c2c; background: #fbf5eb; }

.ov-found-list { margin: 1.25rem 0 .5rem; }
.ov-found-list h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.ov-found-list ul { margin: 0; padding-left: 1.1rem; }
.ov-found-list li + li { margin-top: .5rem; }
.ov-found-list strong { color: var(--ink); }
.ov-lab-actions { margin-top: 1rem; }

.ov-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .ov-lab { padding: 1rem; }
  .ov-controls { grid-template-columns: 1fr; }
  .ov-score { white-space: normal; }
}
