/* CaseModel website: css/p-evidence-integrity.css
   Evidence Forensics' own three worked examples: one letter in two copies laid one over the other, a minute dated before
   the software that made it, and the findings gathered by issue, by witness and by whose favour they run. */

/* a name and the comma after it kept on one line */
.nb { white-space: nowrap; }

/* ---- one letter, two copies: the control ---- */
.ov-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ov-scale { display: flex; align-items: center; gap: 12px; font: 600 14.5px/1 var(--display); color: var(--text-3); white-space: nowrap; cursor: pointer; }
.ov-scale input { -webkit-appearance: none; appearance: none; width: clamp(150px, 18vw, 240px); height: 44px; margin: 0; background: none; cursor: pointer; }
.ov-scale input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(var(--navy), var(--navy)) 0 0 / var(--p, 100%) 100% no-repeat, #c5d3e4; }
.ov-scale input::-moz-range-track { height: 6px; border-radius: 3px; background: #c5d3e4; }
.ov-scale input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--navy); }
.ov-scale input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); box-shadow: 0 2px 6px rgb(0 40 96 / .25); }
.ov-scale input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); box-shadow: 0 2px 6px rgb(0 40 96 / .25); }
.ov-scale input:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.ov-play { min-height: 44px; }

/* ---- the two copies. Both stand in one place, laid over; the script draws them apart by --u (0 apart, 1 laid over) ---- */
.ov-stage { --u: 1; display: grid; justify-items: center; padding: var(--py, 0px) 0; }
.ov-doc { grid-area: 1 / 1; position: relative; width: min(500px, calc(50% - 16px)); padding: 22px 26px 24px; will-change: transform; }
.ov-doc.theirs { z-index: 2; background: rgb(255 255 255 / calc(1 - var(--u))); box-shadow: 0 1px 2px rgb(0 40 96 / calc(.06 * (1 - var(--u)))); }
.ov-who { margin: 0 0 10px; font: 700 12.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--azure-dd); opacity: calc(1 - var(--u) * 1.4); }
.ov-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 700 14px/1.3 var(--display); letter-spacing: .04em; color: var(--navy); }
.ov-h span { font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.ov-t { margin: 0 0 14px; font-size: 17.5px; line-height: 1.6; }
.ov-s { margin: 0; font-size: 16px; }
/* every word that agrees falls back to pale as the copies come together */
.ov-doc .w { color: var(--text); color: color-mix(in srgb, var(--text) calc((1 - var(--u)) * 100%), #b4c3d5); }
.ov-doc .ov-h, .ov-doc .ov-h span { color: color-mix(in srgb, var(--navy) calc((1 - var(--u)) * 100%), #b4c3d5); }
.ov-doc .ov-h { border-bottom-color: color-mix(in srgb, var(--line) calc((1 - var(--u)) * 100%), #e9eff7); }
/* in the Importer's copy, the place their five words take: kept the same width, so the lines fall in the same places */
.ov-gap { padding: 1px 2px; margin: 0; border-radius: 3px; font-weight: 600; color: transparent; box-shadow: inset 0 -2px 0 #c5d3e4; }
.ov-doc mark.red { position: relative; padding: 1px 2px; margin: 0; }

.ov-caps { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px 24px; align-items: start; margin-top: 22px; }
.ov-cap { margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: 15px; line-height: 1.35; color: var(--text-3); }
.ov-cap > b { font: 700 15.5px/1.3 var(--display); color: var(--navy); }
.ov-cap.ours { text-align: right; align-items: flex-end; }
.ov-cap.verdict { align-items: center; text-align: center; gap: 8px; padding-top: 2px; font: 600 15px/1.3 var(--display); color: var(--red-d); }
.ov-fp { margin-top: 4px; font: 600 13.5px/1.3 var(--display); color: var(--text-3); }
.ov-fp b { white-space: nowrap; margin-left: 6px; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.ov-say { margin: 22px 0 0; font: 600 17px/1.45 var(--display); color: var(--navy); text-align: center; min-height: 2.9em; }

/* the fact that comes with the result: their copy's own saved history */
.ov-hist { margin-top: 18px; padding: 20px clamp(16px, 2.4vw, 26px); border-radius: 10px; background: var(--sky-2); border: 1px solid var(--line-2); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js #overlay:not(.over) .ov-hist { opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .3s, transform .3s, visibility 0s .3s; }
.ov-hist-h { margin: 0 0 14px; font: 700 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ov-saves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 40px); counter-reset: sv; }
.ov-saves li { position: relative; padding-left: 50px; counter-increment: sv; display: flex; flex-direction: column; gap: 3px; font-size: 16px; line-height: 1.45; color: var(--text-2); }
.ov-saves li::before { content: counter(sv); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 15px/1 var(--display); z-index: 1; }
.ov-saves li:first-child::after { content: ''; position: absolute; top: 16px; left: 34px; right: calc(clamp(20px, 3vw, 40px) * -1); height: 2px; background: var(--edge); }
.ov-saves li.late::before { background: var(--red); }
.ov-saves li > b { font: 700 16px/1.3 var(--display); color: var(--navy); }
.ov-saves li > .num { font-weight: 600; font-size: 15px; color: var(--text-3); }
.ov-saves li.late > .num { color: var(--red-d); }
.ov-saves mark { padding: 1px 3px; margin: 0 -1px; border-radius: 3px; font-weight: 600; background: var(--red-bg); color: var(--red-dd); box-shadow: inset 0 -2px 0 var(--red); }
.ov-res { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 700 17px/1.35 var(--display); color: var(--navy); }

@media (max-width: 760px) {
  .ov-ctl { width: 100%; }
  .ov-scale { flex: 1 1 100%; }
  .ov-scale input { flex: 1; width: auto; min-width: 0; }
  .ov-play { flex: 1 1 100%; }
  .ov-doc { width: 100%; padding: 18px 18px 20px; }
  .ov-t { font-size: 16.5px; }
  .ov-caps { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .ov-fp b { display: block; margin: 2px 0 0; }
  .ov-cap.verdict { grid-column: 1 / -1; grid-row: 2; flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .ov-saves { grid-template-columns: 1fr; gap: 18px; }
  .ov-saves li:first-child::after { top: 34px; bottom: -18px; left: 16px; right: auto; width: 2px; height: auto; }
}

/* ---- the minute ---- */
.mn-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.mn-f { display: flex; gap: 14px; margin: 0 0 .45em; }
.mn-f b { flex: none; width: 70px; font: 600 14px/1.6 var(--display); color: var(--text-3); }
.mn-res { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--line-2); }
.mn-by { margin: 0; font-size: 15px; color: var(--text-3); }
.mn-k { margin: 0 0 10px; font: 700 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.mn-rows { margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.mn-rows div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.mn-rows dt { font-size: 16px; color: var(--text-2); }
.mn-rows dd { margin: 0; font: 700 16px/1.5 var(--display); color: var(--navy); }
.mn-rows .hot dd { color: var(--red-d); }
.mn-rows:last-child { margin-bottom: 0; }

/* one long line of time, October 2023 to March 2024 */
.tl { position: relative; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0 4px; }
.tl-pins { position: relative; height: 54px; }
.tl-pin { position: absolute; bottom: 8px; margin: 0; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.tl-pin.a { left: calc(var(--x) - 8px); }
.tl-pin.b { right: calc(100% - var(--x) - 8px); text-align: right; align-items: flex-end; }
.tl-pin b { font: 700 16px/1.2 var(--display); color: var(--navy); }
.tl-pin span { font-size: 14.5px; line-height: 1.2; color: var(--text-3); }
.tl-pin.b b { color: var(--red-d); }
.tl-track { position: relative; height: 22px; }
.tl-axis { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--edge); }
.tl-tick { position: absolute; left: var(--x); top: 5px; width: 1.5px; height: 12px; margin-left: -.75px; background: #9fb6d1; }
.tl-span { position: absolute; left: var(--a); width: calc(var(--b) - var(--a)); top: 8px; height: 6px; border-radius: 3px; background: var(--red-bg); box-shadow: inset 0 0 0 1px #f3b7aa; transform-origin: left center; transition: transform 1.1s var(--ease) .3s; }
.tl-m { position: absolute; left: var(--x); top: 3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); z-index: 1; }
.tl-m.b { border-color: var(--red); }
.tl-months { position: relative; height: 26px; margin-top: 6px; }
.tl-months i { font-style: normal; }
.tl-months span { position: absolute; left: var(--x); transform: translateX(-50%); font: 600 13.5px/1 var(--display); color: var(--text-3); white-space: nowrap; }
.tl-br { position: relative; height: 40px; margin-left: var(--a); width: calc(var(--b) - var(--a)); transition: opacity .5s var(--ease) 1.2s; }
.tl-br i { position: absolute; left: 0; right: 0; top: 0; height: 12px; border: 2px solid var(--red); border-top: 0; border-radius: 0 0 4px 4px; }
.tl-br b { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font: 800 17px/1 var(--display); color: var(--red-d); white-space: nowrap; letter-spacing: -.01em; }
.js #impossible:not(.in) .tl-span { transform: scaleX(0); }
.js #impossible:not(.in) .tl-br { opacity: 0; }

/* the innocent explanations, and what would settle it */
.mn-weigh { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(26px, 3vw, 38px); padding-top: clamp(22px, 3vw, 32px); border-top: 1px solid var(--line-2); }
.q { border-top: 1px solid var(--line); }
.q:last-of-type { border-bottom: 1px solid var(--line); }
.q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 8px 2px; font: 700 16.5px/1.3 var(--display); color: var(--navy); cursor: pointer; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: -4px 6px 0 0; border: solid var(--azure-dd); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease), margin .2s var(--ease); }
.q[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.q summary:hover { color: var(--azure-dd); }
.q p { margin: 0 0 14px; padding: 0 2px; font-size: 16.5px; line-height: 1.5; color: var(--text-2); max-width: 36em; }
.mn-line { margin: 22px 0 0; font: 800 clamp(20px, 2vw, 25px)/1.25 var(--display); color: var(--red-d); letter-spacing: -.015em; }
.mn-or { list-style: none; margin: 0; padding: 0; counter-reset: or; }
.mn-or li { position: relative; padding: 4px 0 26px 50px; counter-increment: or; font-size: 16.5px; line-height: 1.45; color: var(--text); }
.mn-or li::before { content: counter(or); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 15px/1 var(--display); z-index: 1; }
.mn-or li::after { content: ''; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--edge); }
.mn-or li:last-child { padding-bottom: 0; }
.mn-or li:last-child::after { display: none; }

@media (max-width: 860px) {
  .mn-top, .mn-weigh { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tl-months span i { display: none; }
  .tl-pin b { font-size: 15px; }
  .tl-pin span { font-size: 13.5px; }
  .tl-months span { font-size: 12.5px; }
  /* the two labels in two rows, so they never meet */
  .tl-pins { height: 92px; }
  .tl-pin.a { bottom: 48px; }
}

/* ---- the findings, gathered ---- */
.pt { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pt-row { margin-bottom: 22px; }
.pt-l { display: flex; align-items: baseline; gap: 14px; margin: 0 0 9px; }
.pt-l b { flex: none; min-width: 4.6em; font: 800 21px/1.1 var(--display); color: var(--navy); letter-spacing: -.02em; }
.pt-l span { font-size: 16.5px; line-height: 1.35; color: var(--text-2); }
.pt-row.fav .pt-l b { color: var(--red-d); }
.pt-row.fav .pt-l span { color: var(--text); font-weight: 600; }
/* a bar for all 34 findings; the filled part is the share the row names */
.pt-bar { position: relative; display: block; height: 14px; border-radius: 7px; background: var(--sky-4); overflow: hidden; }
.pt-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--n) / 34 * 100%); background: var(--navy); transition: width 1s var(--ease); }
.pt-row:nth-child(2) .pt-bar i { transition-delay: .25s; }
.pt-row.fav .pt-bar i { background: var(--red); transition-delay: .5s; }
.js #gather:not(.in) .pt-bar i { width: 0; }
.pt-key { margin: 4px 0 0; font-size: 14.5px; color: var(--text-3); }
.pt-doc p { font-size: 18px; line-height: 1.5; }
.pt-doc .pt-doc-n { margin: 6px 0 0; font-size: 14.5px; color: var(--text-3); }
.pt-end { margin: 0; padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 40px); border-top: 1px solid var(--line-2); background: var(--sky-1); font: 700 clamp(19px, 1.8vw, 24px)/1.4 var(--display); color: var(--navy); letter-spacing: -.012em; max-width: none; }
@media (max-width: 860px) { .pt { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pt-l { flex-direction: column; gap: 3px; } }
