/* ==========================================================================
 * Zenter Performance – ECU, engine-code and gearbox (TCU) pages
 * (/ecu, /pl/sterowniki, /de/steuergeraete; /engine-codes …; /gearboxes …).
 * Loaded by those pages only, after zenter-catalog.css (App\Http\Controllers\CatalogSeoController).
 * ========================================================================== */
.zp-seo__main { display: grid; gap: 20px; min-width: 0; }
.zp-seo__main > * { min-width: 0; }

/* facts */
/* light plate (zenter.css → Zenter plates), no left strip; the labels carry the red */
.zp-seo-facts { --zp-plate-bg: #fafafa; --zp-cut: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: 18px 0 4px; }
.zp-seo-facts > div { margin: 0 -1px -1px 0; padding: 10px 14px; border-right: 1px solid var(--zs-line); border-bottom: 1px solid var(--zs-line); }   /* the last row / column sit on the plate's keyline */
.zp-seo-facts dt { font: 700 11px/1.3 var(--zp-head); letter-spacing: .08em; text-transform: uppercase; color: #b71c1d; }
.zp-seo-facts dd { margin: 3px 0 0; font: 700 15px/1.35 var(--zp-head); color: #111; }

/* engine tables grouped by make */
.zp-legacy .zp-seo-make { font: 800 17px/1.3 var(--zp-head); color: #111; margin: 22px 0 10px; text-transform: none; }
.zp-legacy .zp-seo-make:first-child { margin-top: 0; }
.zp-seo .zp-seo-table { margin: 0 0 8px; }
.zp-seo .zp-seo-table td small { display: block; font-size: 12px; color: var(--zp-muted); }
.zp-seo .zp-seo-table tbody th a, .zp-seo-table tbody th span { white-space: normal; }
.zp-seo .zp-seo-table tbody th { white-space: normal; min-width: 200px; }
.zp-seo .zp-seo-table .zp-seo-model th { padding: 10px 16px; font: 700 12px/1.2 var(--zp-head); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #1b1b1b; }
.zp-seo .zp-seo-table .zp-gain { margin-left: 4px; }
.zp-seo-note { margin: 12px 0 0 !important; }
@media (max-width: 575px) {
    .zp-seo .zp-seo-table td:last-child { display: table-cell; }
    .zp-seo .zp-seo-table .zp-seo-s2 { display: none; }
    .zp-seo .zp-seo-table tbody th { min-width: 0; }
    .zp-seo .zp-seo-table th, .zp-seo .zp-seo-table td { padding: 10px 8px; }
    .zp-seo .zp-seo-table td { white-space: nowrap; }
    .zp-seo .zp-seo-table .zp-gain { display: none; }
}

/* chips (options, ECU variants, engine codes) – square, no wrapping inside a chip */
.zp-seo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.zp-seo-chips li { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 11px; background: #fafafa; border: 1px solid #e7e7e9; font: 700 13.5px/1.25 var(--zp-head); color: #111; white-space: nowrap; }
.zp-seo-chips small { font: 400 12px/1.2 var(--zp-body); color: var(--zp-muted); }
.zp-seo-chips--links li { padding: 0; background: none; border: 0; }
.zp-seo-chips--links a { display: inline-block; padding: 7px 11px; background: #fff; border: 1px solid #e5e5e5; color: #111; transition: border-color .2s; }
.zp-seo-chips--links a:hover, .zp-seo-chips--links a:focus { border-color: var(--zp-red); color: #111; text-decoration: none; }
.zp-seo-codes { max-height: 520px; overflow-y: auto; padding: 2px; margin-bottom: 40px; }

.zp-seo-muted { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--zp-muted); }
.zp-card .zp-seo-muted:last-child { margin-bottom: 0; }
.zp-seo-count { color: var(--zp-muted) !important; }

/* how we read it */
.zp-seo-howto { display: grid; gap: 0; margin: 0 0 14px; }
.zp-seo-howto > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.zp-seo-howto dt { font: 700 14px/1.5 var(--zp-head); color: #111; }
.zp-seo-howto dd { margin: 0; font-size: 15px; line-height: 1.65; color: #3f3f46; }
@media (max-width: 575px) { .zp-seo-howto > div { grid-template-columns: 1fr; gap: 4px; } }
/* amber note: keyline plate with a full-height glyph cell + chamfer (same build as .zp-disclaimer / .zp-legal__note) */
.zp-prose p.zp-seo-caution, .zp-seo-caution { position: relative; display: flex; gap: 0; align-items: stretch; margin: 14px 0 0; padding: 12px 16px 12px 0; background: #fff; border: 1px solid var(--zs-amber); font-size: 14px; line-height: 1.55; color: #2a2a2f; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.zp-seo-caution .zp-i { box-sizing: content-box; flex: none; align-self: stretch; width: 20px; height: auto; min-height: 20px; margin: -12px 14px -12px 0; padding: 0 11px; color: #fff; background: var(--zs-amber); }

/* ECU index: families */
.zp-seo-families { display: grid; gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; }
/* light plates (zenter.css → Zenter plates) with a short black wedge – no top strip */
.zp-seo-families > li { --zp-cut: 14px; --zp-wedge-w: 34%; --zp-wedge-h: 6px; --zp-wedge-c: #1b1b1b; padding: 18px 20px 24px; }
.zp-legacy .zp-seo-family__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 800 18px/1.3 var(--zp-head); color: #111; margin: 0 0 12px; text-transform: none; }
.zp-seo-family__title a { color: #111; }
.zp-seo-family__title a:hover, .zp-seo-family__title a:focus { color: var(--zp-red); }
.zp-seo-family__title small { font: 400 13px/1.3 var(--zp-body); color: var(--zp-muted); }
.zp-seo-families .zp-seo-chips { margin: 0; }

.zp-seo-crosslinks { margin: 0 0 28px !important; }
.zp-seo .zp-related a { height: 100%; }
.zp-seo-chips--links .zp-seo-chips__more a { border-color: transparent; background: none; color: var(--zp-red); }
