/* SHIP-PRICE calculator fixes (19 Nov 2026).
   Fixes only, inside the existing petrol palette: no new colours, no layout changes.
   Remove the <link> to app-bank.css in index.html to roll back. */

/* 1. Type: load Manrope properly and stop forcing number spacing on words
      (fixes "SHIP - PRICE" and "Long - Term"); numbers keep tabular figures */
html.sp-petrol body {
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-feature-settings: normal !important;
  font-variant-numeric: normal !important;
}
html.sp-petrol body td,
html.sp-petrol body th,
html.sp-petrol body input,
html.sp-petrol body .spn-ctx-val,
html.sp-petrol body .spn-top-val,
html.sp-petrol body .stat-card,
html.sp-petrol body .sp-range {
  font-variant-numeric: tabular-nums lining-nums !important;
}

/* 2. Vessel chip rows wrap instead of running off the screen */
html.sp-petrol body .vessel-nav-wrap > div { flex-wrap: wrap !important; row-gap: 8px !important; }

/* 3. Dark mode: the petrol accent painted on text is too dark on dark panels
      (e.g. the OPEX guide range); use the palette's own dark-mode accent */
html.sp-petrol body.dark-mode [style*="; color: rgb(82, 120, 122)"],
html.sp-petrol body.dark-mode [style^="color: rgb(82, 120, 122)"] {
  color: var(--spp-accent) !important; -webkit-text-fill-color: var(--spp-accent) !important;
}

/* 4. Icons from sp-icons.js: outline follows the text colour, the dot uses the palette accent,
      status icons take the colour of the text they sit in */
html.sp-petrol body .spi { color: currentColor; }
html.sp-petrol body .spi .spi-g { fill: var(--spp-accent) !important; }
html.sp-petrol body .spi-ok,
html.sp-petrol body .spi-warn,
html.sp-petrol body .spi-missing { color: inherit !important; }

/* 5. Dark mode header buttons ("How it works", "Compare Vessels") had light grey fills with
      pale or dark text; match them to "Edit Vessel & Market Data" using the palette's own values */
html.sp-petrol body.dark-mode .how-it-works-btn,
html.sp-petrol body.dark-mode .hero-edit-btn {
  background: var(--spp-surface) !important;
  border: 1px solid var(--spp-line) !important;
  color: var(--spp-ink) !important; -webkit-text-fill-color: var(--spp-ink) !important;
}
html.sp-petrol body.dark-mode .how-it-works-btn *,
html.sp-petrol body.dark-mode .hero-edit-btn * { -webkit-text-fill-color: currentColor !important; }
