/* A customer's proof, on a phone held in one hand. Topo's own paper palette
 * (topo/topo.css), because it is the same shop talking. Shared by the proof
 * service's page and the local viewer `carto proof` writes. */

:root {
  --paper: #f4f1ea;
  --paper-sunk: #eae5da;
  --ink: #1d2328;
  --ink-soft: #5d6970;
  --line: #d7d0c4;
  --accent: #2f5d7c;
  --good: #3c6e47;
  --bad: #9b3b32;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.4 ui-sans-serif, "Source Sans 3", system-ui, -apple-system, sans-serif;
}

body { display: grid; grid-template-rows: auto 1fr auto; }

header { padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
h1 { margin: 0; font-size: 17px; font-weight: 600; }
.facts { color: var(--ink-soft); font-size: 13px; }

#sheet { background: var(--paper-sunk); }
/* See proof-viewer.js: overlap tiles by a pixel only between zoom steps.
 * Leaflet's own stylesheet draws tiles with `mix-blend-mode: plus-lighter`,
 * which adds overlapping pixels together, so an overlap under it is a bright
 * seam rather than a hidden one; it is put back to ordinary drawing here. */
#sheet.fractional img.leaflet-tile {
  width: var(--tile-over) !important;
  height: var(--tile-over) !important;
  mix-blend-mode: normal;
}

footer {
  display: grid;
  gap: 8px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }

button {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

button.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
  padding: 11px 18px;
  font-size: 15px;
}

button.primary.wide { width: 100%; }
button:disabled { opacity: 0.5; }

#detail.at-print { color: var(--accent); font-weight: 600; }
.said { color: var(--ink); }
.said.good { color: var(--good); font-weight: 600; }
.said.bad { color: var(--bad); }

dialog {
  border: none;
  border-radius: 14px;
  padding: 20px;
  max-width: 320px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
dialog::backdrop { background: rgba(29, 35, 40, 0.45); }
dialog h2 { margin: 0 0 8px; font-size: 17px; }
dialog p { margin: 0 0 16px; color: var(--ink-soft); }
dialog .row { justify-content: flex-end; }

.empty { display: grid; place-items: center; padding: 32px; text-align: center; color: var(--ink-soft); }
