/* brakes-overview.css — Plan › Brakes (brakes-overview.js). Same look as
 * Plan › Tires (tires-overview.css); every rule is scoped under #sub12 and
 * every class starts bov-. */
#sub12 .bov-summary { margin: 0 0 8px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
#sub12 .bov-summary b { color: var(--text-hi); }
#sub12 .bov-chip { display: inline-block; margin: 2px 4px 0 0; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
    border: 1px solid var(--line-2, var(--line)); color: var(--text-2); vertical-align: 1px; }
#sub12 .bov-chip.bov-off { color: var(--warn); border-color: var(--warn); }

/* ---- The life chart ---- */
#sub12 .bov-chart { margin: 12px 0; min-width: 0; padding: 8px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
#sub12 .bov-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-bottom: 4px;
    font-size: var(--fs-micro, 11px); color: var(--text-3); }
#sub12 .bov-head > span:first-child { text-transform: uppercase; letter-spacing: .08em; color: var(--text-4); }
#sub12 .bov-key { display: flex; flex-wrap: wrap; gap: 2px 12px; }
#sub12 .bov-key > span { white-space: nowrap; }
#sub12 .bov-sw { display: inline-block; width: 14px; height: 0; margin-right: 4px; vertical-align: 3px; border-top: 2px solid var(--accent); }
#sub12 .bov-sw.bov-FR, #sub12 .bov-sw.bov-RR { border-top-color: var(--info); }
#sub12 .bov-sw.bov-RL, #sub12 .bov-sw.bov-RR { border-top-style: dashed; }
#sub12 .bov-plot { min-width: 0; }
#sub12 .bov-plot svg { display: block; max-width: 100%; overflow: visible; }
#sub12 .bov-grid { stroke: var(--line); stroke-width: 1; }
#sub12 .bov-stop { stroke: var(--line-3, var(--line)); stroke-width: 1; stroke-dasharray: 1 3; }
#sub12 .bov-chg { stroke: var(--warn); stroke-width: 1.5; }
#sub12 .bov-axis text { font-size: 10px; fill: var(--text-4); font-variant-numeric: tabular-nums; }
#sub12 .bov-life { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
#sub12 .bov-life.bov-FR, #sub12 .bov-life.bov-RR { stroke: var(--info); }
#sub12 .bov-life.bov-RL, #sub12 .bov-life.bov-RR { stroke-dasharray: 5 3; }

/* ---- Table: life % over mm left, per wheel ---- */
#sub12 .bov-table td, #sub12 .bov-table th { text-align: center; font-variant-numeric: tabular-nums; }
#sub12 .bov-table td:first-child, #sub12 .bov-table tfoot th { text-align: left; }
#sub12 .bov-table tbody td:nth-child(n+3) { font-weight: 700; color: var(--accent); white-space: nowrap; }
#sub12 .bov-table td small { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); }
#sub12 .bov-table tbody td.bov-near { color: var(--warn); }
#sub12 .bov-table tbody td.bov-crit { color: var(--crit); }
#sub12 .bov-table tr.bov-now td { color: var(--text-2); }
#sub12 .bov-table tr.bov-change td { background: var(--warn-dim); }
#sub12 .bov-table tfoot td { font-weight: 400; font-size: 12px; color: var(--text-3); white-space: nowrap; }
#sub12 .bov-pill { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; background: var(--warn-dim); color: var(--warn-soft, var(--warn)); }

/* Phones: tighter cells, the pill under the stint number. */
@media (max-width: 600px) {
    html body #sub12 .bov-table { min-width: 0; width: 100%; }
    html body #sub12 .bov-table :is(th, td) { padding: 4px 3px; }
    html body #sub12 .bov-pill { display: block; width: auto; margin: 2px 0 0; font-size: 9px; letter-spacing: 0; }
    #sub12 .bov-summary { font-size: 13px; }
}
