/* Organiser pages: plain, dense, built for a laptop or tablet at the desk.
   Buttons here are calm cyan rectangles; magenta is kept for actions with
   consequences, and the forward-pointing button is left to the guests. */

.admin .btn {
  min-height: 42px; padding: 8px 18px; border-radius: 8px; clip-path: none;
  background: var(--cyan); color: #06223A; font-size: 16px;
}
.admin .btn.quiet { background: transparent; color: var(--ink); }
.admin .btn.danger { background: var(--danger); color: #fff; }
.admin .btn:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; box-shadow: none; }
.a-top .brand-mark { height: 30px; }
.a-logo { display: grid; grid-template-columns: 132px 1fr; gap: 6px 16px; align-items: center; }
.a-logo img { max-width: 132px; max-height: 70px; width: auto; height: auto; }
.a-logo .check { grid-column: 2; }

.admin { background: var(--sheet); font-size: 16px; }
.admin h1 { font: 700 29px/1.1 var(--text); letter-spacing: -.01em; margin-bottom: 14px; }
.admin h2 { font: 700 20px/1.15 var(--text); margin: 22px 0 8px; }
.admin .a-card h2 { margin-top: 0; }

.a-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  padding: 10px 20px; background: var(--paper); border-bottom: 1px solid var(--rule);
}
.a-top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15.5px; }
.a-top nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.a-top nav a:hover { border-bottom-color: var(--rule); }
.a-top nav a[aria-current] { font-weight: 700; border-bottom-color: var(--magenta); }
.a-top nav form { margin-left: 6px; }

.a-flashes { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: grid; gap: 8px; }
.a-flashes:has(.toast) { padding-top: 14px; }

.a-main { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; }
.a-narrow { max-width: 380px; margin: 6vh auto 0; }
.a-cols { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 28px; align-items: start; }
.a-cols > aside { display: grid; gap: 18px; }
@media (max-width: 940px) { .a-cols { grid-template-columns: minmax(0, 1fr); } }

.a-card { padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.a-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; align-items: end; }
.a-inline { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.a-inline input { width: 90px; }
.a-thumb { max-width: 180px; border-radius: 4px; }

.a-control {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 2px solid var(--ink);
}
.a-phase h1 { margin-bottom: 4px; }
.a-phase p { color: var(--soft); max-width: 60ch; }
.a-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; }
.a-actions form { display: flex; gap: 8px; align-items: flex-end; }
.a-close label { font-weight: 400; }
.a-close input { width: auto; padding: 8px 10px; }

.a-stats { display: flex; flex-wrap: wrap; gap: 10px 44px; margin: 4px 0 20px; }
.a-stats b { display: block; font: 700 35px/1.05 var(--text); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.a-stats span { font-size: 14.5px; color: var(--soft); }
.a-stats.small b { font-size: 25px; }
.a-set { display: grid; gap: 12px; margin: 4px 0 0; padding: 14px 16px 16px; border: 1px solid var(--rule); border-radius: 8px; }
.a-set legend { padding: 0 6px; font: 700 17px/1 var(--text); }
.bad { color: var(--out); }
.a-sample { display: grid; gap: 6px; }
.a-bubble { max-width: 46ch; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--sheet); border: 1px solid var(--rule); font-size: 15.5px; line-height: 1.4; overflow-wrap: anywhere; }

.a-scroll { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 15.5px; }
.a-table th { padding: 8px 10px; text-align: left; font-weight: 600; font-size: 14px; color: var(--soft); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.a-table td { padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.a-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-table .strong { font: 700 17px/1 var(--text); }
.a-table tfoot td { border-bottom: 0; font-weight: 600; }
.a-table form { margin: 0; }
.is-off td { color: var(--soft); }
.is-off .strong { text-decoration: line-through; }
.is-paid td { color: var(--lead); }
.muted { color: var(--soft); font-weight: 400; }

.a-empty { padding: 26px 18px; background: var(--paper); border: 1px dashed var(--soft); border-radius: 8px; color: var(--soft); }
.a-warn { margin-bottom: 16px; padding: 10px 14px; border-radius: 6px; background: var(--out-bg); color: var(--out); font-weight: 600; }
.a-warn a { color: inherit; }
.a-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; margin-bottom: 8px; }
.a-head h1 { margin: 0; }
.a-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a-links .btn { min-height: 38px; padding: 6px 12px; font-size: 15px; }
.admin .btn.is-on { background: var(--ink); color: var(--paper); }
.a-winner { margin-bottom: 22px; break-inside: avoid; }
.a-winner h2 { font: 700 19px/1.3 var(--text); }
.a-no {
  display: inline-grid; place-items: center; min-width: 2.6em; height: 28px; padding: 0 20px 0 9px; margin-right: 2px;
  background: var(--cyan); color: #06223A; font: 700 16px/1 var(--text); vertical-align: -6px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.a-plain { margin: 0; padding-left: 20px; color: var(--soft); }
.a-qr { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.a-qr .qr { width: 150px; border: 1px solid var(--rule); }
.a-qr a { overflow-wrap: anywhere; }
code { font-size: .92em; padding: 1px 4px; border-radius: 3px; background: var(--sheet); }

/* ------------------------------------------------- printable QR sheets */

.sheets { display: grid; justify-content: start; gap: 0; }
.sheets.per-4 { grid-template-columns: 95mm 95mm; }
.sheets.per-1, .sheets.per-2 { grid-template-columns: 190mm; }
.card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4mm;
  padding: 8mm; text-align: center; overflow: hidden;
  background: #fff; color: #000; border: .3mm dashed #9aa; break-inside: avoid;
}
.card { position: relative; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.card::after {                       /* a band in the logo's colours, split on its lean */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4mm;
  background: linear-gradient(116.6deg, #ED135D 0 24%, #00B2EE 24% 100%);
}
.card-logo { flex: none; height: 15mm; width: auto; }
.card h2 { margin: 0; font: 700 8mm/1.1 var(--text); letter-spacing: -.01em; color: #06223A; text-wrap: balance; }
.card-event { font: 700 5mm/1.15 var(--text); color: #06223A; }
.card-lot {
  flex: none; display: inline-grid; place-items: center; height: 9mm; padding: 0 8mm 0 4.5mm;
  background: #00B2EE; color: #06223A; font: 700 5.2mm/1 var(--text);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4.5mm) 100%, 0 100%);
}
.card-desc { font-size: 3.6mm; line-height: 1.4; max-width: 62ch; }
.card-facts { font-size: 4mm; }
.card-url { font-size: 3.6mm; color: #333; overflow-wrap: anywhere; }
.card-qr { flex: none; }
.per-1 .card { height: 276mm; gap: 7mm; padding: 14mm 14mm 18mm; }
.per-1 .card-logo { height: 30mm; }
.per-1 .card h2 { font-size: 14mm; }
.per-1 .card-event { font-size: 8mm; }
.per-1 .card-lot { height: 14mm; padding: 0 12mm 0 7mm; font-size: 8mm; clip-path: polygon(0 0, 100% 0, calc(100% - 7mm) 100%, 0 100%); }
.per-1 .card-desc { font-size: 5mm; }
.per-1 .card-facts { font-size: 6mm; }
.per-1 .card-url { font-size: 5mm; }
.per-1 .card-qr { width: 100mm; }
.per-1 .card::after { height: 7mm; }
.per-2 .card { height: 138mm; gap: 3.5mm; }
.per-2 .card-logo { height: 20mm; }
.per-2 .card-qr { width: 54mm; }
.per-4 .card { height: 138mm; gap: 3mm; }
.per-4 .card-logo { height: 12mm; }
.per-4 .card h2 { font-size: 6.4mm; }
.per-4 .card-qr { width: 46mm; }
.card-join h2 { max-width: 17ch; }

@page { size: A4; margin: 10mm; }
@media print {
  html, .admin { background: #fff; }
  .a-top, .a-flashes, .no-print { display: none !important; }
  .a-main { max-width: none; padding: 0; }
  .a-table, .a-card { background: #fff; }
  a { color: inherit; text-decoration: none; }
}
