/* The checking page. Calm and plain: it is read by lawyers, mediators and parents under strain.
   The same "Evergreen and paper" look as coparentally.com (assets/site.css), kept in its own small
   file so the checker loads nothing it does not need. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ground: #f6f3ec;
  --surface: #ffffff;
  --sand: #ede8dd;
  --text: #13201b;
  --text-2: #3f4b46;
  --muted: #5a6661;
  --line: #ddd6c8;
  --accent: #0c6b4b;
  --accent-hover: #095a3f;
  --on-accent: #ffffff;
  --accent-soft: #e1f0e8;
  --accent-line: #bcdccc;
  --good: #0c6b4b;
  --good-soft: #e1f0e8;
  --bad: #9b1c1c;
  --bad-soft: #fbe9e6;
  --radius: 16px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1512;
    --surface: #151e1a;
    --sand: #121b17;
    --text: #ecefea;
    --text-2: #bac4be;
    --muted: #95a09a;
    --line: #27332e;
    --accent: #5fd3a6;
    --accent-hover: #82e0bb;
    --on-accent: #06261b;
    --accent-soft: #15302a;
    --accent-line: #24493c;
    --good: #7fe0b9;
    --good-soft: #15302a;
    --bad: #ff9f94;
    --bad-soft: #3a1a17;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Page chrome, matching coparentally.com. */
.topbar { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line);
          background: color-mix(in srgb, var(--ground) 90%, transparent);
          -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.topbar__in { max-width: 1000px; margin: 0 auto; padding: 0 20px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 20px/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(19, 32, 27, .08); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
         color: var(--accent); background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line); white-space: nowrap; }
@media (max-width: 380px) { .badge { display: none; } }

.foot { border-top: 1px solid var(--line); }
.foot__in { max-width: 1000px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.foot a { color: var(--muted); font-weight: 550; text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .foot__brand { color: var(--text-2); }

.wrap { max-width: 1000px; margin: 0 auto; padding: 56px 20px 80px; }
@media (max-width: 600px) { .wrap { padding: 36px 16px 64px; } .topbar__in, .foot__in { padding-left: 16px; padding-right: 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

h1 { font: 520 clamp(40px, 6vw, 60px)/1.05 var(--serif); margin: 8px 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 0 0 12px; font-weight: 650; letter-spacing: -0.01em; }

.eyebrow { margin: 0; color: var(--accent); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
.lede { font-size: 19px; color: var(--text-2); max-width: 40em; margin: 0; }

.picker { margin: 36px 0 32px; }

.drop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  place-items: center;
  text-align: center;
  padding: 48px 20px 40px;
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 20px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.drop:hover, .drop.is-over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
              color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.drop__title { font-weight: 650; font-size: 20px; color: var(--text); }
.drop__hint { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .drop { padding: 36px 16px 32px; } }
.drop input { margin-top: 14px; max-width: 100%; min-width: 0; font: inherit; font-size: 15px; color: var(--text-2); }
.drop input::file-selector-button {
  font: 600 15px/1 var(--sans); color: var(--on-accent); background: var(--accent); border: 0; border-radius: 999px;
  padding: 11px 18px; margin-right: 12px; cursor: pointer;
}

.private, .fine { color: var(--muted); font-size: 14.5px; }
.private { display: flex; gap: 8px; align-items: flex-start; margin: 14px 4px 0; }
.private svg { flex: none; margin-top: 3px; color: var(--accent); }

.result { margin: 8px 0 44px; outline: none; }
.checking { color: var(--muted); }

.verdict { border-radius: var(--radius); padding: 22px 24px; margin-bottom: 24px; border: 1px solid transparent; }
.verdict h2 { font: 520 26px/1.2 var(--serif); letter-spacing: -0.01em; margin-bottom: 6px; }
.verdict p { margin: 0; }
.verdict ul { margin: 10px 0 0; padding-left: 20px; }
.verdict--intact { background: var(--good-soft); color: var(--good); border-color: var(--accent-line); }
.verdict--intact p { color: var(--text); }
.verdict--altered, .verdict--unreadable { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.verdict--altered p, .verdict--altered li, .verdict--unreadable p { color: var(--text); }

.facts { display: grid; gap: 6px 20px; margin: 0 0 28px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts div { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts .fine { margin: 6px 0 0; }

.block { margin: 32px 0; }

.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--sand); }
tbody tr:last-child td { border-bottom: 0; }
tr.is-flagged td { background: var(--bad-soft); }

.mono { font-family: var(--mono); font-size: 14px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.number { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

details.content { margin-top: 6px; }
details.content summary, .rules summary { cursor: pointer; color: var(--accent); font-weight: 550; }
details pre {
  margin: 6px 0 0; padding: 10px; border-radius: 8px; background: var(--ground);
  font: 13px/1.45 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}

.rules { margin: 28px 0; }
.rules ol { padding-left: 20px; color: var(--text-2); font-size: 15px; }

.button {
  font: inherit; font-weight: 600; font-size: 16px; color: var(--on-accent); background: var(--accent); border: 0;
  border-radius: 999px; padding: 12px 22px; cursor: pointer;
}
.button:hover { background: var(--accent-hover); }
.button:focus-visible, .drop:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }

.explain {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px;
  border-top: 1px solid var(--line); padding-top: 40px;
}
.explain ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.explain li { position: relative; padding-left: 28px; color: var(--text-2); }
.explain li strong { color: var(--text); }
.explain .shows li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line);
}
.explain .shows li::after {
  content: ""; position: absolute; left: 6px; top: calc(.32em + 4px); width: 4px; height: 8px;
  border: solid var(--accent); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}
.explain .cannot li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 17px; height: 17px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
.explain .cannot li::after {
  content: ""; position: absolute; left: 5px; top: calc(.32em + 8px); width: 7px; height: 1.5px; background: var(--muted);
}
.explain .fine { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .explain { grid-template-columns: 1fr; gap: 24px; } }

@media print {
  :root { --ground: #fff; --surface: #fff; --sand: #f2f2f2; --text: #000; --text-2: #222; --muted: #333; --line: #bbb; }
  .picker, .actions, .skip, .topbar, .foot { display: none; }
  details.content[open] pre, details pre { white-space: pre-wrap; }
  .verdict { border: 1px solid #999; }
  tr { break-inside: avoid; }
}
