/* Landing pages for searches (owner, 2026-11-26). Uses the theme's colours and type; .lp wraps the whole page. */
.entry-content:has(> .lp) { max-width: none; }
.lp { display: grid; gap: 0; min-width: 0; }
.lp-hero { margin: -6px 0 18px; }
.lp-hero .eyebrow { margin-bottom: 12px; }
.lp-lede { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.55; color: var(--fg); max-width: 70ch; margin: 0 0 18px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.lp-high { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lp-high li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.lp-high strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); line-height: 1; color: var(--red); }
.lp-high span { color: var(--muted); font-size: 14px; line-height: 1.4; }

.lp-sec { margin-top: clamp(34px, 5vw, 56px); min-width: 0; }
.lp-sec h2 { margin: 0 0 12px; }
.lp-intro { color: var(--muted); max-width: 72ch; margin: 0 0 16px; }
.lp-small { color: var(--muted); font-size: 13px; margin: 12px 0; }
.lp-text p { max-width: 72ch; line-height: 1.65; }
.lp-eng { font-family: var(--display); font-style: italic; font-size: 24px; margin: 22px 0 10px; }

.lp-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.lp-pkg { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lp-pkg.consult { border-style: dashed; }
.lp-code { font-family: var(--wide); font-size: 13px; letter-spacing: .08em; color: var(--red); }
.lp-bhp { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1; }
.lp-bhp small { font-size: 18px; color: var(--muted); font-style: normal; font-weight: 700; }
.lp-gain { color: var(--silver); font-size: 13px; }
.lp-pkg p { margin: 6px 0 2px; font-size: 14.5px; line-height: 1.5; color: var(--fg); }
.lp-pkg-parts { list-style: none; margin: 0 0 6px; padding: 0; font-size: 13.5px; color: var(--muted); }
.lp-pkg-parts li::before { content: "+ "; color: var(--red); font-weight: 700; }
.lp-pkg-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.lp-tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(63, 191, 127, .14); color: var(--ok); white-space: nowrap; }
.lp-tag.plan { background: rgba(255, 213, 74, .12); color: #ffd54a; }
.lp-tag.warn { background: rgba(240, 168, 48, .14); color: var(--warn); }
.lp-price { font-weight: 700; color: var(--fg); white-space: nowrap; text-decoration: none; }
a.lp-price { color: #ffd54a; }

.lp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lp-table { width: 100%; min-width: 440px; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lp-table caption { text-align: left; color: var(--muted); font-size: 14px; padding: 0 0 8px; }
.lp-table th, .lp-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.lp-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lp-table tbody tr:last-child th, .lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table tbody th { font-family: var(--display); font-style: italic; font-size: 18px; }
.lp-race { display: grid; gap: 8px; margin-top: 18px; }
.lp-race-head { margin: 22px 0 0; font-weight: 600; }
.lp-race-head span { color: var(--muted); font-weight: 400; }
.lp-race-row { display: grid; grid-template-columns: minmax(84px, 130px) minmax(0, 1fr) 82px; align-items: center; gap: 10px; }
.lp-race-name { font-weight: 600; font-size: 14px; }
.lp-race-bar { height: 12px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.lp-race-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red-deep), var(--red)); }
.lp-race-row:first-child .lp-race-bar i { background: var(--silver); opacity: .55; }
.lp-race-time { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
.lp-more { color: var(--red); font-weight: 600; text-decoration: none; }

.lp-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.lp-car { display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: radial-gradient(120% 90% at 50% 30%, #2a2124, var(--panel)); border: 1px solid var(--line); text-decoration: none; color: var(--fg); text-align: center; }
.lp-car img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.lp-car span { font-weight: 600; font-size: 14px; color: var(--fg); }
.lp-car:hover { border-color: var(--red); }

.lp-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.lp-part { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.lp-part img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #fff; }
.lp-part-name { color: var(--fg); font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-part-price { font-weight: 700; color: var(--red); font-size: 14px; }
.lp-part-price del { color: var(--muted); font-weight: 400; }
.lp-part:hover { border-color: var(--red); }

.lp-faq { display: grid; gap: 8px; max-width: 900px; }
.lp-faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.lp-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--red); font-weight: 700; font-size: 20px; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0 0 14px; color: var(--fg); line-height: 1.6; }

.lp-end { background: radial-gradient(120% 140% at 0% 0%, rgba(227, 20, 31, .22), transparent 60%), var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 30px); }
.lp-end p { max-width: 66ch; }
.lp-others { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.lp-others a { color: var(--fg); }

@media (max-width: 760px) {
  .lp-high { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-table { min-width: 0; font-size: 14px; }
  .lp-table th, .lp-table td { padding: 9px 7px; }
  .lp-table thead th { font-size: 11px; letter-spacing: .03em; }
  .lp-table tbody th { font-size: 16px; }
  .lp-bhp { font-size: 34px; }
}

/* Engine cards on the general pages (Colchester, remote tuning) */
.lp-ecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.lp-ecard { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: radial-gradient(120% 90% at 50% 20%, #2a2124, var(--panel)); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.lp-ecard img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.lp-ecard strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1.05; color: var(--fg); }
.lp-ecard span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.lp-ecard em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; color: var(--red); font-size: 14px; }
.lp-ecard:hover { border-color: var(--red); }
@media (max-width: 760px) { .lp-ecards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .lp-ecard { padding: 10px; } .lp-ecard strong { font-size: 20px; } }
