/* KANIT-KORDON (16 Kas 2026): the evidence block of /kanit/ and /en/proof/ in Leap's /evidence arrangement, in our look (cream
   ground, butter for the lit row, the green cord, warm lift shadows). Loaded after pages.css, so every rule here is scoped to
   .kord and wins over the older pane rules without touching them. The cord's own strokes are set by assets/js/kordon.js. */
.ev-grid.kord{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);grid-template-rows:auto 1fr;grid-template-areas:"tv sheet" "claims sheet";gap:clamp(28px,3vw,44px) clamp(48px,7vw,120px);align-items:start}
.kord .ev-tv{grid-area:tv;min-width:0}
.kord .ev-right{grid-area:sheet;position:relative;min-width:0}
.kord .cord{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:4}

/* the claim rows: real buttons; the lit one is butter, lifted and nudged toward the page (Leap: translateX(6px) on a spring) */
.kord .claims{grid-area:claims;list-style:none;margin:0;padding:0;display:grid;gap:8px}
.kord .claims li{display:block;padding:0;background:none;box-shadow:none;border-radius:0;cursor:auto;transform:none}
.kord .claims button{width:100%;min-height:var(--tap);display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 16px;align-items:center;padding:14px 18px;border:0;border-radius:20px;background:var(--paper);box-shadow:inset 0 -4px 0 rgba(60,40,15,.07);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .25s,box-shadow .25s,transform .45s var(--spring)}
.kord .claims time{grid-row:span 2;display:grid;place-items:center;width:58px;height:40px;border-radius:13px;background:rgba(22,38,30,.08);color:var(--ink);font:700 .9rem var(--body);font-variant-numeric:tabular-nums;transition:background .25s,color .25s}
.kord .claims b{font-weight:600;font-size:1.06rem;line-height:1.3}
.kord .claims small{grid-column:2;color:var(--ink-2);font-weight:600;font-size:.9rem}
.kord .claims button[aria-pressed=true]{background:var(--butter);box-shadow:inset 0 -4px 0 rgba(60,40,15,.12),var(--lift);transform:translateX(6px)}
.kord .claims button[aria-pressed=true] time{background:var(--green-deep);color:#fff}
.kord .claims button:focus-visible{outline:3px solid var(--green-deep);outline-offset:3px}
@media(hover:hover)and (pointer:fine){.kord .claims button:not([aria-pressed=true]):hover{background:#fff;transform:translateX(3px)}}

/* the page stack: with script (html[data-js], set before first paint) every quoted page is a sheet on the desk, the lit
   claim's page in front; without script the pages simply follow each other (pages.css) */
.kord .ev-doc,.kord #ev-doc{background:none;box-shadow:none;border-radius:0;overflow:visible;max-height:none}
.kord .doc-bar{position:static;background:none;border:0;padding:0 0 16px}
html[data-js] .kord .pages{position:relative;aspect-ratio:1192/1686}
html[data-js] .kord #ev-doc .doc-page{display:block;position:absolute;inset:0;margin:0;background:#fff;border-radius:8px;box-shadow:var(--lift);transition:transform .5s var(--spring),filter .35s}
html[data-js] .kord .doc-page img{width:100%;height:100%;border-radius:8px}
html[data-js] .kord .pages[data-n="2"] .doc-page[data-at="0"]{transform:translate(-9%,3%) rotate(-4deg)}
html[data-js] .kord .pages[data-n="2"] .doc-page[data-at="1"]{transform:translate(6%,-2%) rotate(3deg)}
html[data-js] .kord .pages .doc-page.front[data-at]{z-index:2;transform:rotate(.6deg)}
html[data-js] .kord .pages .doc-page:not(.front){filter:brightness(.94) saturate(.82)}
html:not([data-js]) .kord .doc-page+.doc-page{margin-top:16px}
.kord .doc-page{background:#fff;border-radius:8px;box-shadow:var(--lift)}
.kord .page-badge{left:12px;right:auto;top:12px}

/* the quote card: the lit source sentence and where it stands; .swap/.out (home.css) fade it to the next one */
.kord .ev-quote{position:relative;z-index:3;margin-top:clamp(30px,3vw,44px);padding:22px 24px;border-radius:22px;background:var(--paper);box-shadow:var(--lift)}
.kord .ev-quote p{font-family:var(--serif);font-size:clamp(1.12rem,1.4vw,1.32rem);line-height:1.45;color:var(--ink)}
.kord .ev-quote mark{background:linear-gradient(transparent 55%,#ffe27a 55%);color:inherit;padding:0 2px}
.kord .ev-quote small{display:block;margin-top:10px;font-family:var(--body);font-size:.9rem;color:var(--ink-2)}

@media(max-width:900px){
  .ev-grid.kord{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"tv" "claims" "sheet";gap:28px}
  html[data-js] .kord .pages{width:min(84%,440px);margin:0 auto}
  html[data-js] .kord .pages[data-n="2"] .doc-page[data-at="0"]{transform:translate(-6%,2%) rotate(-3deg)}
  html[data-js] .kord .pages[data-n="2"] .doc-page[data-at="1"]{transform:translate(4%,-1.5%) rotate(2.5deg)}
  .kord .claims button[aria-pressed=true]{transform:none}
  .kord .ev-quote{margin-top:26px;padding:18px 20px}
  .kord .doc-bar{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
  .kord .claims button,.kord .claims time,html[data-js] .kord #ev-doc .doc-page{transition:none}
}
