:root {
  color-scheme: light;
  font-family: 'Instrument Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--navy);
  background: #f4f6fb;
  --navy: #1e1856;
  --cyan: #00a2d3;
  --navy-hover: #302778;
  --link: #205787;
  --line: #d9dcee;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: var(--link); }
:focus-visible { outline: 3px solid #006e95; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
header { background: var(--navy); color: #fff; border-bottom: 3px solid var(--cyan); }
header :focus-visible { outline-color: var(--cyan); }
.navigation { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 12px; }
.navigation a, .navigation button { color: inherit; }
.navigation nav { display: flex; align-items: center; gap: 18px; }
.wordmark { display: block; flex: 0 1 192px; min-width: 0; }
.wordmark img, .footer-logo { display: block; max-width: 100%; height: auto; }
.quiet { background: transparent; border: 1px solid #a8a4cf; }
.quiet:hover { background: var(--navy-hover); }
main { padding-block: 44px 64px; }
.intro { margin-bottom: 26px; padding-block: 8px 12px; }
h1, h2 { margin: 0; font-weight: 680; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.1rem, 5.8vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: 1.65rem; }
p { line-height: 1.55; }
.copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.kicker { color: #236181; font-size: .78rem; text-transform: uppercase; font-weight: 700; letter-spacing: .18em; }
.cards, .qrgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card, .panel, .empty { padding: clamp(16px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.card { display: grid; align-content: start; gap: 10px; text-decoration: none; }
.card:hover { border-color: #00799e; }
.card p { margin: 0; overflow-wrap: anywhere; }
.card span { font-size: .9rem; }
.panel { margin-top: 24px; }
.panel h2 { margin-bottom: 15px; }
.narrow { max-width: 460px; }
.actions, .fields { display: flex; gap: 12px; flex-wrap: wrap; }
.actions { margin-bottom: 20px; }
.fields > label { flex: 1 1 160px; }
.button, button {
  display: inline-block; border: 1px solid transparent; border-radius: 5px;
  padding: .67em .95em; background: var(--navy); color: #fff; font: inherit;
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover, button:hover { background: var(--navy-hover); color: #fff; }
.secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 5px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 8px; }
input, textarea { font: inherit; color: inherit; border: 1px solid #979bb6; border-radius: 4px; padding: 8px 10px; background: #fff; min-width: 0; width: 100%; }
input[type=checkbox] { width: auto; accent-color: var(--navy); }
textarea { resize: vertical; }
details { margin-top: 18px; }
summary { cursor: pointer; color: var(--navy); font-weight: 650; }
details form { margin-top: 16px; }
.tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 14px clamp(8px, 1.6vw, 20px); vertical-align: top; }
thead { background: var(--navy); color: #fff; border-bottom: 2px solid var(--cyan); }
tbody tr:nth-child(even) { background: #f6f7fc; }
thead th { font-size: .83rem; letter-spacing: .015em; }
tbody tr + tr { border-top: 1px solid var(--line); }
td { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody th { overflow-wrap: anywhere; min-width: 125px; }
small { display: block; font-weight: 400; white-space: pre-wrap; margin-top: 3px; }
.total { font-weight: 700; }
footer { margin-top: 34px; padding: clamp(18px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: 7px; }
address { margin-top: 10px; font-style: normal; line-height: 1.6; }
.qrgrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.qr { display: grid; justify-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.qr img { display: block; max-width: 100%; height: auto; }
.catalogue-search { align-items: end; }
.catalogue-search label { flex: 1 1 240px; max-width: 460px; }
.catalogue-search a { align-self: center; }
.catalogue-card-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; }
.catalogue-brand { color: var(--link); font-weight: 650; overflow-wrap: anywhere; min-width: 0; }
.fields select { width: 100%; font: inherit; color: inherit; background: white; padding: 8px 10px; border: 1px solid #979bb6; border-radius: 4px; }
.panel summary + .stack { margin-top: 16px; }
#qr-sheet h3, #qr-sheet p, #pdf-status { margin: 0; }
@media (max-width: 500px) {
  .wrap { width: calc(100% - 24px); }
  .navigation nav { gap: 8px; font-size: .88rem; }
  .wordmark { flex-basis: 144px; }
  .navigation { min-height: 68px; }
  .navigation nav { flex-shrink: 0; }
  main { padding-top: 28px; }
  th, td { padding-block: 10px; }
}
