"""Shared chart styling so all slides have consistent look."""
import matplotlib.pyplot as plt

BC_BLUE = "#2563eb"
BC_BLUE_LIGHT = "#3b82f6"
BC_GRAY = "#4b5563"
BC_GREEN = "#16a34a"
BC_RED = "#ef4444"


def apply_style() -> None:
    plt.rcParams.update({
        "figure.figsize": (10, 6),
        "figure.dpi": 160,
        "axes.spines.top": False,
        "axes.spines.right": False,
        "axes.titlesize": 16,
        "axes.labelsize": 13,
        "axes.titleweight": "600",
        "xtick.labelsize": 11,
        "ytick.labelsize": 11,
        "font.family": "sans-serif",
        "savefig.bbox": "tight",
        "savefig.facecolor": "white",
    })


def n_label(n: int) -> str:
    return f"N = {n}"
