/* HaxLineChart (doc 45 section 5) - the end card's line chart. Global, not .razor.css: scoped CSS
   is not wired in this project. Colours match the approved mock
   (HaxopolyDesign/samples/end-card/end-card-mock.htm): white axes, lime axis titles, light-grey
   tick labels, 4px lines in each player's colour. */

.hax-linechart {
    container-type: inline-size;
    width: 100%;
}

.hax-linechart svg {
    display: block;
    width: 100%;
    height: auto;
    font-family: inherit;
}

/* Two drawings, one shown: the phone size below 460px of chart width, the desktop size above.
   Selectors carry "svg" so they outrank the display:block above (a bare class lost to it). */
.hax-linechart svg.hax-linechart-narrow { display: none; }

@container (max-width: 460px) {
    .hax-linechart svg.hax-linechart-wide { display: none; }
    .hax-linechart svg.hax-linechart-narrow { display: block; }
}

.hax-linechart-axis {
    stroke: #FFFFFF;
    stroke-width: 2;
}

.hax-linechart-tick {
    fill: #C7CFDC;
    font-size: 11px;
}

.hax-linechart-axis-title {
    fill: #A3E635;
    font-size: 13px;
}

.hax-linechart-line {
    fill: none;
    stroke-width: 4;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.hax-linechart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
    font-size: .82rem;
    color: #C7CFDC;
}

.hax-linechart-legend span::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 4px;
    border-radius: 2px;
    background: var(--hax-linechart-swatch);
    vertical-align: middle;
    margin-right: 6px;
}
