/* Study Portal: UM Staalblauw on Gebroken wit only (brandbook, August 2026). */
:root {
  --blue: #000831;
  --white: #FCFCFC;
  --muted: rgba(0, 8, 49, 0.72);
  --faint: rgba(0, 8, 49, 0.55);
  --line: rgba(0, 8, 49, 0.22);
  --on-blue-muted: rgba(252, 252, 252, 0.85);
  --r-block: 32px;
  --r-inner: 24px;
  --r-control: 16px;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--blue); }
body { font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 19px; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Layout */
.page { max-width: 460px; margin: 0 auto; padding: 32px 16px 40px; display: flex; flex-direction: column; gap: 16px; min-height: 100vh; }
.page.wide { max-width: 1180px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.footer { margin-top: auto; text-align: center; }

/* Ticket */
.ticket { border: 2px solid var(--blue); border-radius: var(--r-block); overflow: hidden; background: var(--white); }
.ticket-head { background: var(--blue); color: var(--white); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.ticket-head .label { color: var(--on-blue-muted); }
.ticket-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.perforation { border-top: 2px dashed var(--blue); }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ticket-split { display: flex; }
.ticket-split .main { flex: 1; padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ticket-split .stub { width: 92px; background: var(--blue); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-left: 2px dashed var(--blue); }
.stub .big { font-family: var(--mono); font-size: 26px; font-weight: 700; }
.strip { background: var(--blue); color: var(--white); padding: 16px 24px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.strip .k { font-size: 13px; font-weight: 700; color: var(--on-blue-muted); }
.strip .v { font-family: var(--mono); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.strip .wide { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; color: var(--on-blue-muted); }
.strip .span { grid-column: 1 / -1; }
.strip .k.span { margin-top: 10px; }
.strip .v.text { font-family: inherit; font-size: 15px; }
.stamp { align-self: flex-start; padding: 4px 12px; border: 3px solid var(--blue); border-radius: 12px; transform: rotate(-4deg); font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: 0.1em; }

/* Forms */
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], textarea, select {
  font: inherit; color: var(--blue); background: var(--white); border: 2px solid var(--blue); border-radius: var(--r-control);
  min-height: 48px; padding: 10px 14px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 13px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
.prefixed { display: flex; align-items: stretch; border: 2px solid var(--blue); border-radius: var(--r-control); overflow: hidden; height: 52px; }
.prefixed span { background: var(--blue); color: var(--white); font-family: var(--mono); font-size: 18px; font-weight: 700; padding: 0 14px; display: flex; align-items: center; }
.prefixed input { border: 0; border-radius: 0; min-height: 0; height: 100%; font-family: var(--mono); font-size: 18px; letter-spacing: 0.06em; }
.prefixed:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.prefixed input:focus-visible { outline: none; }
.hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.error { border: 2px solid var(--blue); border-radius: var(--r-control); padding: 10px 14px; font-weight: 600; }
.error::before { content: '! '; font-weight: 800; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
/* A row of text links, separated by space instead of a symbol */
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
/* Course checkboxes: one large tappable row per course */
.choices { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.choices legend .hint { display: block; margin-top: 4px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--r-control); font-weight: 600; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); }
.choice input { width: 22px; height: 22px; accent-color: var(--blue); flex: none; margin: 0; }
.toggle input { width: 22px; height: 22px; accent-color: var(--blue); }

/* Buttons */
button, .btn {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: var(--r-control); min-height: 48px; padding: 0 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  background: var(--blue); color: var(--white); border: 2px solid var(--blue);
}
button.secondary, .btn.secondary { background: var(--white); color: var(--blue); }
button.link { background: none; border: 0; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; padding: 0; min-height: 0; font-weight: 600; }
button.small, .btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.full { width: 100%; }

/* Study rows */
.study { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border: 2px solid var(--blue); border-radius: var(--r-inner); min-height: 64px; }
.study.done, .study.off { border-color: var(--line); }
.study .pos { font-family: var(--mono); font-weight: 700; width: 14px; }
.study.done .pos, .study.done .name, .study.off .pos, .study.off .name { color: var(--muted); }
.study .name { flex: 1; font-weight: 700; min-width: 0; }
.study.notice { flex-wrap: wrap; }
.study.notice p { flex-basis: 100%; font-size: 13px; line-height: 19px; padding-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.outline { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.chip.dashed { background: var(--white); color: var(--blue); border: 2px dashed var(--blue); }
.box { border: 2px solid var(--blue); border-radius: var(--r-block); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.box.dark { background: var(--blue); color: var(--white); }
.box.dark a, .box.dark .muted { color: var(--on-blue-muted); }
.box.dashed { border-style: dashed; border-color: var(--line); border-radius: var(--r-control); padding: 12px 14px; }
.inner { border: 2px solid var(--line); border-radius: var(--r-inner); padding: 14px 16px; }

/* Admin */
.topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.topline .brand { font-weight: 800; letter-spacing: 0.04em; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cols > .side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 18px; }
/* Inputs sit at the bottom of their cell, so fields with and without a hint line up */
.grid-fields > label.field > :is(input, select) { margin-top: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 8px; border-bottom: 2px solid var(--blue); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-family: var(--mono); }
.copyline { display: flex; gap: 8px; align-items: center; }
.copyline code { flex: 1; min-width: 0; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
ol.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 16px; }
ol.steps li { padding-left: 4px; }
ol.steps li > * + * { margin-top: 8px; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; counter-reset: flow; }
.flow > div { border: 2px solid var(--blue); border-radius: var(--r-inner); padding: 14px 16px; font-size: 14px; line-height: 20px; position: relative; }
.flow > div::before { counter-increment: flow; content: counter(flow); display: flex; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 800; font-size: 13px; align-items: center; justify-content: center; margin-bottom: 8px; }
.flow > div.key { background: var(--blue); color: var(--white); }
.flow > div.key::before { background: var(--white); color: var(--blue); }
/* Qualtrics guide: a full-width box that opens on click; each step is text beside its screenshot */
details.guide { display: block; padding-top: 18px; padding-bottom: 18px; }
details.guide > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary::after { content: 'Show'; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
details.guide[open] > summary::after { content: 'Hide'; }
.guide-body { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.guide-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.guide-step h3 { margin: 0; font-size: 17px; }
@media (max-width: 760px) { .guide-step { grid-template-columns: minmax(0, 1fr); } }
.shot { margin: 0; border: 2px solid var(--line); border-radius: var(--r-inner); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { display: none; }
.shot.missing { border-style: dashed; min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.shot.missing img { display: none; }
.shot.missing figcaption { display: block; text-align: center; color: var(--muted); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--blue); color: var(--white); padding: 12px 20px; border-radius: var(--r-control); font-weight: 700; z-index: 10; max-width: calc(100% - 32px); }
