/* Feature — Public price page: print styles (compact, B/W-legible). Loaded last, with media=print, so it wins the cascade as before. */

/* ── Print (compact, B/W-legible) ── */
@media print {
    .price-ticker,
    .public-header button,
    .public-meta-actions .public-actions,
    .public-controls,
    .public-no-results {
        display: none !important;
    }

    .public-layout {
        background: white;
        color: black;
    }

    .public-main {
        max-width: 100%;
        padding: 0;
    }

    .public-header {
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
        background: white;
        color: black;
        border: 0;
        border-bottom: 2px solid black;
        border-radius: 0;
        box-shadow: none;
    }

    .public-title,
    .public-slogan,
    .public-meta {
        color: black;
    }

    .public-title {
        font-size: 1.25rem;
    }

    .public-logo {
        background: white;
        color: black;
        border: 1px solid black;
    }

    .prices-grid {
        display: block;
    }

    .price-category {
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        background: white;
        border: 1px solid black;
        border-radius: 0;
    }

    .price-category-title {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
        border-bottom: 1px solid black;
        color: black;
    }

    .price-category-materials {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .price-card {
        gap: 0.25rem;
        padding: 0.35rem 0.5rem;
        background: white;
        color: black;
        border: 1px solid black;
        border-radius: 0;
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .price-card:hover {
        transform: none;
        box-shadow: none;
    }

    /* A dark session must still print on white paper. */
    .dark .public-header,
    .dark .price-category,
    .dark .price-card {
        background: white;
    }

    .price-material-header,
    .price-material-name,
    .price-label,
    .price-value--hero,
    .price-value--hero .money-value,
    .price-value--small,
    .price-value--small .money-value,
    .price-value__unit {
        color: black;
    }

    .price-value--hero {
        font-size: 1.35rem;
    }

    .price-row--sell {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        padding-top: 0.25rem;
        border-top: 1px solid black;
    }

    /* The chip keeps its symbols (arrow, sign, amount, %) but drops its tint:
       paper has no reliable colour, the sign carries the direction. */
    .trend-chip {
        background: white !important;
        color: black !important;
        border: 1px solid black;
    }

    .public-footer {
        margin-top: 0.75rem;
        border-top: 1px solid black;
        color: black;
    }
}
