/* Stories and story pages (threads.js, claim.js). Owner: Stories agent. Mockup: docs/design/proof-sheet/story-v1.html */

/* ---------- list ---------- */
.st-list .sheet { padding-top: 6px; }

/* ---------- header frame ---------- */
.st-head { margin-top: 10px; }
.st-head .neg { padding: 10px 14px 4px; }
.st-head .neg-pic { aspect-ratio: auto; min-height: clamp(300px, 32vw, 420px); display: flex; align-items: flex-end; }
.st-head .neg-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000c, transparent 65%); }
.st-head .neg-blank .neg-pic::after { display: none; }
.st-head .neg-pic .cond, .st-head .neg-blank .neg-pic .cond { position: relative; inset: auto; min-width: 0; z-index: 1; padding: 40px 28px 26px; text-align: left; max-width: 820px; }
.st-head .neg-blank .neg-pic .cond { max-width: none; }
.st-head h1 { font-size: clamp(46px, 7.4vw, 96px); }
.st-dek { display: block; margin-top: 12px; max-width: 560px; font: 400 22px/1.3 var(--serif); text-transform: none; letter-spacing: 0; text-wrap: pretty; }
.st-head .neg-foot { min-height: 0; padding-top: 4px; }
.st-read { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; background: var(--film); padding: 8px 16px 16px; font-size: 14px; color: var(--dim); --mk: 30px; }
.st-read .marks { gap: 10px; }
.st-read p span::before { content: " · "; }

/* ---------- sections ---------- */
.st-sec { padding-top: 44px; }
.st-key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 13px; color: var(--dim); }
.st-key span { display: flex; align-items: center; gap: 6px; }
.st-key span::before { content: ""; width: 18px; border-top: 3px solid var(--c); }
.st-key .r-repeats::before { border-top-style: dashed; }
.st-key .sw::before { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--ink); }
.st-key .st-key-p::before { width: 10px; height: 12px; border: 0; background: var(--paper); }

/* relation colours: "says the same" is ink, never green (it is not confirmation) */
.r-matches { --c: var(--ink); } .r-partly-matches { --c: var(--part); } .r-contradicts { --c: var(--no); } .r-repeats { --c: var(--q); }

/* ---------- who said it again: arcs ---------- */
.st-arc { position: relative; margin-top: 18px; font-size: 12px; line-height: 1.25; color: var(--dim); }
.st-arc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-arc path { fill: none; vector-effect: non-scaling-stroke; }
.st-arc .axis { stroke: #3a4344; }
.st-arc .gap { stroke: var(--table); stroke-width: 6; }
.st-arc .brk { stroke: var(--dim); stroke-width: 1.5; }
.st-arc .lead { stroke: #3a4344; stroke-dasharray: 2 3; }
.st-arc [class^="r-"] { stroke: var(--c); stroke-width: 2; stroke-linecap: round; filter: url(#wax); }
.st-arc .r-repeats { stroke-dasharray: 5 6; }
.st-arc path.sw { stroke-width: 3.5; }
.st-arc i { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 2px solid var(--c); background: var(--table); }
.st-arc i.sw { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--c); }
.st-arc .st-o { width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 0; background: var(--ink); z-index: 1; }
.st-arc .st-p { width: 12px; height: 15px; margin: 0 0 0 -6px; border: 0; border-radius: 0; background: var(--paper); }
.st-lab { position: absolute; white-space: nowrap; }
.st-lab b { display: block; color: var(--ink); font-weight: 600; }
.st-tick { position: absolute; transform: translateX(-50%); color: var(--q); font-size: 11px; }

/* phones and narrow screens: a vertical timeline (always the accessible version) */
.st-tl { list-style: none; padding: 0; margin: 18px 0 0; border-left: 2px solid #3a4344; }
.st-tl li { position: relative; padding: 0 0 14px 20px; font-size: 14px; color: var(--dim); }
.st-tl li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--c, var(--q)); background: var(--table); }
.st-tl li.sw::before { background: var(--c); }
.st-tl .st-tl-o::before { width: 12px; height: 12px; left: -9px; border: 0; background: var(--ink); }
.st-tl .st-tl-p::before { border: 0; border-radius: 0; height: 12px; background: var(--paper); }
.st-tl b { display: block; color: var(--ink); font-weight: 600; }
@media (min-width: 900px) { .st-tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 899px) { .st-arc { display: none; } }

/* ---------- the claims ---------- */
.st-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 30px 0 6px; --mk: 18px; }
.st-group h3 { font-size: 26px; }
.st-group a { text-decoration: none; }
.st-group a:hover { text-decoration: underline; }
.st-rows { margin-top: 12px; }
.st-row { border-top: 1px solid var(--rule); }
.st-row:last-child { border-bottom: 1px solid var(--rule); }
.st-row summary { display: grid; grid-template-columns: 54px 40px 1fr auto; gap: 0 14px; align-items: center; padding: 16px 0; cursor: pointer; list-style: none; --mk: 30px; }
.st-row summary::-webkit-details-marker { display: none; }
.st-n { font-size: 30px; color: var(--q); }
.st-row h3 { font: 400 26px/1.15 var(--serif); }
.st-meta { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--dim); }
.st-meta::after { content: "+"; width: 10px; color: var(--ink); }
.st-row[open] .st-meta::after { content: "−"; }
.st-meta b { font-weight: 600; }
.s-confirmed { color: var(--ok); } .s-partly-confirmed { color: var(--part); } .s-unaddressed { color: var(--dim); } .s-denied, .s-refuted { color: var(--no); }
.st-panes { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2px; }
.st-said, .st-rec { padding: 26px 28px; }
.st-said { background: var(--film); }
.st-said .edge { color: var(--q); }
.st-panes .serif { font-size: 21px; line-height: 1.35; margin: 10px 0 8px; text-wrap: pretty; }
.st-said a, .st-links a { display: inline-block; margin: 8px 14px 0 0; font-size: 14px; font-weight: 600; }
.st-st { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; --mk: 22px; }
.st-echoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; margin-top: 8px; align-items: start; }
.st-echo { background: var(--film); padding: 10px 12px 12px; }
.st-echo-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.st-echo > b { display: block; font-size: 16px; }
.st-echo > small { display: block; color: var(--dim); font-size: 13px; }
.st-rel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--c); }
.st-rel::before { content: ""; width: 16px; border-top: 3px solid var(--c); }
.st-rel.r-repeats::before { border-top-style: dashed; }
.st-rel .pill { color: var(--dim); }
.st-note { margin-top: 10px; font: 15px/1.4 var(--serif); color: #c9ceca; }
.st-links { margin: 0; }
.st-row > :last-child { margin-bottom: 24px; }
.st-cmp, .st-also { margin-top: 16px; }
.st-cmp h4 { font-size: 15px; }
.st-cmp ul, .st-facility, .st-topics { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 8px; }
.st-cmp li, .st-facility li { background: var(--film); padding: 12px 14px; font-size: 14px; }
.st-cmp li > a, .st-facility li > b { display: block; font-weight: 600; font-size: 16px; }
.st-cmp p, .st-facility p { color: var(--dim); margin: 4px 0; }
.st-facility { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.st-facility a { margin-right: 10px; font-size: 13px; }
.st-also { font-size: 15px; color: var(--dim); max-width: 760px; }

/* ---------- folds ---------- */
.st-fold { margin-top: 44px; }
.st-fold + .st-fold { margin-top: 0; }
.st-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-top: 1px solid var(--rule); }
.st-fold:last-of-type > summary { border-bottom: 1px solid var(--rule); }
.st-fold[open] > summary { border-bottom: 0; }
.st-fold > summary::-webkit-details-marker { display: none; }
.st-fold > summary::after { content: "+"; font-size: 28px; line-height: 1; }
.st-fold[open] > summary::after { content: "−"; }
.st-fold > summary h2 { font-size: clamp(24px, 2.6vw, 32px); }
.st-fold h3 { font-size: 18px; margin: 26px 0 10px; }
.st-prose { max-width: 720px; font: 19px/1.55 var(--serif); }
.st-prose p + p { margin-top: .8em; }
.st-slate { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-top: 26px; font-size: 14px; max-width: 760px; }
.st-slate dt { color: var(--dim); }
.st-slate dd { margin: 0; }
.st .srcs { padding-left: 18px; display: grid; gap: 6px; font-size: 15px; }
.st .srcs small { color: var(--dim); }
.st ul.rec { list-style: none; padding: 14px; display: grid; gap: 12px; }
.st ul.rec a { display: flex; gap: 14px; text-decoration: none; }
.st ul.rec .t { display: grid; gap: 2px; font-size: 14px; }
.st ul.rec .t > span:not(.tags) { color: var(--paper-dim); }
.st .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.st .tags .chip { padding: 2px 8px; font-size: 12px; }
.st .paper .chip { border-color: #c9ccc6; }
.st .duo { flex: none; display: block; width: 96px; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; border: 1px solid #bbb; transform: rotate(-1.5deg); }
.st .duo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st .duo.none { display: grid; place-items: center; font-size: 11px; color: var(--paper-dim); text-align: center; }

/* videos */
.st-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px 12px; margin-top: 8px; }
/* the walk-through (the depth canvas over a frame is styled in sheet.css) */
.th-steps { list-style: none; padding: 0; display: grid; gap: 34px; margin-top: 10px; }
.th-step { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 24px; }
.th-rail { display: grid; align-content: start; gap: 2px; padding-top: 6px; }
.th-body { display: grid; gap: 14px; max-width: 900px; }
.th-paper { display: flex; gap: 16px; padding: 16px; align-items: flex-start; max-width: 720px; }
.th-paper figcaption { display: grid; gap: 4px; font-size: 14px; }
.th-paper figcaption b { font-size: 16px; }
.th-paper figcaption > span:not(.tags):not(.edge) { color: var(--paper-dim); }
.th-open { font-weight: 600; }
.th-pair { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 20px; align-items: start; }
.st blockquote { border-left: 3px solid var(--edge); padding-left: 18px; max-width: 720px; font: italic 21px/1.4 var(--serif); }
.st blockquote cite { display: block; margin-top: 6px; font: 13px Archivo, sans-serif; color: var(--dim); }
.th-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.th-cite { font-size: 13px; color: var(--dim); max-width: 760px; }
.th-standing { margin-top: 34px; padding: 26px 28px; max-width: 900px; }
.th-standing h3 { margin-top: 0; }
.th-standing .th-cite { color: var(--paper-dim); margin-top: 14px; }
.st .disclose summary { cursor: pointer; font-size: 14px; color: var(--dim); }
.st .disclose .kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.st .disclose .kv dd { margin: 0; }
.st .disclose, .st .disclose .small { font-size: 13px; color: var(--dim); }
.th-next { margin-top: 40px; }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .st-head .neg { padding: 8px 8px 2px; }
  .st-head .neg-pic { min-height: 330px; }
  .st-head .neg-pic .cond, .st-head .neg-blank .neg-pic .cond { padding: 30px 14px 14px; }
  .st-head h1 { font-size: clamp(34px, 11vw, 56px); }
  .st-dek { font-size: 17px; }
  .st-read { padding: 6px 10px 12px; --mk: 24px; font-size: 13px; }
  .st-sec { padding-top: 28px; }
  .st-row summary { grid-template-columns: 34px 26px minmax(0, 1fr); gap: 0 10px; --mk: 22px; }
  .st-n { font-size: 22px; }
  .st-row h3 { font-size: 20px; }
  .st-meta { grid-column: 3; justify-content: start; margin-top: 4px; }
  .st-panes { grid-template-columns: 1fr; }
  .st-said, .st-rec { padding: 18px; }
  .st-panes .serif { font-size: 18px; }
  .st-prose { font-size: 17px; }
  .th-step, .th-pair { grid-template-columns: minmax(0, 1fr); }
  .th-rail { display: flex; gap: 14px; }
  .th-standing { padding: 18px; }
}
