/* Mobile-first. Logo palette: moss green, cream, dark navy, beer amber. */
:root { --moss: #55703a; --cream: #f7f0dc; --navy: #1e2a45; --amber: #e3a32b; --r: 14px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--navy); background: var(--cream); }
a { color: var(--moss); }
h1, h2, h3 { line-height: 1.2; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: .6rem 1rem; background: var(--cream); border-bottom: 4px solid var(--moss); }
.brand img { height: 80px; display: block; }
.langs { margin-left: auto; display: flex; align-items: center; gap: .25rem; color: var(--navy); }
.langs button, #nav button { font: inherit; background: none; border: 0; padding: .2rem; color: var(--navy); cursor: pointer; line-height: 1.2; }
.langs button.on { color: var(--moss); font-weight: 800; text-decoration: underline; }
.menu { font: inherit; font-size: 1.6rem; line-height: 1; background: none; border: 0; padding: .3rem .5rem; color: var(--navy); cursor: pointer; }
#nav { display: none; flex-direction: column; align-items: flex-start; gap: .2rem 1rem; width: 100%; }
header.open #nav { display: flex; }
#nav a, #nav button { color: var(--navy); font-weight: 700; text-decoration: none; padding: .5rem 0; line-height: 1.2; }
#flash:empty { display: none; }
#flash { max-width: 60rem; margin: .8rem auto 0; padding: .6rem 1rem; background: var(--amber); border-radius: var(--r); font-weight: 600; }
main { max-width: 60rem; margin: 0 auto; padding: 1rem; }
.hero { display: grid; gap: 1rem; align-items: center; padding: 1rem; background: var(--moss); color: var(--cream); border-radius: var(--r); }
.hero h1 { margin: 0; }
.hero img { width: 100%; max-height: 45vh; object-fit: contain; }
.tagline { color: var(--cream); font-weight: 700; font-style: italic; }
.btn { display: inline-block; padding: .7rem 1.3rem; border: 0; border-radius: 999px; background: var(--amber); color: var(--navy); font-weight: 800; text-decoration: none; }
.btn:disabled { opacity: .5; }
.cards { display: grid; gap: 1rem; }
.card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--r); color: inherit; text-decoration: none; box-shadow: 0 2px 8px #1e2a4522; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.card > div { padding: .8rem 1rem; }
.badge { display: inline-block; padding: .1rem .6rem; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: .8rem; font-weight: 700; }
.badge.public { background: var(--moss); }
.meta { color: var(--moss); font-weight: 700; }
.banner { width: 100%; max-height: 40vh; object-fit: contain; }
.desc { white-space: pre-line; }
.menu { padding: 0; list-style: none; }
.menu li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px dashed var(--moss); }
form { display: grid; gap: .8rem; padding: 1rem; background: #fff; border-radius: var(--r); }
label { display: grid; gap: .2rem; font-weight: 600; }
/* Every checkbox / radio sits left of its text (low specificity: .allergens label and label.check still refine it). */
label:where(:has(> input[type=checkbox], > input[type=radio])) { display: inline-flex; align-items: center; gap: .4rem; }
/* Every plain button is an outline pill (moss green), destructive ones red; .btn (amber) stays the primary style. :where
   keeps it weaker than the header's own button rules (.langs, #nav, .menu). */
:where(button:not(.btn)) { padding: .4rem .9rem; border: 1px solid var(--moss); border-radius: 999px; background: none; color: var(--moss); font-weight: 700; }
:where(button:not(.btn):hover) { background: var(--moss); color: #fff; }
:where(button.ghost, button[data-act=cancelReg], button[data-act=deleteEvent], button[data-act=cancelEvent], button[data-act=removeMember],
  button[data-act=cancelMine], button[data-act=cancelBooking], button[data-act=eraseAllergy]) { border-color: #a3361f; color: #a3361f; }
:where(button.ghost, button[data-act=cancelReg], button[data-act=deleteEvent], button[data-act=cancelEvent], button[data-act=removeMember],
  button[data-act=cancelMine], button[data-act=cancelBooking], button[data-act=eraseAllergy]):where(:hover) { background: #a3361f; color: #fff; }
input, select, textarea { width: 100%; padding: .55rem; border: 1px solid var(--moss); border-radius: 8px; background: var(--cream); font: inherit; color: inherit; }
input[type=checkbox] { width: auto; }
fieldset { display: grid; gap: .5rem; padding: 0; border: 0; }
.qty { grid-template-columns: 1fr 5rem; align-items: center; }
.allergens { display: grid; gap: .3rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.allergens label, label.check { display: flex; gap: .4rem; align-items: center; font-weight: 400; }
.total output { font-weight: 800; }
.msg:empty { display: none; }
.msg, .error { font-weight: 700; color: #a3361f; }
.msg[role=status] { color: var(--moss); }
.done { padding: 1rem; background: #fff; border: 2px solid var(--amber); border-radius: var(--r); }
.ogm { font: 700 1.25rem ui-monospace, Consolas, monospace; }
.help { display: inline-block; margin-left: .4rem; padding: 0 .45em; border: 1px solid currentColor; border-radius: 50%; font-size: .55em; font-weight: 700; line-height: 1.5; vertical-align: middle; text-decoration: none; opacity: .7; }
.help:hover { opacity: 1; }
.toc ul { columns: 2; padding-left: 1.2rem; }
figure.qr { margin: .5rem 0; }
figure.qr svg { display: block; width: 180px; height: 180px; }
.list { display: grid; gap: .6rem; padding: 0; list-style: none; }
.list li { padding: .8rem; background: #fff; border-radius: var(--r); }
.members li { display: grid; gap: .5rem; }
.members .ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.members select { width: auto; min-width: 9rem; }
label.check { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
button.ghost { margin-left: auto; padding: .4rem .9rem; border: 1px solid #a3361f; border-radius: 999px; background: none; color: #a3361f; font-weight: 700; }
button.ghost:hover { background: #a3361f; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.actions button.ghost { margin-left: 0; }
.pill { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--moss); border-radius: 999px; color: var(--moss); font-weight: 700; text-decoration: none; }
.pill:hover { background: var(--moss); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; font-weight: 700; }
.tabs a { padding: .35rem .9rem; border: 1px solid var(--moss); border-radius: 999px; white-space: nowrap; text-decoration: none; color: var(--moss); background: #fff; }
.tabs a:hover { background: #55703a1a; }
.tabs a[aria-current="page"] { background: var(--moss); color: #fff; }
.scroll { overflow-x: auto; }
td .ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem 1rem; }
table { width: 100%; border-collapse: collapse; background: #fff; }
td { padding: .4rem; border-bottom: 1px solid var(--cream); vertical-align: top; }
footer { margin-top: 2rem; padding: 2rem 1rem; text-align: center; background: var(--navy); color: var(--cream); }
footer a { color: var(--amber); }
.mascot { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto 1rem; }
@media (min-width: 700px) {
  .mascot { float: right; margin: 0 0 1rem 1.5rem; max-width: 300px; }
  .menu { display: none; }
  #nav { display: flex; flex-direction: row; align-items: center; width: auto; margin-left: 1rem; }
  #nav a, #nav button { padding: .2rem 0; }
  .hero { grid-template-columns: 1fr 1fr; padding: 2rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
/* Sponsors page: two columns from tablet width, the logo sits above the name. */
.sponsor a, .sponsor-head { display: block; padding: .8rem 1rem 0; color: inherit; text-decoration: none; }
.sponsor a:hover h3 { text-decoration: underline; }
.sponsor img { width: 100%; max-height: 120px; aspect-ratio: auto; object-fit: contain; }
.sponsor h3 { margin: .5rem 0 0; }
.sponsor > p { margin: 0; padding: .4rem 1rem .8rem; }
@media (min-width: 700px) { .cards.sponsors { grid-template-columns: repeat(2, 1fr); } }
.logo-preview { margin: .4rem 0; }
.logo-preview img, .logo-preview canvas { max-width: 100%; max-height: 120px; background: #fff; border: 1px solid #1e2a4533; }
/* /mijn booking cards: header (event + date | badges), divider above the buttons. */
.regs li { display: grid; gap: .5rem; padding: 1rem 1.2rem; box-shadow: 0 2px 8px #1e2a4522; }
.regs p { margin: 0; }
.regs small { color: #1e2a45aa; font-style: italic; }
.reg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .4rem 1rem; }
.reg-head a { font-size: 1.15rem; text-decoration: none; color: var(--navy); }
.reg-head .meta { display: block; font-size: .9rem; }
.reg-foot { margin-top: .3rem; padding-top: .7rem; border-top: 1px dashed #55703a66; }
@media (min-width: 900px) { .regs { grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); align-items: start; } }
/* Handleiding screenshots. */
figure.shot { margin: .8rem 0; }
figure.shot img { display: block; width: 100%; max-width: 760px; height: auto; border: 1px solid #1e2a4522; border-radius: 8px; box-shadow: 0 2px 8px #1e2a4522; }
figure.shot figcaption { margin-top: .3rem; font-size: .9rem; font-style: italic; color: #1e2a45bb; }
/* Payment fields with a copy button each (copyRows). */
.copy { display: grid; gap: .3rem; margin: .5rem 0; }
.copy div { display: grid; grid-template-columns: 7rem 1fr auto; align-items: center; gap: .5rem; padding: .3rem .5rem; background: #fff; border: 1px solid #55703a33; border-radius: 8px; }
.copy dt { font-weight: 700; font-size: .9rem; }
.copy dd { margin: 0; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; }
.copy button.icon { display: flex; padding: .3rem; border: 0; border-radius: 6px; background: none; color: var(--moss); }
.copy button.icon:hover, .copy button.icon:focus-visible { background: #55703a1a; color: var(--moss); }
/* Password field with the eye inside, on the right. */
.pw { position: relative; display: block; }
.pw input { padding-right: 2.8rem; }
.pw .eye { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); display: flex; padding: .35rem; border: 0; border-radius: 6px; background: none; color: var(--navy); opacity: .65; }
.pw .eye:hover, .pw .eye:focus-visible { opacity: 1; background: none; color: var(--navy); }
.event-form { display: grid; gap: 1rem; }
.event-form .box { display: grid; gap: .8rem; padding: 1rem; border: 1px solid #55703a55; border-radius: var(--r); background: #fff; }
.event-form legend { padding: 0 .4rem; font-weight: 800; color: var(--navy); }
.row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.ghost-btn { justify-self: start; padding: .4rem .9rem; border: 1px solid var(--moss); border-radius: 999px; background: none; color: var(--moss); font-weight: 700; }
