/* Styles for the invoice check pages (/check and /check-details). This
   stylesheet references no image and no font of its own, and nothing here
   makes a network request: the fonts come from styles.css, and the two
   pictures on /check are img elements in the page itself, loaded from
   /assets before the drop zone opens. */

main.check { max-width: 880px; margin: 0 auto; padding: 32px 24px 96px; }
main.check h1 {
  font: 600 clamp(30px, 5vw, 44px)/1.12 var(--serif); letter-spacing: -0.012em;
  max-width: 24ch; margin-top: 10px;
}
main.check .sub { margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--ink2); max-width: 62ch; }
main.check h2 { font: 600 clamp(22px, 3.5vw, 28px)/1.2 var(--serif); margin: 48px 0 14px; }
main.check h3 { font: 600 17px var(--sans); margin: 26px 0 8px; }
main.check p, main.check li, main.check td, main.check th { color: var(--ink2); font-size: 16px; }
main.check .small { font-size: 13.5px; color: var(--muted); }
main.check .nojs { margin-top: 24px; color: var(--amber); }
main.check .wrapany { overflow-wrap: anywhere; word-break: break-word; }

/* When the fonts have not settled within four seconds, the page switches
   to the system fonts and only then opens, so no font is fetched later. */
body.system-fonts {
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------- drop zone */
.dropwrap { margin-top: 32px; display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
.dropzone {
  flex: 1 1 320px; border: 2px dashed var(--hairline2); border-radius: 14px; background: var(--surface);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone.over { border-color: var(--green); background: var(--green-wash); }
.dropzone:focus-within { box-shadow: var(--focus-ring); }
.dropzone label { font: 600 17px var(--serif); color: var(--ink); cursor: pointer; }
.dropzone input[type="file"] { font: 14px var(--sans); color: var(--ink2); max-width: 100%; }
.dropzone[aria-disabled="true"] { opacity: 0.55; }
.dropzone[aria-disabled="true"] label { cursor: default; }
.dropwrap .sample { align-self: center; }
.dropwrap .sample button { white-space: nowrap; }
.otherformat { margin-top: 12px; font-size: 14px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.trust li { padding-left: 18px; position: relative; font-size: 15px; }
.trust li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ------------------------------------------------------------- result */
.result { margin-top: 40px; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface); padding: 28px; scroll-margin-top: 16px; }
.result[hidden] { display: none; }
.result .banner {
  background: var(--green-wash); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; margin-bottom: 18px; color: var(--ink);
}
.result .headline { font: 600 clamp(20px, 3vw, 26px)/1.35 var(--serif); color: var(--ink); }
.result .aged { margin-top: 12px; color: var(--amber); font-weight: 500; }
.result .aged span { color: var(--ink2); font-weight: 400; }
.result .filechecks { margin-top: 14px; }
.result .filechecks li { font-size: 13.5px; color: var(--muted); margin-left: 18px; }
.result .unlock { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.result .status { color: var(--muted); font-size: 15px; }
.result .error { color: var(--amber); font-weight: 500; }
table.bycheck { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14.5px; }
table.bycheck th, table.bycheck td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--hairline); }
table.bycheck th { font-weight: 600; color: var(--ink); }
table.bycheck td.num, table.bycheck th.num { text-align: right; white-space: nowrap; }
table.bycheck .src { font-size: 12.5px; color: var(--muted); display: block; }
.examples { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.example { border: 1px solid var(--hairline); border-radius: 10px; padding: 14px 16px; background: var(--paper); }
.example .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.example .meta b { color: var(--ink); font-weight: 600; }
.example .desc { margin-top: 8px; color: var(--ink); font-size: 15px; }
.example ul { margin: 8px 0 0; padding-left: 18px; }
.example li { font-size: 13.5px; color: var(--ink2); margin-top: 4px; }
.example li.warn { color: var(--amber); }
.example li .src { color: var(--muted); }
.pilot { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.btns { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.again { margin-top: 22px; }

/* ---------------------------------------- the checks inside Reeve */
/* One picture of the product, in two sizes. Both img elements are in the
   page from the start, so both files are fetched while the page loads and
   switching between them later asks the network for nothing. Above 800 px
   the wide picture shows; at 800 px and below the narrow one does, because
   the wide one scaled down that far could not be read. */
.inreeve .small { margin-top: 14px; }
.appshot { margin-top: 22px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); overflow: hidden; }
.appshot img { display: block; width: 100%; height: auto; }
.appshot .narrow { display: none; }
.appshot figcaption { padding: 10px 14px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--muted); }

/* ----------------------------------------------- what this checks */
ol.checks { padding-left: 22px; margin: 10px 0 0; }
ol.checks li { margin-top: 12px; }
ol.checks li b { color: var(--ink); }
ol.checks .src { font-size: 13px; color: var(--muted); display: block; }
.sources li { margin-top: 6px; }
.disclaimer { margin-top: 36px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: 18px; }

/* --------------------------------------------------------- the forms */
main.check form[hidden], main.check section[hidden] { display: none; }
main.check .contact-card { margin-top: 24px; max-width: 640px; }
main.check .done { margin-top: 24px; }
main.check .done p + p { margin-top: 10px; }
main.check .done .closetab { margin-top: 14px; }
main.check .warnline { color: var(--amber); font-weight: 500; }
main.check .field .small { margin-top: 2px; }

@media (max-width: 800px) {
  .appshot .wide { display: none; }
  .appshot .narrow { display: block; max-width: 390px; margin: 0 auto; }
  main.check { padding: 20px 16px 72px; }
  .result { padding: 18px 16px; }
  .dropzone { padding: 20px 16px; }
  table.bycheck { font-size: 13px; }
  table.bycheck th, table.bycheck td { padding: 6px 6px; }
}

/* A heading for assistive technology only: the result's own headline is
   what sighted visitors read. */
.sr-heading { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
