/* coa.pepking.eu: PepKing batch reports.
   One bold element (the vial-label lookup); everything else stays quiet. */

@font-face { font-family: "Atkinson Next"; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Next"; font-weight: 600; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Next"; font-weight: 600; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Mono"; font-weight: 500; font-display: swap; src: url(/fonts/atkinson-hyperlegible-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Mono"; font-weight: 500; font-display: swap; src: url(/fonts/atkinson-hyperlegible-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #F6F8F9;   /* cool lab white */
  --stock: #FFFFFF;   /* label stock */
  --ink: #1F2B33;     /* slate text */
  --muted: #56656F;
  --rule: #C8D2D9;
  --pen: #2B4F7E;     /* ballpoint blue: links, focus, the label band */
  --pen-dark: #1E3A5F;
  --pass: #2E6B4F;
  --fail: #9A3B2E;

  --sans: "Atkinson Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale (1.25, from 17px) */
  --t-sm: .85rem;
  --t-base: 1.0625rem;
  --t-md: 1.33rem;
  --t-lg: 1.66rem;
  --t-xl: 2.07rem;
  --t-xxl: clamp(2.07rem, 6vw, 2.6rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-base)/1.55 var(--sans);
  font-feature-settings: "kern";
}

.wrap { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 40rem) { .wrap { padding-inline: 24px; } }

a { color: var(--pen); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pen-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--stock); padding: .5rem 1rem; }
.skip:focus { left: 16px; z-index: 10; }

.code { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; font-variant-numeric: slashed-zero; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-xxl); letter-spacing: -.01em; }
h2 { font-size: var(--t-md); margin-top: 2.5rem; margin-bottom: .75rem; }
p { margin: 0 0 1rem; max-width: 68ch; }
.lede { font-size: var(--t-md); line-height: 1.45; color: var(--ink); max-width: 36em; }
.hint { color: var(--muted); font-size: var(--t-sm); margin-top: -.25rem; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--stock); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .9rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: .55rem; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.wordmark-brand { font-weight: 600; font-size: var(--t-md); }
.wordmark-site { color: var(--muted); }
.masthead nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.masthead nav a { color: var(--ink); text-decoration: none; padding-block: .35rem; }
.masthead nav a:hover { color: var(--pen); }
.masthead nav a[aria-current="page"] { color: var(--pen); box-shadow: inset 0 -2px 0 var(--pen); }

main { padding-block: 2.5rem 3.5rem; }

/* The vial label: the lookup, styled as the label it asks you to read. */
.intro h1 { margin-bottom: .75rem; }
.vial-label {
  position: relative;
  margin-top: 1.75rem;
  background: var(--stock);
  border: 1px solid var(--rule);
  border-left: 10px solid var(--pen);
  border-radius: 4px 10px 10px 4px;
  padding: 1.1rem 1.1rem 1.25rem 1.25rem;
}
.vial-label::after {
  /* the label's wrap edge */
  content: "";
  position: absolute; top: 10px; bottom: 10px; right: 10px;
  border-right: 2px dashed var(--rule);
  pointer-events: none;
}
.vial-label label { display: block; color: var(--muted); font-size: var(--t-sm); margin-bottom: .5rem; }
.vial-label-row { display: flex; flex-wrap: wrap; gap: .75rem; padding-right: 1.25rem; }
.vial-label input {
  flex: 1 1 15rem; min-width: 0;
  font-size: var(--t-lg); text-transform: uppercase;
  color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink);
  padding: .3rem 0; border-radius: 0;
}
.vial-label input::placeholder { color: #A9B6BF; }
.vial-label input:focus-visible { outline: none; border-bottom-color: var(--pen); box-shadow: 0 2px 0 var(--pen); }
.vial-label input[aria-invalid="true"] { border-bottom-color: var(--fail); }
.field-error { color: var(--fail); font-size: var(--t-sm); margin: .6rem 0 0; }

button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .55rem 1.1rem;
  font: 600 var(--t-base)/1.2 var(--sans);
  color: var(--stock); background: var(--pen);
  border: 1px solid var(--pen); border-radius: 6px;
  text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: var(--pen-dark); border-color: var(--pen-dark); color: var(--stock); text-decoration: none; }
.button-quiet { color: var(--pen); background: var(--stock); border-color: var(--rule); }
.button-quiet:hover { color: var(--pen-dark); background: var(--stock); border-color: var(--pen); }

/* Register of reports */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 400; color: var(--muted); font-size: var(--t-sm); border-bottom-color: var(--ink); }
tbody th { font-weight: 400; }
.register { min-width: 36rem; }
.register tbody tr:hover { background: var(--stock); }

.status { display: inline-block; font-size: var(--t-sm); font-weight: 600; padding-left: .9rem; position: relative; }
.status::before { content: ""; position: absolute; left: 0; top: .42em; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-published { color: var(--pass); }
.status-withdrawn { color: var(--fail); }

.empty { background: var(--stock); border: 1px dashed var(--rule); border-radius: 8px; padding: 1.1rem 1.25rem .2rem; }

.plain { padding-left: 1.1rem; margin: 0 0 1rem; }
.plain li { margin-bottom: .4rem; max-width: 64ch; }

/* Report page */
.trail { color: var(--muted); font-size: var(--t-sm); margin-bottom: 1.25rem; }
.report-head { border-bottom: 1px solid var(--ink); padding-bottom: 1.1rem; }
.report-head h1 { font-size: var(--t-xxl); overflow-wrap: anywhere; margin-bottom: .4rem; }
.report-product { font-size: var(--t-md); margin-bottom: .35rem; }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.verify-bar { display: grid; gap: .25rem 1.5rem; align-items: center; margin-top: 1.5rem; }
.verify-bar p { margin: 0; }
@media (min-width: 44rem) { .verify-bar { grid-template-columns: 1fr auto; } }

/* The certificate sheet: a document on the page. */
.sheet {
  margin-top: 1.75rem;
  background: var(--stock);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule), 0 12px 24px -18px rgba(31, 43, 51, .35);
  padding: 1.25rem 1rem 1rem;
}
@media (min-width: 40rem) { .sheet { padding: 2rem 2.25rem 1.5rem; } }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; }
.sheet-kind { color: var(--muted); margin: 0 0 .25rem; }
.sheet-head h2 { margin: 0; font-size: var(--t-md); overflow-wrap: anywhere; }
.sheet h3 { font-size: var(--t-base); margin: 1.75rem 0 .5rem; }

.stamp {
  display: inline-flex; flex-direction: column; align-items: center;
  margin: 0; padding: .35rem .8rem .45rem;
  border: 2px solid var(--pen); outline: 1px solid var(--pen); outline-offset: 2px;
  border-radius: 4px; color: var(--pen);
  transform: rotate(-3deg);
  font-size: var(--t-sm); line-height: 1.25; text-align: center; max-width: 13rem;
}
.stamp-word { font-weight: 600; font-size: var(--t-md); letter-spacing: .12em; }

.sheet-meta { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
@media (min-width: 34rem) { .sheet-meta { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.sheet-meta div { padding: .55rem 0 .6rem; border-bottom: 1px solid var(--rule); }
.sheet-meta dt { color: var(--muted); font-size: var(--t-sm); }
.sheet-meta dd { margin: 0; overflow-wrap: anywhere; }

.results { width: 100%; }
/* Phones: one block per test, so the result never scrolls out of view. */
@media (max-width: 43.99rem) {
  .results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results tr { display: block; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
  .results th[scope="row"], .results td { display: block; border: 0; padding: .1rem 0; }
  .results tr th[scope="row"] { font-weight: 600; margin-bottom: .15rem; }
  .results td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .5rem; }
  .results td::before { content: attr(data-label); color: var(--muted); font-size: var(--t-sm); font-weight: 400; }
  .results td:empty { display: none; }
}
.results th[scope="row"] { font-weight: 400; }
.results td.result { font-weight: 600; }
.results + .hint, .table-scroll + .hint { margin-top: .6rem; }

.lab-figure { margin: 0 0 1.25rem; }
.lab-figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }
.lab-figure figcaption { color: var(--muted); font-size: var(--t-sm); margin-top: .4rem; }

.sheet-foot { border-top: 1px solid var(--rule); margin-top: 1.5rem; padding-top: .9rem; color: var(--muted); font-size: var(--t-sm); }
.sheet-foot p { margin: 0; }

.original-pdf { display: none; }
/* Phone browsers rarely show a PDF inside a page; there the download button does the job. */
@media (min-width: 44rem) {
  .original-pdf { display: block; width: 100%; height: 80vh; min-height: 32rem; border: 1px solid var(--rule); background: var(--stock); margin-bottom: .75rem; }
}

.notice { border-radius: 8px; padding: 1rem 1.25rem .1rem; margin-top: 1.5rem; }
.notice-withdrawn { background: #FBEFEC; border: 1px solid #E4C3BB; color: var(--ink); }
.notice-withdrawn strong { color: var(--fail); }

.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .5rem; padding-left: .25rem; max-width: 64ch; }
.ruo { color: var(--muted); font-size: var(--t-sm); margin-top: 2.5rem; }

/* Guides */
.prose h1 { margin-bottom: .75rem; }
.checks { list-style: none; counter-reset: check; padding: 0; margin: 2rem 0; }
.checks li { counter-increment: check; position: relative; padding-left: 3rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.checks li::before {
  content: counter(check);
  position: absolute; left: 0; top: .05rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--pen); color: var(--pen);
  font: 500 var(--t-sm)/1.95rem var(--mono); text-align: center;
}
.checks h2 { margin: 0 0 .4rem; font-size: var(--t-md); }
.checks p { margin-bottom: 0; }

/* Colophon */
.colophon { border-top: 1px solid var(--rule); background: var(--stock); color: var(--muted); font-size: var(--t-sm); padding-block: 1.75rem 2.25rem; }
.colophon p { margin-bottom: .6rem; }
.colophon-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .masthead nav, .vial-label, .actions, .skip, .original-pdf { display: none; }
  body { background: #fff; }
  .sheet { box-shadow: none; border-color: #999; break-inside: auto; }
  .stamp { transform: none; }
}
