/*
  DNA · extra parts
  The few parts this app needs that Legend's kit doesn't have yet. Built from Legend's tokens only:
  no px, colours or timings here (scripts/build.mjs fails on any). If Legend grows the same part,
  delete it here and use Legend's (law: one part per job).
*/

/* @part Facts
   A term and what it means, in reading type: the laws' "why / check / example" and the parts' role and example.
*/
.facts { margin: var(--s3) 0 0; display: flex; flex-direction: column; gap: var(--s2); }
.facts dt { font-size: var(--type-caption); font-weight: var(--weight-strong); color: var(--faint); }
.facts dd { margin: 0; font-size: var(--type-callout); line-height: var(--leading); color: var(--ink); }

/* @part Number
   The count beside a law or part's name: "1", "2"…
*/
.num-chip { display: inline-grid; place-items: center; min-width: var(--ctl-xs); height: var(--ctl-xs); margin-right: var(--s2); border-radius: var(--r-full); background: var(--chip); color: var(--muted); font-size: var(--type-caption); font-weight: var(--weight-strong); font-variant-numeric: tabular-nums; vertical-align: middle; }

/* @part Scoreboard
   Projects across the 10 kit parts. A dot per cell, always with its word for screen readers and a key underneath.
*/
.score-wrap { overflow-x: auto; margin: var(--s3) 0 0; }
.score { border-collapse: collapse; font-size: var(--type-callout); width: 100%; }
.score th, .score td { height: var(--ctl-h); padding: 0 var(--s2); border-bottom: var(--hair) solid var(--line); text-align: center; white-space: nowrap; }
.score th { font-weight: var(--weight-strong); color: var(--muted); font-size: var(--type-caption); }
.score th:first-child, .score td:first-child { text-align: left; padding-left: 0; }
.score td:first-child { font-weight: var(--weight-strong); }
.tick { display: inline-block; width: var(--dot); height: var(--dot); border-radius: var(--r-full); vertical-align: middle; }
.tick.yes { background: var(--green); }
.tick.partly { background: var(--orange); }
.tick.missing { background: var(--red); }
.score-key { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: var(--s3) 0 0; font-size: var(--type-callout); color: var(--muted); }
.score-key span { display: inline-flex; align-items: center; gap: var(--s2); }

/* @part Diagram
   A picture made of text (the shape of a kit, a folder tree): kept on its lines and scrolled sideways on a phone.
*/
.codeblock.diagram pre { white-space: pre; overflow-wrap: normal; overflow-x: auto; }

/* @part Steps
   A numbered path: the loop, the walkthrough, how we work.
*/
.steps-list { margin: var(--s2) 0 0; padding-left: var(--s5); font-size: var(--type-body); line-height: var(--leading); }
.steps-list li { margin: 0 0 var(--s2); padding-left: var(--s1); }
.steps-list b { font-weight: var(--weight-strong); }

/* @part Page card
   A page you can open from the start page: its name and one line about it.
*/
.cards { display: flex; flex-direction: column; gap: var(--s1); margin: var(--s3) 0 0; }
.card-link { display: flex; flex-direction: column; gap: var(--s0); width: 100%; text-align: left; padding: var(--s3); border-radius: var(--r-lg); background: var(--chip); transition: background var(--quick) var(--ease); }
.card-link:hover { background: var(--press); }
.card-title { font-size: var(--type-body); font-weight: var(--weight-strong); color: var(--ink); }
.card-says { font-size: var(--type-callout); line-height: var(--leading-ui); color: var(--muted); }

/* @part Banner
   The one line at the top of the start page that says what state the standard is in.
*/
.banner { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 0; padding: var(--s3); border-radius: var(--r-lg); background: var(--chip); font-size: var(--type-callout); line-height: var(--leading-ui); color: var(--muted); }

/* @part Link as a control
   A link that looks like the part it sits in (a button, a card, a sidebar item), never an underlined word.
*/
a.btn, a.card-link, a.side-main { color: inherit; text-decoration: none; }
