/* Lotus dashboard: Explorer › Child chains (child-chains.css)
 * ----------------------------------------------------------------------
 * Styles of js/child-chains.js only: the chain cards, the states of a
 * child block and of its transactions (a word and a colour, never the
 * colour alone), the work table, and the cards it adds to the block and
 * transaction pages. Scoped under .cc and those cards. Kit tokens only:
 * dark and light follow ui-kit.css. Embedded in the binary like
 * parent-chains.css.
 */
.cc .cc-tabs{margin:0 0 var(--ui-s4)}
.cc-lead{color:var(--ui-ink);margin:0;max-width:62rem;font-size:var(--ui-fs-md)}
.cc-note{font-size:var(--ui-fs-sm);color:var(--ui-ink-2);margin:var(--ui-s2) 0 0;max-width:62rem}
.cc-since{font-size:var(--ui-fs-sm);color:var(--ui-ink-2);margin:0 0 var(--ui-s3)}
.cc-mono{font-family:var(--ui-mono);font-size:var(--ui-fs-sm);overflow-wrap:anywhere;word-break:break-all}
.cc-fail{color:var(--ui-bad);font-size:var(--ui-fs-sm);margin:var(--ui-s2) 0}
.cc-title{cursor:help}
.cc-block-h{font-weight:400;color:var(--ui-ink-2)}

/* Cards: 2 columns from a tablet, 1 on a phone. */
.cc-grid{display:grid;gap:var(--ui-gap-card,16px);grid-template-columns:minmax(0,1fr);margin:0 0 var(--ui-gap-card,16px)}
@media (min-width:1024px){.cc-grid:has(.cc-card+.cc-card){grid-template-columns:repeat(2,minmax(0,1fr))}}
.cc-card{min-width:0}
.cc-card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--ui-s2);margin:0 0 var(--ui-s2)}
.cc-card-head h2{margin:0}
.cc-links{display:flex;flex-wrap:wrap;gap:var(--ui-s2) var(--ui-s4);margin:var(--ui-s3) 0 0}
.cc .ui-kv dd,.cc-recorded .ui-kv dd{min-width:0;overflow-wrap:anywhere}
.cc .ui-notice{margin:0 0 var(--ui-s3)}

/* States: the tag carries the words and wraps; a block on another child
 * branch is dashed, never greyed out. */
.cc-tag{white-space:normal;height:auto;min-height:var(--ui-tag-h);line-height:1.3;max-width:100%;text-align:left}
.cc-tag a{color:inherit;text-decoration:underline}
.cc-state--side{border-style:dashed}
.cc-state--seen{border-style:dotted}
.cc .ui-table tbody tr td:has(.cc-tag),.cc-recorded .ui-table tbody tr td:has(.cc-tag),
.cc .ui-table td:has(.cc-tag)>.ui-cell,.cc-recorded .ui-table td:has(.cc-tag)>.ui-cell{white-space:normal}
.cc-pager{display:flex;gap:var(--ui-s2);justify-content:flex-end;margin-top:var(--ui-s3)}
.cc-pager:empty{display:none}

/* Work: the child chain's lines, then the Lotus line. Two figures side by
 * side, no total row. */
.cc-work th[scope="row"]{text-align:left;font-weight:600;white-space:normal}
.cc-work .cc-work-lotus td,.cc-work .cc-work-lotus th{border-top:2px solid var(--ui-line-strong)}
.cc-totals{margin:0 0 var(--ui-s2)}
.cc-totals .ui-stat-label,.cc-totals .ui-stat-sub{white-space:normal}

/* On the Lotus block and transaction pages. */
.cc-txmark p{margin:0}
.cc-txmark .cc-tag{margin-left:var(--ui-s1)}
