/* card.css — the Card layout (.lay-card). Loaded alongside base.css. */

.cardgrid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 14px;
    align-items: start;         /* labels sit at the top of multi-line values (Dark Pool) */
    margin-top: 5px;
}

.cardgrid .cglbl {
    color: var(--faint-a);
    line-height: 1.3;           /* matches .cgval so a label aligns with its first line */
    font-size: 1em;             /* same size as the value beside it */
    text-align: right;
    white-space: nowrap;
}

.cardgrid .cglbl,
.cardgrid .cgval {
    padding-top: 1px;
    padding-bottom: 1px;
}

.cardgrid .cgval {
    font-size: 1em;
    line-height: 1.2;
}

.cardgrid .cgval.meta {
    color: var(--meta);
}

.etagrow {
    margin-top: 8px;
}

.etag {
    color: #f97316;
    font-size: 1em;
    font-weight: 600;
}

/* Header row — SWEEP DETECTED / COMPLEX / SPREAD DETECTED — separated from the grid the same way
   the footer is separated from it, so the card reads as three bands rather than two. Mirrors
   .foot's rule, inverted: border below instead of above. */
.lay-card .trade .header {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
}

/* the grid's own top margin would double the gap */
.lay-card .trade .header + .cardgrid {
    margin-top: 0;
}