/* TOP-only CAR MATCH. Shared section, kicker and button rules stay in style.css. */
.cp-match { scroll-margin-top: 100px; }
.cp-match-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-rows: auto auto;
    column-gap: 36px;
    align-items: center;
}
.cp-match-copy { align-self: end; padding-top: 18px; }
.cp-match h2 { margin: 0 0 24px; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.cp-match-catch { font-size: 19px; font-weight: 700; line-height: 1.8; margin-bottom: 14px; }
.cp-match-description { font-size: 15px; line-height: 1.9; color: #555; }
.cp-match-time { white-space: nowrap; }
.cp-match-gallery { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
.cp-match-cards { display: grid; grid-template-columns: 1fr 1.13fr 1fr; gap: 10px; align-items: start; list-style: none; margin: 0; padding: 24px 0 32px; }
.cp-match-card { min-width: 0; margin-top: 30px; }
.cp-match-card--05 { order: -1; }
.cp-match-card--01 { margin-top: 0; }
.cp-match-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 8px; }
.cp-match-action { align-self: start; padding-top: 28px; }
.cp-match .cp-match-cta { font-family: inherit; font-size: 14px; min-height: 54px; gap: 14px; background: #161616; color: #fff; border-color: #161616; }
.cp-match .cp-match-cta:hover { background: #353535; border-color: #353535; color: #fff; transform: none; }
.cp-match .cp-match-arrow { color: inherit; line-height: 1; }
.cp-match .cp-match-cta:disabled { cursor: not-allowed; opacity: .65; transform: none; background: #fff; color: #161616; }
.cp-match-controls { display: none; }
.cp-match :is(a, button, [tabindex]):focus-visible { outline: 2px solid #161616; outline-offset: 5px; }
@media (max-width: 1023px) {
    .cp-match-layout { display: block; }
    .cp-match-copy { padding-top: 0; }
    .cp-match h2 { font-size: clamp(38px, 8vw, 56px); margin-bottom: 22px; }
    .cp-match-catch { font-size: clamp(17px, 3.5vw, 21px); }
    .cp-match-description { max-width: 480px; }
    .cp-match-gallery { margin-top: 28px; }
    .cp-match-cards {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 6px 0 12px;
        scroll-padding-inline: 0;
    }
    .cp-match-cards::-webkit-scrollbar { display: none; }
    .cp-match-card { flex: 0 0 min(82%, 600px); margin: 0; scroll-snap-align: start; }
    .cp-match-card--05 { order: 0; }
    .cp-match-cards::after { content: ''; flex: 0 0 max(0px, calc(100% - min(82%, 600px) - 32px)); }
    .cp-match-controls:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; }
    .cp-match-controls button { width: 44px; height: 44px; border: 1px solid #dfdfd8; border-radius: 50%; background: #fff; color: #161616; font: inherit; cursor: pointer; }
    .cp-match-controls button:disabled { opacity: .3; cursor: default; }
    .cp-match-position { font-size: 12px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
    .cp-match-action { padding-top: 26px; }
    .cp-match .cp-match-cta { width: min(100%, 360px); }
}
