/* toitoi — plain CSS, no build step. Colours are Milûk's house palette. */

:root {
  --blue: #303d8e;
  --blue-dark: #252f70;
  --orange: #f49d3d;
  --yellow: #fffbdb;
  --teal: #38a3a5;
  --mint: #c0ede6;

  --bg: #fffdf0;
  --card: #ffffff;
  --text: #1f2440;
  --muted: #5d6280;
  --line: #e3e0c8;
  --danger: #b3261e;
  --ok-bg: #e2f6f2;
  --ok-line: var(--teal);
  --bad-bg: #fdeceb;

  --radius: 10px;
  --tap: 48px; /* minimum size of anything you tap */
}

* { box-sizing: border-box; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--blue); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ header */

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem max(1rem, env(safe-area-inset-right)) 0.5rem max(1rem, env(safe-area-inset-left));
  padding-top: max(0.5rem, env(safe-area-inset-top));
  background: var(--blue);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.brand img { border-radius: 50%; background: var(--yellow); }

/* On the sales pages inside the site: the way back to it, first in the bar. */
.top .back {
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.top .back:hover { background: var(--blue-dark); }
.top .back ~ .brand { margin-left: auto; }

.top nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.top nav a, .top nav button.link {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font: inherit;
  min-height: 0;
}
.top nav a:hover, .top nav button.link:hover { background: var(--blue-dark); }
.top nav form { margin: 0; }
/* A group of pages: a name that opens a list below it. */
.top nav details { position: relative; margin: 0; }
.top nav summary {
  color: #fff;
  font-weight: inherit;
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  user-select: none;
}
.top nav summary::-webkit-details-marker { display: none; }
.top nav summary::after { content: " ▾"; opacity: 0.8; }
.top nav summary:hover, .top nav details[open] summary { background: var(--blue-dark); }
.top nav .group {
  position: absolute;
  left: 0;
  top: calc(100% + 0.25rem);
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 11rem;
  padding: 0.25rem;
  background: var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.top nav .group.right { left: auto; right: 0; }
.top nav .group a, .top nav .group button.link { display: block; width: 100%; text-align: left; }
.top .who { margin-left: auto; opacity: 0.9; }

/* -------------------------------------------------------------- main */

main {
  max-width: 62rem;
  margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left));
}
.narrow { max-width: 32rem; margin: 0 auto; }

h1 { font-size: 1.6rem; margin: 0.75rem 0; color: var(--blue); }
h2 { font-size: 1.15rem; margin: 0 0 0.5rem; color: var(--blue); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.crumb { margin: 0.25rem 0 0; }
.crumb a { text-decoration: none; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.nowrap { white-space: nowrap; }
.warn { color: #9a5b00; font-weight: 600; }

.tag {
  display: inline-block;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--mint);
  color: #17494a;
  font-size: 0.8rem;
  white-space: nowrap;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 5px solid;
  margin: 1rem 0;
}
.flash.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.flash.fout { background: var(--bad-bg); border-color: var(--danger); }

/* ------------------------------------------------------------- forms */

.stack { display: flex; flex-direction: column; gap: 0.4rem; }
.stack > label { font-weight: 600; margin-top: 0.5rem; }
.stack > label .muted { font-weight: 400; }
.stack > button { align-self: flex-start; margin-top: 0.75rem; }

input:not([type="checkbox"]), textarea {
  font: inherit;
  color: inherit;
  width: 100%;
  min-height: var(--tap);
  padding: 0.5rem 0.75rem;
  border: 1px solid #b9b697;
  border-radius: var(--radius);
  background: #fff;
}
textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0.75rem 0 0; padding: 0.5rem 0.75rem; }
legend { font-weight: 600; padding: 0 0.25rem; }

label.check {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-weight: 400;
  padding: 0.4rem 0;
}
label.check input { width: 1.2rem; height: 1.2rem; flex: none; accent-color: var(--blue); transform: translateY(0.15rem); }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--blue-dark); }
button.danger { background: var(--danger); }
button.small { min-height: 2.25rem; padding: 0.25rem 0.75rem; font-size: 0.9rem; }
button.link { background: none; font-weight: 400; cursor: pointer; }

details { margin-top: 0.75rem; }
summary { cursor: pointer; color: var(--blue); padding: 0.5rem 0; }

/* ------------------------------------------------------------ tables */

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.inactive td { color: var(--muted); }
td form { margin: 0; }

/* -------------------------------------------------------- enrollment */

.steps { padding-left: 1.25rem; }
.steps li { margin: 0.4rem 0; }

input.code {
  font-size: 2rem;
  letter-spacing: 0.15em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.enroll { text-align: center; max-width: 32rem; margin: 0 auto; }
.bigcode {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  margin: 0.5rem 0;
}
.qr svg { width: min(18rem, 80vw); height: auto; border-radius: var(--radius); }

/* ------------------------------------------------------------ roster */

h2.day {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
h2.day::first-letter { text-transform: uppercase; }

.activity { margin-top: 0.6rem; }
.activity header { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.activity .times { font-variant-numeric: tabular-nums; font-weight: 600; }
.activity .title { margin: 0.4rem 0 0; font-weight: 600; }
.activity p.small { margin: 0.1rem 0 0; }

.tag.kind { background: var(--blue); color: #fff; }
.tag.open { background: var(--orange); color: #3a2400; }
.tag.who { background: var(--ok-bg); color: #17494a; border: 1px solid var(--teal); }

ul.shifts, ul.plain { list-style: none; margin: 0.75rem 0 0; padding: 0; }
ul.plain li { padding: 0.3rem 0; }
ul.shifts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  margin-top: 0.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
ul.shifts li.mine { border-color: var(--teal); background: var(--ok-bg); }
ul.shifts .what { flex: 1; min-width: 0; }
ul.shifts form { margin: 0; flex: none; }

button.quiet, .button.quiet { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
button.quiet:hover, .button.quiet:hover { background: var(--mint); }

.bad { color: var(--danger); font-weight: 600; }
.url { word-break: break-all; }
td.actions { white-space: nowrap; }
td.actions form { display: inline-block; }
td.actions details { white-space: normal; max-width: 18rem; }

form.row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
form.row input { flex: 1 1 12rem; }
code { background: var(--yellow); padding: 0 0.25rem; border-radius: 4px; }

/* ---------------------------------------------------------- building */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.6rem; margin-top: 0.6rem; }
.device { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; border-left: 6px solid var(--line); }
.device.on { border-left-color: var(--orange); }
.device.busy { border-left-color: var(--teal); }
.device.alert { border-left-color: var(--danger); background: var(--bad-bg); }
.device.gone { opacity: 0.65; }
.device .head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.device .state { color: var(--muted); white-space: nowrap; }
.device.on .state { color: #9a5b00; font-weight: 600; }
.device.alert .state { color: var(--danger); font-weight: 700; }
.device form { margin: 0; display: flex; gap: 0.5rem; }
.device form button { flex: 1; }
.device form input[type="password"] { flex: 0 1 7rem; }
.device input[type="range"] { width: 100%; min-height: var(--tap); padding: 0; border: 0; background: none; accent-color: var(--orange); }

/* ----------------------------------------------------- notifications */

table.choices th:not(:first-child), table.choices td:not(:first-child) { text-align: center; width: 4.5rem; padding-left: 0.25rem; padding-right: 0.25rem; }
table.choices td { vertical-align: middle; }
table.choices input { width: 1.5rem; height: 1.5rem; accent-color: var(--blue); }
table.choices + button, .scroll + button { margin-top: 0.75rem; }

/* ---- Programme, orders and tickets ---- */
.prose { white-space: pre-line; }
input.quantity { max-width: 6rem; font-size: 1.2rem; text-align: center; }
table.lines { width: 100%; }
td.amount, th.amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; border-top: 2px solid currentColor; }
.tag.bad { background: #b3261e; color: #fff; }
.tickets { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); margin: 1rem 0; }
.ticket { display: flex; gap: 1rem; align-items: center; background: #fff; color: #111; border: 2px dashed #888; border-radius: 0.6rem; padding: 0.75rem; break-inside: avoid; }
.ticket .qr svg { width: 9rem; height: 9rem; display: block; border-radius: 0; }
.ticket.used, .ticket.void { opacity: 0.55; }
.ticketcode { font-family: ui-monospace, monospace; font-size: 1.05rem; letter-spacing: 0.04em; margin-top: 0.3rem; white-space: nowrap; }
/* On a phone the code gets the width: a larger code scans from further away. */
@media (max-width: 30rem) { .ticket { flex-direction: column; text-align: center; gap: 0.6rem; } .ticket .qr svg { width: 14rem; height: 14rem; } }

/* ---- The till ---- */
.tillshows { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }
a.tillshow { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; border-radius: 0.6rem; border: 2px solid var(--line, #ccc); text-decoration: none; color: inherit; background: var(--card, #fff); }
a.tillshow.today { border-color: #303d8e; }
a.tillshow.off { opacity: 0.55; }
a.tillshow strong { font-size: 1.2rem; }
form.sale { max-width: 34rem; }
.tillrow { display: grid; grid-template-columns: minmax(0, 1fr) 3.6rem 5rem 3.6rem; gap: 0.5rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--line, #ddd); }
.tillrow label { font-size: 1.15rem; font-weight: 600; }
.tillrow label .muted { display: block; font-weight: 400; }
.tillrow input.quantity { width: 100%; max-width: none; font-size: 1.5rem; padding: 0.4rem 0.2rem; }
button.step { font-size: 1.8rem; line-height: 1; padding: 0.5rem 0; min-height: 3.4rem; }
.tilltotal { font-size: 1.6rem; display: flex; justify-content: space-between; margin: 1rem 0; }
.paybuttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.paybuttons button { font-size: 1.4rem; min-height: 4.2rem; }
.scanresult { padding: 1.2rem; border-radius: 0.6rem; margin: 0 0 1rem; color: #fff; font-size: 1.1rem; }
.scanresult strong { display: block; font-size: 2rem; }
.scanresult.ok { background: #1b7f3b; }
.scanresult.used, .scanresult.void, .scanresult.unknown { background: #b3261e; }
.scanresult.other { background: #a05a00; }
.scanresult form { margin-top: 0.75rem; }
.scanresult button { background: #fff; color: #111; }

.printonly { display: none; }
/* On paper only what gets someone in: what, when, the tickets. */
@media print {
  header.top, .noprint, .crumb, .flash { display: none !important; }
  .printonly { display: inline; }
  body { background: #fff; color: #000; }
  main { padding: 0; }
  .tickets { grid-template-columns: 1fr 1fr; }
  .ticket { flex-direction: row; text-align: left; border-color: #000; }
  .ticket .qr svg { width: 4.5cm; height: 4.5cm; }
  .ticket.used, .ticket.void { opacity: 1; }
}
}

/* ---- The bar ---- */
select { font: inherit; padding: 0.55rem 0.6rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--card); color: var(--text); max-width: 100%; }
form.sale.wide { max-width: 72rem; }
.drinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr)); column-gap: 2rem; }
form.period { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 1rem; }
form.period input[type="date"] { width: auto; }

/* ---- Voucher and reservations at the till ---- */
.bon { display: grid; grid-template-columns: 1fr 8rem; gap: 0.5rem; align-items: center; margin: 0 0 1rem; }
.bon input { text-align: right; }
td.actions form.row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
td.actions form.row input { width: 8.5rem; }

/* Posters: on a show's page, small with a title in the admin, tiny in the programme. */
img.poster { display: block; max-width: 100%; width: 16rem; height: auto; border-radius: var(--radius); margin: 0 0 1rem; }
img.poster.small { width: 6rem; float: right; margin: 0 0 0.5rem 0.75rem; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.15rem 0.75rem; margin: 0 0 1rem; font-size: 0.95rem; }
dl.facts dt { color: var(--muted, #666); }
dl.facts dd { margin: 0; }

p.row { display: flex; gap: 0.5rem; margin: 0.35rem 0; }
p.row input { flex: 1 1 8rem; }

/* ---- Film returns ---- */
table.returns { font-size: 0.9rem; }
table.returns th, table.returns td { padding: 0.3rem 0.4rem; text-align: right; white-space: nowrap; }
table.returns th:nth-child(-n+2), table.returns td:nth-child(-n+2) { text-align: left; }
table.returns thead tr:first-child th { text-align: center; }
table.returns tfoot th { border-top: 2px solid var(--line); }
section.returns form.period input { width: 12rem; }
@media print {
  section.returns { break-inside: avoid; border: 0; padding: 0; }
  table.returns { font-size: 8pt; }
}

/* ---- Films found at Filmdepot ---- */
table.found td { vertical-align: middle; }
table.found form { margin: 0; }
table.found form.link-to { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
table.found form.link-to select { width: auto; max-width: 14rem; }
table.films img { display: block; width: 2.5rem; border-radius: 3px; }

/* ---- A handheld at the door or the bar: a narrow screen ---- */
.bar > span { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bar form.inline { display: inline; margin: 0; }
.bar + .tillshows { margin-top: 0.75rem; }
@media (max-width: 30rem) {
  /* The header in one line: the logo without the name, the menu beside it. */
  .top { gap: 0.25rem; padding-top: max(0.25rem, env(safe-area-inset-top)); padding-bottom: 0.25rem; }
  .brand { font-size: 0; gap: 0; }
  .top nav { flex: 1 1 0; min-width: 0; margin-left: 0; gap: 0; }
  .brand img { width: 30px; height: 30px; }
  .top nav a, .top nav button.link, .top nav summary { padding: 0.4rem 0.5rem; }
  main { padding-top: 0.5rem; }
  h1 { font-size: 1.35rem; margin: 0.4rem 0; }
  form.sale { padding: 0.5rem 0.75rem; }
  .tillrow { grid-template-columns: minmax(0, 1fr) 3.2rem 3.4rem 3.2rem; gap: 0.35rem; padding: 0.35rem 0; }
  .tillrow label { font-size: 1.05rem; overflow-wrap: anywhere; }
  .tillrow input.quantity { font-size: 1.3rem; }
  button.step { min-height: 3rem; }
  /* Total and pay buttons stay at the bottom of the screen while the list scrolls. */
  .payarea { position: sticky; bottom: 0; z-index: 5; margin: 0 -0.75rem; padding: 0.5rem 0.75rem max(0.5rem, env(safe-area-inset-bottom)); background: var(--card, #fff); border-top: 2px solid var(--line, #ccc); }
  .payarea .tilltotal { font-size: 1.4rem; margin: 0 0 0.4rem; }
  .payarea .paybuttons button { min-height: 3.4rem; }
  .bon { grid-template-columns: minmax(0, 1fr) 6.5rem; margin: 0.75rem 0; }
}

/* ---- Paying by card on a terminal ---- */
label.pick { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; padding: 0.5rem 0; }
label.pick input { width: 1.4rem; height: 1.4rem; flex: none; }
.paybuttons form { margin: 0; display: grid; }
p.pinto { margin: 0.5rem 0 0; }

/* On the scan page: how many are in, per show that is on about now. */
p.doorcount { margin: 0.25rem 0; }

/* ---- Scanning from any page of the till ---- */
/* The field that takes a scan when nothing else has the focus: there, but
   out of sight. */
.scancatch {
  position: fixed; top: 0; left: 0; width: 1px; height: 1px;
  opacity: 0; border: 0; padding: 0; pointer-events: none;
}
/* The outcome of a scan, over whatever page is open. */
.scanpop {
  position: fixed; inset: 0; z-index: 50;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem 0.75rem;
  background: rgb(0 0 0 / 0.45);
  overflow-y: auto;
}
.scanpop-box {
  max-width: 34rem; margin: 0 auto; padding: 0.75rem;
  background: #fff; border-radius: 0.8rem;
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 0.35);
}
.scanpop-box .scanresult { margin-bottom: 0.75rem; }
.scanpop-box > button { width: 100%; margin-top: 0.5rem; }

/* ------------------------------------------- paying in cash at the till */
.cashpop {
  display: none; position: fixed; inset: 0; z-index: 40;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem 0.75rem;
  background: rgb(0 0 0 / 0.45);
  overflow-y: auto; text-align: left; white-space: normal;
}
.cashpop.open { display: block; }
.cashpop-box {
  max-width: 26rem; margin: 0 auto; padding: 1rem;
  background: #fff; color: #111; border-radius: 0.8rem;
  box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 0.35);
}
.cashpop-box h2 { margin: 0 0 0.5rem; }
.cashpop-box label { display: block; margin-top: 0.75rem; }
.cashpop-box input { width: 100%; font-size: 1.4rem; }
.cashline { display: flex; justify-content: space-between; align-items: baseline; margin: 0.25rem 0; font-size: 1.1rem; }
.cashline strong { font-size: 1.6rem; }
.cashline.back { margin-top: 0.9rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.cashquick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.cashquick button { flex: 1 1 auto; }
.cashpop-box .paybuttons { margin-top: 1rem; }
.cashpop-box .paybuttons button { font-size: 1.15rem; min-height: 3.6rem; }
.cashpop-box .paybuttons .cashcancel { grid-column: 1 / -1; }
.cashpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-top: 0.9rem; }
.cashpad button { font-size: 1.5rem; min-height: 3.4rem; }
/* On the till PC there is room beside the amounts: the keys go there, so
   the window is no taller than the screen. */
@media (min-width: 52rem) {
  .cashpop-box.padded {
    max-width: 50rem;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.25rem;
    align-items: start;
  }
  .cashpop-box.padded h2, .cashpop-box.padded .paybuttons { grid-column: 1 / -1; }
  .cashpop-box.padded .cashpad { margin-top: 0; height: 100%; grid-auto-rows: 1fr; }
  .cashpop-box.padded .paybuttons { grid-template-columns: repeat(3, 1fr); }
  .cashpop-box.padded .paybuttons .cashcancel { grid-column: auto; }
}
/* What comes after a sale: the next customer, or a receipt first. */
.after { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1rem 0; }
.after form { margin: 0; }
.flash.sold { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.flash.sold form { margin: 0; }

/* -------------------------------------- the sales pages under miluk.nl */
/* A head and a foot that look like the website's. They are toitoi's own:
   nothing of the website runs on these pages. */
body.onsite { background: #fff; display: flex; flex-direction: column; font-family: Arial, Helvetica, sans-serif; }
/* The same measures as the site: its content is 1170 wide in a container of
   1200, its heading 40 points and 20 below the banner. */
body.onsite main { flex: 1; width: 100%; max-width: 1200px; padding: 0 15px 3rem; }
body.onsite h1 { font-size: 40px; font-weight: 700; line-height: 1.2; margin: 20px 0 0.5rem; color: #303d83; }
/* The banner of the site: 75 high, the logo 122 by 40 at 61 from the left
   and 25 from the top. */
.sitehead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  min-height: 75px; padding: 0 61px; background: var(--orange); font-family: Arial, Helvetica, sans-serif;
}
.sitehead-logo { display: block; margin-top: 25px; flex: none; }
.sitehead-logo img { display: block; width: 122px; height: 40px; }
.sitehead nav { display: flex; align-items: center; gap: 1.6rem; min-height: 75px; overflow-x: auto; white-space: nowrap; }
.sitehead nav a { color: var(--blue); font-size: 15px; font-weight: 600; text-decoration: none; }
.sitehead nav a:hover, .sitehead nav a.here { color: #fff; }
/* On a phone the site's banner is 86 high and its logo 94 by 31. */
@media (max-width: 767px) {
  .sitehead { min-height: 86px; padding: 0 16px 0 62px; gap: 1rem; }
  .sitehead-logo img { width: 94px; height: 31px; }
  .sitehead nav { min-height: 86px; gap: 1.1rem; }
  body.onsite h1 { margin-top: 21px; }
}
.sitefoot { background: var(--blue); color: #fff; margin-top: 3rem; padding: 2rem max(1.25rem, env(safe-area-inset-right)) 2.5rem max(1.25rem, env(safe-area-inset-left)); line-height: 1.7; }
.sitefoot-in { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.sitefoot strong { font-size: 1.15rem; }
.sitefoot a { color: #fff; opacity: 0.85; text-decoration: none; }
.sitefoot a:hover { opacity: 1; text-decoration: underline; }
@media print { .sitehead, .sitefoot { display: none; } }

/* The credit inside the checkout form. */
fieldset.credit { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.6rem 0.9rem 0.9rem; margin: 0.5rem 0; display: grid; gap: 0.4rem; justify-items: start; }
fieldset.credit legend { font-weight: 600; padding: 0 0.3rem; }
fieldset.credit input { width: 100%; }
fieldset.credit p { margin: 0; }

/* Kijkwijzer's pictograms, drawn with Kijkwijzer's own font as its manual
   says: black on a white ground with a white rim, the rims overlapping. The
   ground is the same number of full circles (the letter o) underneath. */
@font-face { font-family: "Kijkwijzer"; src: url(kijkwijzer-2020.woff2) format("woff2"); font-display: block; }
.kw { position: relative; display: inline-block; font-family: "Kijkwijzer"; font-size: 2rem; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: 0; font-kerning: normal; white-space: nowrap; vertical-align: middle; user-select: none; }
.kw-ground { color: #fff; }
.kw-marks { position: absolute; left: 0; top: 0; color: #000; }
.kijkwijzer { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
/* The site's cards start a little lower under its heading. */
body.onsite .toitoi-agenda { margin-top: 43px; }

/* ------------------------------------- choosing who you are on the till PC */
.top .who { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--tap); padding: 0.3rem 0.9rem; border-radius: 99px; background: #fff; color: var(--blue); font-weight: 700; text-decoration: none; }
.top .who:hover { background: var(--yellow); }
.narrow.wide { max-width: 52rem; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.people form { margin: 0; }
button.person { width: 100%; min-height: 6.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; background: var(--card); color: var(--blue); border: 2px solid var(--line); border-radius: var(--radius); font-size: 1.1rem; font-weight: 700; }
button.person.current { border-color: var(--teal); background: var(--ok-bg); }
button.person small { font-size: 0.75rem; font-weight: 400; color: var(--muted); }
button.person:disabled { opacity: 0.5; }
.pinpad { display: grid; gap: 0.6rem; max-width: 18rem; }
.pinpad input { font-size: 1.6rem; text-align: center; letter-spacing: 0.4em; }
.pinpad .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.pinpad .keys button { min-height: 4rem; font-size: 1.5rem; }
