/* Price disclosure lines (docs/SOCIAL_AND_PRICE_SAFETY_PLAN.md P2, P3). Prefix: .pdl
   The words come from utils/priceDisclosure through res.locals (views/partials/priceDisclosureLine.ejs, one car;
   views/partials/priceDisclosureList.ejs, a page of cars) — never typed into a view.

   Readable, not fine print: 13px, normal weight, a full sentence on its own line, never hidden behind a tap.
   Two surfaces, two colour sets (FEATURE_BUILD_STANDARD §6.1):
     .pdl--page  sits on the page itself, which follows the theme (light slate / navy gradient in dark mode)
                 #374151 on the light pages (#f2f3f5 / #f4f5f7 / #ffffff) is 9.3–10.3:1;
                 #cbd5e1 on the dark gradient (#0d1526 → #1e2f52) is 9.4–13.4:1.
     .pdl--card  sits inside a card that stays WHITE in dark mode (.sidebar-card, .section-card, .sl-panel —
                 public/css/theme.css), so it keeps a literal light colour in both themes: #475569 on #ffffff is 7.6:1.
   Spacing: 6px under a price, 12px+ before the next control, 16px inset from a card's border (the card's padding). */

.pdl {
    display: block;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    font-style: normal;
    overflow-wrap: anywhere;
}

.pdl--page { color: #374151; }
[data-theme="dark"] .pdl--page { color: #cbd5e1; }

.pdl--card,
[data-theme="dark"] .pdl--card { color: #475569; }

/* ── One car (the listing page) ─────────────────────────────────────────────── */

/* The phone title: the price, then the line 6px under it (the title block's own 16px margin follows). */
.mobile-listing-title .pdl-under-price { margin-top: 6px; max-width: 640px; }

/* The desktop price card: the price keeps its 36px weight, the line sits 6px under it, 14px before the facts. */
.price-card .listing-price-text:has(+ .pdl-under-price) { margin-bottom: 6px; }
.price-card .pdl-under-price { margin: 0 0 14px; }

/* "Listing Price" in the Vehicle History & Analysis card: the row wraps so the line sits under the price, full width,
   above the row's own divider. */
.analysis-row.analysis-row--disclosed { flex-wrap: wrap; row-gap: 6px; }
.analysis-row--disclosed .pdl-under-price { flex: 1 0 100%; font-weight: 400; }

/* ── A page of cars ─────────────────────────────────────────────────────────── */

/* Under the navy "N Results found" bar (search results, a dealership's page, favorites): on the page background,
   lined up with the bar's own 24px / 16px text inset. */
/* MARGINS, not just padding: the paragraph's own box sits 12px+ from the bar's controls above (Sort, Hide filters) and
   from the phone Filters bar below it on a dealership's page. */
.pdl-list-strip { margin: 6px 0 4px; padding: 8px 24px; max-width: 1100px; }
.pdl-list-strip + .browse-layout { padding-top: 10px; }
@media (max-width: 860px) {
    .pdl-list-strip { padding: 8px 16px; }
}

/* The home page's "Newest Listings" grid: centred under the section heading, above the cards. */
.pdl-list-home { max-width: 760px; margin: -12px auto 18px; padding: 0 16px; text-align: center; }

/* "Similar Listings" on the car page (a white .section-card): under the section title, above the cards. */
.section-card .pdl-list-similar { margin: -4px 0 16px; }

/* A durable search page's intro panel (white .sl-panel): after the facts, 16px before the buttons. */
.sl-intro .pdl-list-landing { margin: 0 0 16px; }

/* ── Dealer fees phase 2 (docs/DEALER_FEES_PLAN.md §19) ─────────────────────────
   "Includes the dealer's fees. …" — printed only while the public all-in price is live and the dealer's add applies,
   directly under the price and above the disclosure (views/partials/priceDisclosureLine.ejs). Same colours as its tone;
   semibold so the shopper reads it with the price. Last in the file so it wins ties with the rules above. */
.pdl.pdl-fees { font-weight: 600; }
.price-card .pdl-fees.pdl-under-price { margin: 0 0 4px; }
.mobile-listing-title .pdl-fees + .pdl-under-price { margin-top: 4px; }
