/*
 * The record's story on the investment page (8 Oct 2026, BACKLOG H100 part C;
 * screens/record-dashboard.js storyCard): the story above the headline
 * numbers, and the story's marks.
 *
 * Kept apart from record-dashboard.css, which is generated from the approved
 * mockup and never edited by hand. Scoped like it: every rule matches only
 * inside a .v2 container. Colours are the dashboard's own variables. No
 * coloured bars; trust is shape and word.
 *
 * The marks add two shapes to the mockup's six:
 *   done (from a signed paper)   a full disc; the confirmed mark keeps its tick
 *   stated (from the papers)     the papers' own ring, as From papers
 *   sugg, plan (not yet done)    a half disc; the word says which
 */

/* ============ THE STORY: above the headline numbers ============ */
@media (min-width:1181px){
  :where(.v2) .v2-dash.has-story{grid-template-areas:"story story story" "t1 t2 t3" "jour jour jour" "main main rail"}
  :where(.v2) .a-story{grid-area:story}
}
/* Tablet and phone: the columns dissolve; the story leads, the full width. */
@media (max-width:1180px){
  .v2 .v2-dash .a-story{grid-column:1 / -1;order:0}
}
.v2 .v2-story{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:28px;align-items:start}
.v2 .v2-story .v2-brief{max-width:none}
.v2 .v2-story-events{min-width:0}
@media (max-width:950px){
  .v2 .v2-story{grid-template-columns:minmax(0,1fr);gap:16px}
}

/* Before the office (12 Oct 2026): the story's history, a native disclosure under the events, shut until opened. */
.v2 .v2-before{margin-top:14px;border-top:1px solid var(--ring2);padding-top:10px}
.v2 .v2-before summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--t2)}
.v2 .v2-before summary::-webkit-details-marker{display:none}
.v2 .v2-before summary .i{width:14px;height:14px;transition:transform .15s}
.v2 .v2-before[open] summary .i{transform:rotate(180deg)}
.v2 .v2-before .v2-note{margin:8px 0 0}
.v2 .v2-before .v2-tl{margin-top:8px;opacity:.85}

/* A source that is not a paper (the story, Addepar, a working) reads as words, not a link. */
.v2 .v2-src.plain{border-bottom:0}
.v2 .v2-tl .what small .plain{border-bottom:0}

/* ============ THE STORY'S MARKS: shape and word ============ */
:where(.v2) .v2-g.done{background:var(--t2)}
:where(.v2) .v2-g.stated{border:1.6px solid var(--t3)}
:where(.v2) .v2-g.sugg,:where(.v2) .v2-g.plan{border:1.6px solid var(--t3);background:linear-gradient(90deg,var(--t3) 50%,transparent 50%)}
:where(.v2) .v2-pill.t-done{background:var(--ground);color:var(--t1)}
:where(.v2) .v2-pill.t-stated{background:var(--ground);color:var(--t2)}
:where(.v2) .v2-pill.t-sugg,:where(.v2) .v2-pill.t-plan{background:white;color:var(--t2);box-shadow:inset 0 0 0 1px var(--ring2)}
