/* Kiosk Aarau: visual adaptation of the public KAPO appearance.
   Brand references and the provenance of the unchanged emblem: README.md. */
:root {
  --navy: #00365f;
  --navy-dark: #002844;
  --blue: #006da3;
  --signal: #e3f500;
  --bg: #f3f6f8;
  --paper: #ffffff;
  --ink: #162a3b;
  --muted: #536779;
  --line: #d3dee6;
  --green: var(--navy);
  --green-light: #e7f0f6;
  --yellow: var(--signal);
  font-family: "AGPN", Arial, Helvetica, sans-serif;
}

h1, h2, h3 { color: var(--navy); font-weight: 700; }
h1 { letter-spacing: -1.2px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); }
.topbar {
  background: #fff;
  border-top: 6px solid var(--navy);
  border-bottom: 4px solid var(--signal);
  padding-top: 15px;
  padding-bottom: 15px;
  min-height: 108px;
}
.brand { gap: 17px; }
.brand img { width: 70px; height: 72px; object-fit: contain; border-radius: 0; }
.brand > span { color: var(--navy); font-size: 11px; letter-spacing: 1.2px; line-height: 1.5; }
.brand small { color: var(--ink); font-size: 21px; letter-spacing: -.45px; line-height: 1.25; margin-top: 4px; }
.admin-link { color: var(--navy); font-size: 13px; }
.status { background: #edf3f7; color: var(--navy); border-radius: 5px; }
.status.warn { background: #fff3d9; color: #7e520d; }
.status.bad { background: #fbe8e5; color: var(--red); }
.home { padding-top: 38px; }
.eyebrow {
  display: inline-block;
  background: var(--signal);
  color: var(--navy-dark);
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 700;
  line-height: 1.3;
}
.home-heading h1 { margin-top: 4px; }
.home-heading p { color: var(--muted); }
.steps { color: #65788a; }
.steps i { color: #9caebb; }
.steps .active { background: var(--navy); color: white; padding: 10px 13px; border-radius: 4px; }
.search { border-radius: 5px; border-color: #bdcedb; }
.search svg { color: var(--navy); }
.search:focus-within { border-color: var(--blue); }
input::placeholder { color: #64798b; opacity: 1; }
.person-card, .product-card {
  border: 1px solid #cdd9e2;
  border-radius: 7px;
  box-shadow: 0 2px 4px #00365f04;
}
.person-card:active, .product-card:active { outline: 2px solid var(--blue); outline-offset: -2px; }
.avatar, .avatar-photo, .product-image { border-radius: 4px; }
.avatar { color: var(--navy); font-weight: 500; letter-spacing: -1px; }
.tint-0 { background: #e5eef5; }
.tint-1 { background: #eaf0f4; }
.tint-2 { background: #e2eaf1; }
.tint-3 { background: #eef3f7; }
.tint-4 { background: #e4edf2; }
.person-label { color: var(--navy); font-weight: 700; }
.person-label > span { color: var(--blue); }
.guest-card { background: #fff; border: 2px solid var(--navy); border-top: 7px solid var(--signal); }
.guest-card .avatar { background: #edf0f2; color: #788693; }
.guest-card small { color: var(--muted); }
.trust-note, footer { color: #596e7f; }
.demo-tag { border-color: #b9cbd8; color: var(--navy); border-radius: 2px; }
.setup-banner { background: #edf3f8; border-color: #c7d9e6; border-left: 4px solid var(--navy); border-radius: 5px; }
.primary, .secondary, .danger { border-radius: 5px; font-weight: 700; }
.primary { background: var(--signal); color: var(--navy-dark); border: 1px solid #cada00; }
.primary:active { background: #d6e800; }
.secondary { color: var(--navy); border-color: #bdcedb; }
.danger { color: #8c302a; }
.quiet, .back { color: #425f76; }
.step-label, .sort-label { color: #536f84; }
.selected-person {
  background: #e5eef6;
  border: 1px solid #b6ccdc;
  border-left: 5px solid var(--navy);
  border-radius: 5px;
}
.selected-person > div > span { color: #44627b; font-size: 9px; }
.mini-avatar .avatar, .mini-avatar .avatar-photo { background: #d4e2ec; }
.mini-avatar svg { color: #6b7e8d; }
.selected-check { background: var(--navy); color: #fff; }
.chip { background: #fff; border-color: #c6d5df; border-radius: 4px; color: var(--navy); min-height: 44px; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.product-image > span { filter: none; }
.product-label strong { color: var(--navy); font-weight: 700; }
.product-label > span { color: #3f5f76; font-weight: 600; }
.add-dot { background: var(--navy); color: white; }
.quantity-badge { background: var(--signal); color: var(--navy-dark); }
.new-tag { background: var(--signal); color: var(--navy-dark); border-radius: 2px; font-weight: 700; }
.exception { border-top-color: #bfcfda; }
.exception h3 { color: var(--navy); }
.exception p { color: var(--muted); }
.quick-amounts button { border-color: #bbcddc; background: #edf3f8; color: var(--navy); border-radius: 4px; }
.basket { border-color: #c3d1de; border-radius: 7px; border-top: 5px solid var(--navy); }
.basket-title { background: var(--navy); color: white; border-color: var(--navy); }
.basket-title h2 { color: white; }
.count { background: var(--signal); color: var(--navy-dark); font-weight: 700; border-radius: 3px; }
.basket-line { border-bottom-color: #e2e9ef; }
.basket-line-name small { color: var(--muted); }
.basket-line-bottom > strong, .basket-total strong { color: var(--navy); }
.quantity-control { border-color: #c3d3de; border-radius: 4px; }
.quantity-control button { color: var(--navy); background: #eef4f8; }
.remove { color: #60788a; }
.exception-line { background: #f4f7fa; }
.exception-line input { border-color: #c3d3de; }
.basket-bottom .primary { font-size: 12px; }
.empty-basket { color: #556f83; }
.empty-basket > span { color: #6c879b; }
.notice { background: #fff8df; border-color: #e5d6a3; border-left: 4px solid #a67815; border-radius: 4px; color: #69501d; }
#toast { background: var(--navy); border-radius: 6px; box-shadow: 0 8px 32px #00365f22; }
#toast.error { background: var(--red); }
dialog { border-radius: 8px; border-top: 5px solid var(--navy); box-shadow: 0 20px 90px #001f3c40; }
dialog::backdrop { background: #001c355f; }
.icon-button { color: #526d82; }
.review-person { background: #e8f1f8; border-radius: 4px; }
.review-lines > div { border-bottom-color: #dce6ed; }
.review-total strong { color: var(--navy); }
.twint-qr { border-radius: 4px; }
.success-mark { background: var(--signal); color: var(--navy-dark); }
.success-amount { color: var(--navy); }
input, select, textarea { border-color: #bdcedb; border-radius: 4px; }
input[type=checkbox] { accent-color: var(--navy); }
.login-card { border-radius: 7px; border-top: 5px solid var(--navy); }
.admin-tabs { border-color: #bdcedb; }
.admin-tabs button { color: var(--navy); border-radius: 4px; }
.admin-tabs button.active { background: var(--navy); color: #fff; box-shadow: inset 0 -3px var(--signal); }
.panel { border-radius: 7px; }
.stat { border-radius: 6px; border-top: 3px solid #bbcfde; }
.stat:first-child { background: var(--navy); border-color: var(--navy); border-top-color: var(--signal); }
.stat small { color: var(--muted); }
.stat:first-child small { color: #cbdde9; }
.metric { border-bottom-color: #dce6ed; }
.table-wrap { border-radius: 5px; }
th { background: #eaf1f6; color: var(--navy); font-weight: 700; }
td { border-top-color: #e2eaf0; }
td small { color: var(--muted); }
.table-button { background: #edf3f8; border-color: #c7d7e2; color: var(--navy); border-radius: 4px; }
.badge { background: #e8f0f6; color: #345c7a; border-radius: 3px; }
.badge.green { background: #e6f2e9; color: #245c38; }
.badge.amber { background: #fff0cd; color: #80560f; }
.badge.red { background: #f9e5e1; color: #943b31; }
.pair-code { background: #e8f1f7; color: var(--navy); border-radius: 4px; }
.audit-details { color: #526d81; }

@media (max-width: 1050px) {
  .brand img { width: 62px; height: 64px; }
  .brand small { font-size: 19px; }
  .product-label strong { font-size: 13px; }
  .product-label > span { font-size: 12px; }
}
@media (max-width: 800px) {
  .brand { gap: 12px; }
  .brand > span { font-size: 10px; letter-spacing: .75px; }
  .brand small { font-size: 18px; }
  .header-right { gap: 10px; }
}
@media (max-width: 600px) {
  .topbar { padding: 12px 5%; min-height: 92px; flex-wrap: wrap; gap: 10px; }
  .brand img { width: 50px; height: 52px; }
  .brand > span { font-size: 8px; letter-spacing: .65px; }
  .brand small { font-size: 16px; }
  .header-right { margin-left: auto; }
  .status { font-size: 10px; }
  .home { padding-top: 28px; }
  .home-heading h1 { font-size: 34px; }
  .person-card, .product-card { border-radius: 5px; }
  .guest-card { border-top-width: 5px; }
  .product-label strong { font-size: 12px; }
  .product-label > span { font-size: 11px; }
  .eyebrow { font-size: 9px; }
}
