/*
    Testexamen theorie: a reconstruction of the AssessmentQ exam screen from
    the reference screenshots. Sizes on the desktop breakpoint (>= 1024px)
    follow the 1920px screenshots; below that the same screen is adapted for
    phones and tablets (drawer question list, sticky footer, larger touch
    targets). Mobile first: base rules are the phone layout.
*/

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 300 800;
    src: url("../fonts/open-sans-v1.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-display: swap;
    font-weight: 300 800;
    src: url("../fonts/open-sans-italic-v1.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --aq-kop: #006fb7;             /* measured on the reference screenshots */
    --aq-kop-rand: #38b3e8;
    --aq-accent: #34aee4;          /* progress fills, current question, focus */
    --aq-knop: #0b78b0;            /* pill buttons: the reference cyan darkened to 4.8:1 for white text */
    --aq-knop-hover: #09679a;
    --aq-ink: #333333;
    --aq-ink-zacht: #555555;
    --aq-uit: #767676;             /* disabled text, still 4.5:1 on white */
    --aq-grijs: #f2f3f3;           /* sidebar, toolbar, matching panels */
    --aq-grijs-donker: #e6e8e8;
    --aq-lijn: #e3e5e5;
    --aq-stippel: #cfd3d3;
    --aq-wit: #ffffff;
    --aq-oranje: #fdb15c;
    --aq-segment: #e9ecee;
    --aq-segment-aan: #7cc5eb;

    --kop-hoogte: 56px;
    --balk-hoogte: 44px;
    --voet-hoogte: 64px;
    --zijbalk-breedte: 298px;
    --rand-x: 16px;

    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
}

body {
    background: var(--aq-wit);
    color: var(--aq-ink);
    font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    font-variant-numeric: tabular-nums;
}

::selection { background: #bfe4f6; color: var(--aq-ink); }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }

:focus-visible {
    outline: 2px solid var(--aq-kop);
    outline-offset: 2px;
}

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

.icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.125em;
}

.icon-vol { fill: currentColor; stroke: currentColor; }

/* ---------- Boot screen ---------- */

.opstart {
    max-width: 36rem;
    margin: 0 auto;
    padding: 20vh var(--rand-x) 2rem;
    text-align: center;
    color: var(--aq-ink-zacht);
}

.opstart-titel { font-size: 1.35rem; font-weight: 700; color: var(--aq-ink); margin: 0 0 .5rem; }
.opstart-laden { margin-top: 2rem; color: var(--aq-uit); }

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    padding: .75rem 3rem .75rem 1rem;
    background: #fff4d6;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .2);
}
#blazor-error-ui .dismiss { position: absolute; right: .75rem; top: .4rem; border: 0; background: none; font-size: 1.4rem; }

/* ---------- App shell ---------- */

.app {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
    height: 100dvh;
}

/* ---------- Header ---------- */

.kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--kop-hoogte);
    padding: 0 12px 0 var(--rand-x);
    padding-top: env(safe-area-inset-top);
    box-sizing: content-box;
    background: var(--aq-kop);
    border-bottom: 4px solid var(--aq-kop-rand);
    color: var(--aq-wit);
    position: relative;
    z-index: 30;
}

/* The Vlaamse Trainersschool word mark: heavy upright capitals, sized and
   spaced to the 1919px reference (cap heights 14px and 6.5px). */
.woordmerk {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    min-width: 0;
}

.woordmerk-groot {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 15px;
}

.woordmerk-klein {
    margin-top: 4px;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 10px;
}

.gebruiker {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.gebruiker-knop {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    padding: 4px 6px;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--aq-wit);
    text-align: right;
}

.gebruiker-knop:focus-visible { outline-color: var(--aq-wit); }

.gebruiker-naam {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.gebruiker-naam strong {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40vw;
}

.gebruiker-naam span { display: none; font-size: 12.5px; }

.gebruiker-pijl {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--aq-wit);
    color: var(--aq-kop);
    font-size: 13px;
    flex: none;
}
.gebruiker-pijl .icon { stroke-width: 3; }

.menu-achtergrond {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    background: transparent;
}

.menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 41;
    min-width: 210px;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    background: var(--aq-wit);
    color: var(--aq-ink);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18), 0 1px 3px rgba(0, 0, 0, .12);
}

.menu button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    background: none;
    text-align: left;
    font-size: 14px;
}
.menu button:hover, .menu button:focus-visible { background: var(--aq-grijs); outline: none; }

/* ---------- Exam screen ---------- */

.toets {
    display: grid;
    grid-template-rows: var(--balk-hoogte) 1fr;
    min-height: 0;
}

.werkbalk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: var(--rand-x);
    background: var(--aq-grijs);
    border-bottom: 1px solid var(--aq-lijn);
    font-size: 13px;
    white-space: nowrap;
}

.lijst-knop {
    display: grid;
    place-items: center;
    width: var(--balk-hoogte);
    height: 100%;
    border: 0;
    border-right: 1px solid var(--aq-lijn);
    background: var(--aq-grijs-donker);
    color: var(--aq-ink);
    font-size: 17px;
}
.lijst-knop:hover { background: #dcdfdf; }

.voortgang {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.voortgang-balk {
    width: 64px;
    height: 10px;
    border: 1px solid #c9cdcd;
    border-radius: 5px;
    background: var(--aq-wit);
    overflow: hidden;
}

.voortgang-vulling {
    height: 100%;
    background: var(--aq-accent);
    border-radius: 5px;
}

.klok {
    display: flex;
    align-items: center;
    gap: 6px;
}
.klok .icon { font-size: 16px; }
.klok strong { font-weight: 700; }
.klok-item { display: none; }

.toets-lichaam {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
}

/* Question list: a drawer on small screens, a column from 1024px. */
.vraaglijst {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 36;            /* over the header, so its own close button shows */
    width: min(var(--zijbalk-breedte), 85vw);
    display: flex;
    flex-direction: column;
    background: var(--aq-grijs);
    border-right: 1px solid var(--aq-lijn);
    padding-top: env(safe-area-inset-top);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .25s;
}

.toets.lijst-gewisseld .vraaglijst {
    transform: none;
    visibility: visible;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 8px 0 24px rgba(0, 0, 0, .18);
}

.lade-achtergrond {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgba(0, 0, 0, .25);
}
.toets.lijst-gewisseld .lade-achtergrond { display: block; }

.lade-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--balk-hoogte);
    padding-left: 20px;
    border-bottom: 1px solid var(--aq-lijn);
    font-size: 14px;
    font-weight: 700;
}

.lade-sluit {
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    font-size: 18px;
}

.vraaglijst ol {
    position: relative;     /* keeps the visually hidden status text inside the scroller */
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c6caca transparent;
}

.vraaglijst-voet { display: none; }

.vraag-item {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px 0 34px;
    border: 0;
    border-right: 3px solid transparent;
    background: none;
    font-size: 14px;
    text-align: left;
}
.vraag-item:hover { background: var(--aq-grijs-donker); }
.vraag-item:focus-visible { outline-offset: -3px; }

.vraag-item.huidig {
    background: var(--aq-wit);
    border-right-color: var(--aq-accent);
    font-weight: 600;
}

.vraag-ster { margin-left: auto; color: var(--aq-ink); font-size: 13px; }

/* Status circle: empty = not visited, dot = visited, check = answered. */
.status {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: none;
    border: 2px solid #3d3d3d;
    border-radius: 50%;
}
.status-bezocht::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3d3d3d;
}
.status-beantwoord { background: #3d3d3d; color: var(--aq-wit); font-size: 12px; }
.status-beantwoord .icon { stroke-width: 3.5; }

.vraag-paneel {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    min-width: 0;
    min-height: 0;
}

.vraag-kop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 50px;
    padding: 0 8px 0 var(--rand-x);
    border-bottom: 1px solid var(--aq-lijn);
}

.vraag-kop h1 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.vraag-kop h1:focus { outline: none; }

.vraag-acties {
    display: flex;
    align-items: center;
}

.actie {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 4px;
    background: none;
    font-size: 13px;
    font-weight: 600;
}
.actie .icon { font-size: 15px; }
.actie:hover { background: var(--aq-grijs); }
.actie-label { display: none; }
.actie[aria-pressed="true"] { color: var(--aq-knop); }

.vraag-inhoud {
    position: relative;
    overflow-y: auto;
    padding: 20px var(--rand-x) 32px;
    overscroll-behavior: contain;
}

.opdracht p { margin: 0 0 6px; }
.opdracht { margin-bottom: 22px; }

.segmenten {
    display: flex;
    gap: 3px;
    height: 7px;
    padding: 0 0 0 3px;
}
.segment { flex: 1; background: var(--aq-segment); }
.segment.bezocht { background: var(--aq-segment-aan); }

.voet {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-height: var(--voet-hoogte);
    padding: 10px var(--rand-x);
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--aq-lijn);
    background: var(--aq-wit);
}

.knop-tekst {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 600;
}
.knop-tekst:disabled { color: #b3b3b3; }
.knop-tekst .icon { font-size: 16px; }

.knop-pil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 142px;
    min-height: 44px;
    padding: 0 26px;
    border: 2px solid var(--aq-knop);
    border-radius: 999px;
    background: var(--aq-knop);
    color: var(--aq-wit);
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s ease-out, border-color .15s ease-out;
}
.knop-pil:hover:not(:disabled) { background: var(--aq-knop-hover); border-color: var(--aq-knop-hover); }
.knop-pil:disabled { background: var(--aq-wit); border-color: #c8cccc; color: var(--aq-uit); }
.knop-pil .icon { font-size: 16px; }

/* ---------- Question types ---------- */

/* Meerkeuze and meerdere antwoorden */
.opties {
    margin: 0;
    padding: 0;
    border: 0;
}

.optie {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 9px 0;
    cursor: pointer;
}

.optie input {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
}

.optie-teken {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 1px;
    border: 2px solid #3d3d3d;
    border-radius: 50%;
    background: var(--aq-wit);
}

.optie-vak .optie-teken { border-radius: 2px; width: 18px; height: 18px; margin-top: 2px; }

.optie input:checked + .optie-teken::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3d3d3d;
}

.optie-vak input:checked + .optie-teken { background: #3d3d3d; }
.optie-vak input:checked + .optie-teken::after {
    width: 5px;
    height: 10px;
    margin-top: -2px;
    border-radius: 0;
    background: none;
    border: solid var(--aq-wit);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.optie input:focus-visible + .optie-teken {
    outline: 2px solid var(--aq-kop);
    outline-offset: 2px;
}

/* Sleep-in-tekst */
.woordpool {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    min-height: 64px;
    margin-bottom: 20px;
    padding: 14px;
    border: 2px dashed var(--aq-stippel);
    border-radius: 4px;
}

.woord {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 2px 14px 2px 10px;
    border: 1px solid #e0e2e2;
    border-radius: 999px;
    background: #f4f5f5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    touch-action: manipulation;
}
.woord:hover { background: #eceeee; }
.woord[aria-pressed="true"] { border-color: var(--aq-accent); box-shadow: 0 0 0 2px var(--aq-accent); background: #eef8fd; }

/* Drag handle of the reference: two columns of five dots. */
.greep {
    width: 5px;
    height: 13px;
    flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 13' fill='%23808080'%3E%3Ccircle cx='1' cy='1' r='.85'/%3E%3Ccircle cx='4' cy='1' r='.85'/%3E%3Ccircle cx='1' cy='3.75' r='.85'/%3E%3Ccircle cx='4' cy='3.75' r='.85'/%3E%3Ccircle cx='1' cy='6.5' r='.85'/%3E%3Ccircle cx='4' cy='6.5' r='.85'/%3E%3Ccircle cx='1' cy='9.25' r='.85'/%3E%3Ccircle cx='4' cy='9.25' r='.85'/%3E%3Ccircle cx='1' cy='12' r='.85'/%3E%3Ccircle cx='4' cy='12' r='.85'/%3E%3C/svg%3E") no-repeat center / contain;
}

.gat-tekst {
    margin: 0;
    line-height: 2.5;
}

.gat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;               /* keeps the drag handle off the word, as on the pool chips */
    vertical-align: middle;
    min-width: 140px;
    min-height: 36px;
    margin: 2px 4px;
    padding: 0 10px;
    border: 2px dashed #d6d9d9;
    border-radius: 14px;
    background: var(--aq-wit);
    font-size: 14px;
    line-height: 1.3;
    touch-action: manipulation;
}
.gat.gevuld { border-style: solid; border-color: #e0e2e2; background: #f4f5f5; box-shadow: 0 1px 2px rgba(0, 0, 0, .16); }
.gat.ontvanger { border-color: var(--aq-accent); background: #eef8fd; }
.gat.doel { border-color: var(--aq-accent); }

/* Koppelen */
.koppel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 520px;
}

.koppel h2 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
}

.koppel-paneel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 10px;
    list-style: none;
    border-radius: 4px;
    background: var(--aq-grijs);
}

.koppel-kaart {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: var(--aq-wit);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
}

.koppel-sleep {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
    touch-action: manipulation;
}
.koppel-sleep:hover { box-shadow: 0 2px 6px rgba(0, 0, 0, .24); }
.koppel-sleep[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--aq-accent); }
.koppel-sleep.doel { box-shadow: 0 0 0 2px var(--aq-accent), 0 2px 6px rgba(0, 0, 0, .2); }
.koppel-sleep .greep { width: 6px; height: 15px; }

/* Open vraag: rich-text editor */
.rt {
    border: 1px solid #d9dcdc;
    border-radius: 6px;
    overflow: hidden;
}

.rt-balk {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    background: var(--aq-grijs);
    border-bottom: 1px solid var(--aq-lijn);
    overflow-x: auto;
    scrollbar-width: thin;
}

.rt-knop {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border: 0;
    border-radius: 4px;
    background: none;
    color: var(--aq-ink);
    font-size: 17px;
    line-height: 1;
}
.rt-knop:hover { background: var(--aq-grijs-donker); }
.rt-knop[aria-expanded="true"] { background: var(--aq-grijs-donker); }
.rt-knop .icon { font-size: 18px; }
.rt-letter { font-family: "Times New Roman", serif; font-size: 18px; }
.rt-b { font-weight: 700; font-family: inherit; }
.rt-i { font-style: italic; }
.rt-u { text-decoration: underline; text-underline-offset: 3px; }
.rt-s { text-decoration: line-through; }
.rt-aa { display: inline-flex; align-items: baseline; gap: 2px; font-size: 15px; font-weight: 600; }
.rt-aa small { font-size: 11px; }
.rt-aa .icon { font-size: 11px; stroke-width: 3; }
.rt-kleur { display: inline-flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 15px; }
.rt-kleur i { width: 14px; height: 3px; margin-top: 2px; border-radius: 1px; }
.rt-rechts { margin-left: auto; display: flex; gap: 2px; }
.rt-rechts .rt-knop { color: #9a9a9a; }
.rt-rechts .rt-knop:hover { color: var(--aq-ink); }

/* Size and colour choices open as a second toolbar row, so they also work
   while the toolbar itself scrolls sideways on a phone. */
.rt-popup {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
    background: var(--aq-wit);
    border-bottom: 1px solid var(--aq-lijn);
}
.rt-popup-lijst button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--aq-lijn);
    border-radius: 3px;
    background: var(--aq-wit);
}
.rt-popup-lijst button:hover { background: var(--aq-grijs); }
.rt-staal {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
}

.rt-balk-wrap { position: relative; }

.rt-editor {
    position: relative;
    min-height: 120px;
    padding: 12px 16px;
    outline: none;
    font-size: 15px;
    overflow-wrap: anywhere;
}
.rt-editor[data-leeg]::before {
    content: attr(data-placeholder);
    position: absolute;
    color: var(--aq-uit);
    font-family: Arial, sans-serif;
    font-size: 13px;
    pointer-events: none;
}
.rt:focus-within { border-color: #b9c0c0; }
.rt-editor p, .rt-editor div { margin: 0; }
.rt-editor ul, .rt-editor ol { margin: 4px 0; padding-left: 24px; }

/* Invulvelden */
.invulblok { margin-bottom: 30px; }
.invulblok p { margin: 0 0 8px; }
.invulzin { line-height: 2.6; }

.invulveld {
    width: 52px;
    height: 36px;
    margin: 0 5px;
    padding: 0 6px;
    border: 1px solid #cfd3d3;
    border-radius: 5px;
    background: var(--aq-wit);
    font-size: 15px;
    text-align: center;
    vertical-align: middle;
}
.invulveld:focus { border-color: var(--aq-ink); outline: none; box-shadow: 0 0 0 1px var(--aq-ink); }

/* Keuzelijsten */
.keuzelijsten { display: flex; flex-direction: column; gap: 14px; }

.keuzelijst {
    width: 220px;
    max-width: 100%;
    height: 40px;
    padding: 0 34px 0 10px;
    border: 1px solid #b9bebe;
    border-radius: 4px;
    background: var(--aq-wit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23333'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 15px;
    appearance: none;
}
.keuzelijst:focus { border-color: var(--aq-ink); outline: none; box-shadow: 0 0 0 1px var(--aq-ink); }

/* ---------- Dialogs ---------- */

.venster-achtergrond {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .28);
}

.venster {
    position: relative;
    width: min(450px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 28px 24px 30px;
    background: var(--aq-wit);
    border-radius: 3px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .12);
    text-align: center;
    animation: venster-in .22s cubic-bezier(.16, 1, .3, 1);
}

@keyframes venster-in {
    from { opacity: .4; transform: translateY(8px) scale(.98); }
}

.venster-sluit {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    font-size: 18px;
}
.venster-sluit .icon { stroke-width: 2.6; }

.venster-beeld { display: block; width: 230px; height: 170px; margin: 0 auto 18px; }

.venster h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 400;
}

.venster-tekst {
    max-width: 330px;
    margin: 0 auto;
    color: var(--aq-ink-zacht);
    font-size: 13px;
    line-height: 1.65;
}

/* Information dialog (Help): title bar, left-aligned text, button bottom right. */
.venster-info {
    width: min(512px, 100%);
    padding: 0;
    border-radius: 6px;
    text-align: left;
}
.venster-info h2 {
    margin: 0;
    padding: 14px 64px 12px 22px;
    border-bottom: 1px solid var(--aq-lijn);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
}
.venster-info .venster-sluit { top: 7px; right: 10px; color: #111; }
.venster-info .venster-sluit .icon { stroke-width: 3.2; }
.venster-info .venster-tekst {
    max-width: none;
    margin: 0;
    padding: 22px 22px 4px;
    color: var(--aq-ink);
    font-size: 15px;
    line-height: 1.65;
}
.venster-info .venster-tekst p { margin: 0 0 20px; }
.venster-info .venster-tekst p:last-child { margin-bottom: 18px; }
.venster-info .venster-knoppen {
    justify-content: flex-end;
    margin-top: 0;
    padding: 0 22px 22px;
}
.venster-info .knop-pil { min-width: 98px; }

.venster-knoppen {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}
.venster-knoppen .knop-pil { min-width: 90px; }

/* ---------- Start and submitted screens ---------- */

.scherm {
    overflow-y: auto;
    padding: 32px var(--rand-x) 48px;
}

.scherm-blok {
    max-width: 640px;
    margin: 0 auto;
}

.scherm h1 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.scherm h1:focus { outline: none; }

.scherm-feiten {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 20px;
    margin: 0 0 24px;
    padding: 16px 20px;
    background: var(--aq-grijs);
    border-radius: 4px;
    font-size: 14px;
}
.scherm-feiten dt { font-weight: 700; }
.scherm-feiten dd { margin: 0; }

.scherm-veld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; font-size: 14px; font-weight: 600; }
.scherm-veld input {
    height: 44px;
    max-width: 360px;
    padding: 0 12px;
    border: 1px solid #b9bebe;
    border-radius: 4px;
    font-weight: 400;
    font-size: 15px;
}
.scherm-veld input:focus { border-color: var(--aq-ink); outline: none; box-shadow: 0 0 0 1px var(--aq-ink); }

.scherm-noot {
    margin: 28px 0 0;
    color: var(--aq-ink-zacht);
    font-size: 13px;
}

/* ---------- >= 480px ---------- */

@media (min-width: 480px) {
    .klok-item { display: flex; }
    .voortgang-balk { width: 90px; }
}

/* ---------- >= 640px ---------- */

@media (min-width: 640px) {
    :root {
        --kop-hoogte: 65px;
        --balk-hoogte: 40px;
        --voet-hoogte: 60px;
        --rand-x: 40px;
    }

    .kop { padding-left: 18px; padding-right: 24px; }
    /* Widths and cap positions measured against the 1919px reference:
       TRAINERSSCHOOL 181px, the two small lines 206px and 188px. */
    .woordmerk { margin-bottom: 2px; }
    .woordmerk-groot { font-size: 19.5px; line-height: 19px; }
    .woordmerk-klein { font-size: 9.5px; line-height: 13px; margin-top: 2px; letter-spacing: .3px; }
    .gebruiker-naam strong { font-size: 15px; max-width: 30vw; }
    .gebruiker-naam span { display: block; }

    .werkbalk { gap: 20px; font-size: 13px; }
    .voortgang-balk { width: 120px; }
    .actie-label { display: inline; }
    .vraag-acties { gap: 18px; }
    .vraag-kop { padding-right: 30px; }
    .actie:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }

    body { font-size: 14px; }
    .vraag-inhoud { padding-top: 26px; }
    .opdracht { margin-bottom: 30px; }
    .optie { padding: 10px 0; }
    .woordpool { padding: 14px 16px; }
    .gat { min-width: 254px; }
    .woord, .gat { min-height: 32px; }
    .koppel { grid-template-columns: 230px 250px; gap: 20px; }
    .scherm { padding-top: 56px; }
    .venster:not(.venster-info) { padding: 30px 30px 32px; }
}

/* ---------- >= 1024px: the desktop screen of the screenshots ---------- */

@media (min-width: 1024px) {
    .toets-lichaam { grid-template-columns: var(--zijbalk-breedte) 1fr; }
    .toets.lijst-gewisseld .toets-lichaam { grid-template-columns: 1fr; }

    .vraaglijst {
        position: static;
        width: auto;
        transform: none;
        visibility: visible;
        transition: none;
        padding-top: 0;
        min-height: 0;
    }
    .toets.lijst-gewisseld .vraaglijst { display: none; }
    .toets.lijst-gewisseld .lade-achtergrond { display: none; }
    .lade-kop { display: none; }

    .vraaglijst-voet {
        display: block;
        height: var(--voet-hoogte);
        flex: none;
        border-top: 1px solid var(--aq-lijn);
    }

    .vraag-item { min-height: 45px; font-size: 13px; padding-left: 36px; }
    .vraag-item.huidig { font-weight: 600; }
    .status { width: 20px; height: 20px; }

    .segmenten { padding-left: 4px; gap: 4px; }

    /* The reference answer box starts one line high and grows with the text. */
    .rt-editor { min-height: 52px; }
}

/* Touch screens get the full 44px target on every answer control. */
@media (pointer: coarse) {
    .woord, .gat { min-height: 44px; }
    .optie { min-height: 44px; align-items: center; }
    .optie-teken { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

a.knop-pil { text-decoration: none; }
