/* The Money page (/earnings/). Loaded after garage.css; every rule sits under .ec- so nothing here reaches another page. Same motorsport set as the trip planner:
   carbon ground, hairlines, display numerals, orange for the figure that matters, blue for the line that says where the average sits. */
.ec-sec{ margin-top:18px }
.ec-head{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--hairline-strong); border-radius:var(--r-box,4px); background:rgba(5,7,13,.5); margin:10px 0 12px }
.ec-head--3{ grid-template-columns:repeat(3,minmax(0,1fr)) }
.ec-fig{ min-width:0; padding:14px 16px; border-left:1px solid var(--hairline) }
.ec-fig:first-child{ border-left:0 }
.ec-fig b{ display:block; font-family:var(--display); font-size:clamp(1.5rem,4.4vw,2.4rem); line-height:1; letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums }
.ec-fig:first-child b{ color:var(--ignition) }
.ec-fig b .rm{ color:inherit }
.ec-fig span{ display:block; margin:8px 0 6px; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3); line-height:1.35 }
@media (max-width:759.98px){
  .ec-head, .ec-head--3{ grid-template-columns:repeat(2,minmax(0,1fr)) }
  .ec-fig:nth-child(3){ border-left:0; border-top:1px solid var(--hairline) } .ec-fig:nth-child(4){ border-top:1px solid var(--hairline) }
  .ec-head--3 .ec-fig:nth-child(3){ grid-column:1 / -1 }
}
.ec-spread{ margin:0; font-size:var(--t-sub,15px); line-height:1.55; color:var(--ink-2) }
.ec-chartwrap{ overflow-x:auto; border:1px solid var(--hairline-strong); border-radius:var(--r-box,4px); background:rgba(5,7,13,.55); padding:10px 8px 4px }
.ec-chart{ display:block; width:100%; min-width:560px; height:auto }
.ec-grid{ stroke:rgba(229,231,235,.1); stroke-width:1 }
.ec-ax{ fill:var(--ink-3); font-size:11px; font-family:system-ui,sans-serif; font-variant-numeric:tabular-nums }
.ec-bar{ fill:var(--ignition) }
.ec-bar:hover{ fill:#ff7b4f }
.ec-tick{ stroke:var(--ink); stroke-width:2 }
.ec-avg{ stroke:var(--speed-blue,#57C7F5); stroke-width:1.5; stroke-dasharray:6 4 }
.ec-avg-t{ fill:var(--speed-blue-hot,#8ADCFF); font-size:12px; font-weight:700; font-family:system-ui,sans-serif }
.ec-tablewrap{ overflow-x:auto; border:1px solid var(--hairline-strong); border-radius:var(--r-box,4px) }
.ec-table{ width:100%; min-width:720px; border-collapse:collapse; font-size:14px; font-variant-numeric:tabular-nums }
.ec-table th, .ec-table td{ padding:9px 12px; text-align:right; border-bottom:1px solid var(--hairline); white-space:nowrap }
.ec-table thead th{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); background:rgba(5,7,13,.6); position:sticky; top:0 }
.ec-table th[scope="row"], .ec-table td:nth-child(2), .ec-table thead th:nth-child(-n+2){ text-align:left }
.ec-table td:last-child, .ec-table thead th:last-child{ text-align:left; color:var(--ink-3) }
.ec-table tbody tr:hover{ background:rgba(255,255,255,.04) }
.ec-table b{ color:var(--ink) }
.ec-table .rm{ color:inherit }
.ec-fig b .rm, .ec-table .rm, .ec-spread .rm{ font:inherit; letter-spacing:inherit; color:inherit; background:none; padding:0; border:0 }
.ec-fig .chip{ display:inline-block; width:auto; margin:0 }
.ec-fig--sm b{ font-size:clamp(1.05rem,2.6vw,1.5rem); line-height:1.2 }
.ec-table--app, .ec-table--wk{ min-width:520px }
.ec-table--wk td:nth-child(n+2), .ec-table--app td:nth-child(n+2){ text-align:right }
.ec-barcell{ position:relative; min-width:200px; text-align:right }
.ec-wbar{ position:absolute; left:12px; top:8px; bottom:8px; max-width:calc(100% - 96px); background:rgba(244,81,30,.28); border-left:3px solid var(--ignition); pointer-events:none }
.ec-barcell b{ position:relative }
