/* ==========================================================================
   Car pages: the public for-sale page (/for-sale/...).
   Built on lcd.css tokens and components (buttons, badges, data-panel,
   stat-row, faq, car-card). Class prefix: cp-.
   ========================================================================== */

.page-car {
    background: var(--paper);
}

/* Owner bar ------------------------------------------------------------- */

.cp-ownerbar {
    background: var(--brand-tint);
    border-bottom: 1px solid var(--brand-tint-line);
    color: var(--brand-tint-ink);
}

.cp-ownerbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding-block: 10px;
    font-size: 0.9375rem;
}

.cp-ownerbar__note {
    margin-left: 4px;
    color: var(--brand-tint-ink);
}

/* Breadcrumbs row -------------------------------------------------------- */

.cp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 18px 14px;
}

.cp-top nav {
    min-width: 0;
}

.cp-top__share {
    flex: none;
}

/* Gallery ---------------------------------------------------------------- */

.cp-gallery--embed {
    padding-top: 16px;
}

.cp-mosaic {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    isolation: isolate;
}

.cp-mosaic__track {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    /* Short enough on laptop screens that the title and price show without scrolling. */
    height: clamp(340px, min(40vw, 100svh - 360px), 600px);
    list-style: none;
}

.cp-mosaic__tile {
    min-width: 0;
    min-height: 0;
}

.cp-mosaic__tile:first-child {
    grid-row: 1 / 3;
}

.cp-mosaic__tile:nth-child(n + 6) {
    display: none;
}

.cp-mosaic--1 .cp-mosaic__track {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.cp-mosaic--2 .cp-mosaic__track {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

.cp-mosaic--2 .cp-mosaic__tile:first-child {
    grid-row: auto;
}

.cp-mosaic--3 .cp-mosaic__track {
    grid-template-columns: 2fr 1fr;
}

.cp-mosaic--4 .cp-mosaic__tile:nth-child(2) {
    grid-column: 2 / 4;
}

.cp-mosaic__button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: var(--surface-2);
    cursor: zoom-in;
    overflow: hidden;
}

.cp-mosaic__button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease), filter 0.3s var(--ease);
}

.cp-mosaic__track:hover .cp-mosaic__button img {
    filter: brightness(0.9);
}

.cp-mosaic__track .cp-mosaic__button:hover img,
.cp-mosaic__button:focus-visible img {
    filter: none;
    transform: scale(1.03);
}

.cp-mosaic__button:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: -3px;
}

.cp-mosaic__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    pointer-events: none;
}

.cp-badge-sold {
    background: rgba(11, 11, 12, 0.82);
    color: var(--brand-on-ink);
}

.cp-mosaic__all {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius-sm, 4px);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.cp-mosaic__all:hover {
    background: #FFFFFF;
    transform: translateY(-1px);
}

.cp-mosaic__count {
    display: none;
}

.cp-gallery__empty {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    height: clamp(240px, 28vw, 380px);
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(var(--brand-rgb), 0.16), transparent 60%),
        linear-gradient(160deg, #1A1A1D, var(--ink));
    color: var(--on-ink);
}

.cp-gallery__empty-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.75rem);
    line-height: 1;
    letter-spacing: -0.015em;
}

.cp-gallery__empty-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--on-ink-3);
    font-size: 0.9375rem;
}

/* Layout ----------------------------------------------------------------- */

.cp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    grid-template-areas:
        "head aside"
        "main aside";
    align-items: start;
    column-gap: clamp(32px, 4.5vw, 80px);
    padding-top: clamp(28px, 3vw, 44px);
    padding-bottom: clamp(56px, 6vw, 104px);
}

.cp-head {
    grid-area: head;
    min-width: 0;
}

.cp-aside {
    grid-area: aside;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.page-car--embed .cp-aside {
    top: 16px;
}

.cp-main {
    grid-area: main;
    min-width: 0;
    counter-reset: cp-section;
}

/* Title block ------------------------------------------------------------ */

.cp-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cp-eyebrow__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

.cp-title {
    margin-top: 14px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 1.5rem + 3.8vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--text);
    text-wrap: balance;
}

.cp-title__year {
    color: var(--text-3);
}

.cp-title__trim {
    display: block;
    margin-top: 0.12em;
    font-size: 0.52em;
    font-style: italic;
    line-height: 1.1;
    color: var(--text-2);
}

.cp-tagline {
    margin-top: 18px;
    max-width: 48ch;
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3rem);
    line-height: 1.5;
    color: var(--text-2);
}

.cp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    list-style: none;
}

.cp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm, 4px);
    background: var(--surface);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.cp-chip .icon {
    color: var(--text-3);
}

.cp-swatch {
    display: inline-block;
    flex: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--swatch, #999);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Price card ------------------------------------------------------------- */

.cp-price {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 2px rgba(17, 17, 19, 0.04), 0 24px 48px -28px rgba(17, 17, 19, 0.28);
}

.cp-price__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cp-price__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cp-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--good);
}

.cp-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 0 rgba(15, 145, 88, 0.45);
    animation: cp-pulse 2.4s var(--ease) infinite;
}

@keyframes cp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 145, 88, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(15, 145, 88, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 145, 88, 0); }
}

.cp-price__amount {
    margin-top: 10px;
    font-size: clamp(2.3rem, 1.9rem + 1.3vw, 3rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.cp-price__amount--text {
    font-size: 1.9rem;
    letter-spacing: -0.025em;
}

.cp-price__note {
    margin-top: 8px;
    font-size: 0.9375rem;
    color: var(--text-2);
}

.cp-deal {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.cp-deal:hover {
    border-color: var(--line-strong);
}

.cp-deal--great,
.cp-deal--good {
    background: var(--good-tint);
    border-color: #BCE5CD;
}

.cp-deal--great:hover,
.cp-deal--good:hover {
    border-color: #8FD3AC;
}

.cp-deal__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

.cp-deal--great .cp-deal__label,
.cp-deal--good .cp-deal__label {
    color: var(--good-strong);
}

.cp-deal--fair .cp-deal__label {
    color: #7A5A00;
}

.cp-deal__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.cp-deal__text {
    font-size: 0.875rem;
    color: var(--text-2);
}

.cp-meter {
    position: relative;
    display: block;
    height: 6px;
    margin: 14px 4px 6px;
    border-radius: var(--radius-pill);
    background: rgba(17, 17, 19, 0.08);
}

.cp-meter__band {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: var(--radius-pill);
    background: rgba(17, 17, 19, 0.2);
}

.cp-deal--great .cp-meter__band,
.cp-deal--good .cp-meter__band {
    background: rgba(10, 116, 70, 0.28);
}

.cp-meter__fair {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 14px;
    margin-left: -1px;
    border-radius: 1px;
    background: var(--text);
}

.cp-meter__pin {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--brand-strong);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%);
}

.cp-price__actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.cp-price__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cp-price__share {
    color: var(--text-2);
}

.cp-seller {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.cp-seller__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--brand-on-ink);
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
}

.cp-seller__body {
    min-width: 0;
}

.cp-seller__name {
    font-weight: 600;
    line-height: 1.3;
}

.cp-seller__meta {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-3);
}

.cp-price__hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--brand-tint);
    color: var(--brand-tint-ink);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.cp-price__hint .icon {
    flex: none;
    margin-top: 1px;
}

.cp-price__hint a {
    color: inherit;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cp-safety {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 0 8px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-3);
}

.cp-safety .icon {
    flex: none;
    margin-top: 1px;
}

/* Sections --------------------------------------------------------------- */

.cp-section {
    padding-block: clamp(36px, 3vw + 16px, 60px);
    border-top: 1px solid var(--line);
}

.cp-main > .cp-section:first-child {
    padding-top: clamp(28px, 2vw + 16px, 44px);
    border-top: 0;
}

.cp-section__head {
    margin-bottom: clamp(18px, 1.5vw + 10px, 28px);
}

.cp-section__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cp-section__eyebrow::before {
    counter-increment: cp-section;
    content: counter(cp-section, decimal-leading-zero);
    padding-right: 10px;
    border-right: 1px solid var(--line-strong);
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.cp-section__title {
    margin-top: 10px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.cp-section__lede {
    max-width: 62ch;
    margin-top: 12px;
    color: var(--text-2);
}

.cp-section__lede a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--brand-strong);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.cp-source {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-3);
}

.cp-source .icon {
    flex: none;
    margin-top: 2px;
}

/* Highlights */
.cp-section--highlights {
    padding-block: 28px 32px;
}

.cp-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    list-style: none;
}

.cp-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
}

.cp-highlights__check {
    display: grid;
    place-items: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--brand-ink);
}

/* Story */
.cp-story {
    max-width: 68ch;
}

.cp-story > p:first-child {
    font-size: 1.1875rem;
    line-height: 1.65;
}

.cp-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    color: var(--text-2);
}

/* At a glance */
.cp-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cp-fact {
    display: flex;
    flex: 1 1 30%;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 18px 20px;
    background: var(--surface);
}

.cp-fact dt {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cp-fact dd {
    display: grid;
    gap: 4px;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.cp-fact__value {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cp-fact__value .cp-swatch {
    margin-top: 0.2em;
}

.cp-fact__note {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-3);
}

/* Market check ----------------------------------------------------------- */

.cp-market {
    padding: clamp(22px, 2vw + 12px, 38px);
}

.cp-market__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
}

.cp-market__headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--on-ink);
    text-wrap: balance;
}

.cp-market__summary {
    max-width: 54ch;
    margin-top: 10px;
    color: var(--on-ink-2);
}

.cp-market__badge {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 8px;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: rgba(74, 222, 128, 0.12);
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35);
    color: var(--good-on-ink);
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.cp-market__badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.cp-market__badge--fair {
    background: rgba(var(--brand-rgb), 0.1);
    box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), 0.35);
    color: var(--brand-on-ink);
}

.cp-range {
    margin-top: 64px;
}

.cp-range__track {
    position: relative;
    height: 10px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.32), rgba(255, 255, 255, 0.1) 50%, rgba(255, 138, 128, 0.3));
}

.cp-range__band {
    position: absolute;
    top: -3px;
    bottom: -3px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.cp-range__fair {
    position: absolute;
    top: -9px;
    width: 2px;
    height: 28px;
    margin-left: -1px;
    border-radius: 1px;
    background: var(--on-ink);
}

.cp-range__pin {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 22px;
    height: 22px;
    margin-left: -11px;
    border: 4px solid var(--ink);
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.7), 0 0 26px rgba(var(--brand-rgb), 0.5);
    transform: translateY(-50%);
}

.cp-range__tag {
    position: absolute;
    left: 50%;
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--on-ink-3);
    transform: translateX(calc(var(--at, 50%) * -1));
}

.cp-range__tag b {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--on-ink);
    font-variant-numeric: tabular-nums;
}

.cp-range__tag--fair {
    bottom: calc(100% + 8px);
}

.cp-range__tag--pin {
    top: calc(100% + 12px);
}

.cp-range__tag--pin b {
    color: var(--brand-on-ink);
}

.cp-range__ends {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 60px;
    font-size: 0.8125rem;
    color: var(--on-ink-3);
    font-variant-numeric: tabular-nums;
}

.cp-range__typical {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--on-ink-2);
}

.cp-range__swatch {
    width: 18px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.cp-market__stats {
    margin-top: 28px;
}

.cp-comps {
    margin-top: 28px;
}

.cp-comps__title {
    margin-bottom: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--on-ink-3);
}

.cp-comps__list {
    display: grid;
    list-style: none;
}

.cp-comp {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 0.9fr) 88px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--ink-line);
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.cp-comp__car {
    font-weight: 600;
    color: var(--on-ink);
}

.cp-comp__miles,
.cp-comp__where {
    overflow: hidden;
    color: var(--on-ink-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-comp__price {
    font-weight: 600;
    text-align: right;
    color: var(--on-ink);
}

.cp-comp__when {
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
    color: var(--on-ink-3);
}

.cp-comp__when.is-live {
    color: var(--good-on-ink);
}

.cp-market__foot {
    margin-top: 22px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--on-ink-3);
}

/* Condition -------------------------------------------------------------- */

.cp-grade {
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.cp-grade__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 6px 18px;
}

.cp-grade__kicker {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cp-grade__label {
    font-family: var(--font-display);
    font-size: 2.1rem;
    line-height: 1;
}

.cp-grade__hint {
    padding-bottom: 3px;
    color: var(--text-2);
}

.cp-grade__scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
    list-style: none;
}

.cp-grade__scale li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    font-size: 0.75rem;
    color: var(--text-3);
}

.cp-grade__scale li::before {
    content: "";
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
}

.cp-grade__scale li.is-on::before {
    background: var(--ink);
}

.cp-grade__scale li.is-current::before {
    background: var(--brand-strong);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.cp-grade__scale li.is-current {
    color: var(--text);
    font-weight: 600;
}

.cp-grade__scale span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}

.cp-traits li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: var(--good-tint);
    color: var(--good-strong);
    font-size: 0.875rem;
    font-weight: 600;
}

.cp-note-block {
    margin-top: 24px;
}

.cp-note-block__title {
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.cp-note-block .prose {
    font-size: 1rem;
    color: var(--text-2);
}

.cp-note-block--issues {
    padding: 16px 18px;
    border-left: 3px solid var(--warn);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: #FBF3E6;
}

.cp-reason {
    margin-top: 24px;
    font-size: 1rem;
}

.cp-reason span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* Every angle ------------------------------------------------------------ */

.cp-photos-group + .cp-photos-group {
    margin-top: 28px;
}

.cp-photos-group__title {
    margin-bottom: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.cp-photos-group__title span {
    margin-left: 4px;
    color: var(--text-3);
    font-weight: 500;
}

.cp-photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
}

.cp-photos li:first-child:nth-last-child(n + 4) {
    grid-column: span 2;
    grid-row: span 2;
}

.cp-photos__item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    overflow: hidden;
    cursor: zoom-in;
}

.cp-photos__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s var(--ease);
}

.cp-photos__item:hover img {
    transform: scale(1.04);
}

.cp-photos__item:focus-visible {
    outline: 3px solid var(--brand-strong);
    outline-offset: 2px;
}

.cp-photos__label {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: rgba(11, 11, 12, 0.62);
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.cp-photos__item:hover .cp-photos__label,
.cp-photos__item:focus-visible .cp-photos__label {
    opacity: 1;
    transform: none;
}

/* Documents -------------------------------------------------------------- */

.cp-docs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 12px;
    list-style: none;
}

.cp-doc {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px 14px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.cp-doc:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
}

.cp-doc__thumb {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 56px;
    height: 72px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--text-2);
    overflow: hidden;
}

.cp-doc__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cp-doc__thumb--icon {
    padding-bottom: 12px;
}

.cp-doc__type {
    position: absolute;
    bottom: 7px;
    left: 50%;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--bad);
    transform: translateX(-50%);
}

.cp-doc__body {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.cp-doc__title {
    font-weight: 600;
    line-height: 1.3;
}

.cp-doc__caption {
    font-size: 0.875rem;
    color: var(--text-2);
}

.cp-doc__meta {
    font-size: 0.8125rem;
    color: var(--text-3);
}

.cp-doc__open {
    flex: none;
    color: var(--text-3);
}

/* Options ---------------------------------------------------------------- */

.cp-options {
    columns: 2 240px;
    column-gap: 36px;
    list-style: none;
}

.cp-options li {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
    break-inside: avoid;
}

/* Factory specs ---------------------------------------------------------- */

.cp-specs {
    display: grid;
    gap: 20px;
}

.cp-vin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 14px 22px;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--on-ink);
}

.cp-vin__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    min-width: 0;
}

.cp-vin__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--brand-on-ink);
}

.cp-vin__value {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    letter-spacing: 0.12em;
    word-break: break-all;
}

.cp-vin .btn-outline {
    color: var(--on-ink);
    border-color: rgba(255, 255, 255, 0.24);
}

.cp-vin .btn-outline:hover {
    border-color: var(--on-ink);
    background: rgba(255, 255, 255, 0.06);
}

.cp-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}

.cp-spec {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9375rem;
}

.cp-spec dt {
    color: var(--text-2);
}

.cp-spec dd {
    font-weight: 600;
    text-align: right;
}

.cp-features__title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cp-features__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    list-style: none;
}

.cp-features__list li {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: 0.8125rem;
    color: var(--text-2);
}

/* Recalls ---------------------------------------------------------------- */

.cp-recalls {
    display: grid;
    gap: 10px;
}

.cp-recall {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cp-recall summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    list-style: none;
    cursor: pointer;
}

.cp-recall summary::-webkit-details-marker {
    display: none;
}

.cp-recall summary::after {
    content: "+";
    flex: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-3);
    transition: transform 0.2s var(--ease);
}

.cp-recall[open] summary::after {
    transform: rotate(45deg);
}

.cp-recall__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #FBF0E0;
    color: var(--warn);
}

.cp-recall__main {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
}

.cp-recall__component {
    font-weight: 600;
    line-height: 1.3;
}

.cp-recall__date {
    font-size: 0.8125rem;
    color: var(--text-3);
}

.cp-recall__flag {
    flex: none;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.cp-recall__flag--bad {
    background: var(--bad-tint);
    color: #8F2222;
}

/* The same flag as text under the date, for phones (the pill is decorative there). */
.cp-recall__flag-inline {
    display: none;
}

.cp-recall__flag-inline.is-bad {
    color: #8F2222;
    font-weight: 600;
}

.cp-recall__body {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px 70px;
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cp-recall__body strong {
    color: var(--text);
}

.cp-recall__campaign {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
}

/* FAQ */
.cp-faq summary {
    font-size: 1.0625rem;
}

/* Owners' answers can run to a few paragraphs or a short list */
.cp-faq .faq__answer > * + * {
    margin-top: 10px;
}

.cp-faq .faq__answer ul {
    padding-left: 1.2em;
}

/* Similar cars and owner CTA ---------------------------------------------- */

.cp-similar {
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.cp-similar .car-card__media img {
    background-size: cover;
    background-position: center;
}

.cp-cta {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 6vw, 104px);
    isolation: isolate;
}

.cp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 120% at 100% 100%, rgba(var(--brand-rgb), 0.18), transparent 60%),
        radial-gradient(40% 80% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
}

.cp-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px 48px;
}

.cp-cta__copy {
    max-width: 660px;
}

.cp-cta .h2 {
    margin-top: 14px;
}

.cp-cta .h2 em {
    color: var(--brand-on-ink);
}

.cp-cta .lede {
    margin-top: 14px;
}

/* Phone sticky bar ------------------------------------------------------- */

.cp-sticky {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 800;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(11, 11, 12, 0.92);
    color: var(--on-ink);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(160%);
    transition: transform 0.35s var(--ease);
}

.cp-sticky.is-visible {
    transform: none;
}

.cp-sticky__price {
    display: grid;
    min-width: 0;
}

.cp-sticky__amount {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.cp-sticky__note {
    overflow: hidden;
    font-size: 0.75rem;
    color: var(--on-ink-3);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lightbox --------------------------------------------------------------- */

.cp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: #0A0A0B;
    color: #FFFFFF;
}

.cp-lightbox[hidden] {
    display: none;
}

.cp-lightbox__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 14px 12px 24px;
}

.cp-lightbox__count {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cp-lightbox__caption {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9375rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-lightbox__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    cursor: pointer;
}

.cp-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.cp-lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0 84px;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.cp-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-size: cover;
    background-position: center;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.cp-lightbox__image.is-loading {
    opacity: 0.35;
}

.cp-lightbox__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s var(--ease);
}

.cp-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cp-lightbox__nav--prev {
    left: 18px;
}

.cp-lightbox__nav--next {
    right: 18px;
}

.cp-lightbox__thumbs {
    display: flex;
    gap: 6px;
    padding: 12px 16px 18px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cp-lightbox__thumbs::-webkit-scrollbar {
    display: none;
}

.cp-lightbox__thumbs button {
    flex: none;
    width: 76px;
    height: 50px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 7px;
    background: #222226;
    overflow: hidden;
    opacity: 0.45;
    cursor: pointer;
    transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cp-lightbox__thumbs button:first-child {
    margin-left: auto;
}

.cp-lightbox__thumbs button:last-child {
    margin-right: auto;
}

.cp-lightbox__thumbs button:hover {
    opacity: 0.8;
}

.cp-lightbox__thumbs button.is-active {
    border-color: var(--brand);
    opacity: 1;
}

.cp-lightbox__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html.cp-lock,
html.cp-lock body {
    overflow: hidden;
}

/* Toast */
.cp-toast {
    position: fixed;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    z-index: 1300;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--on-ink);
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: var(--shadow-3);
    transform: translateX(-50%);
    animation: lcd-rise 0.25s var(--ease) both;
}

.cp-toast[hidden] {
    display: none;
}

/* Message the seller: a centered sheet on wide screens, a bottom sheet on phones */
.cp-msg {
    width: min(560px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-xl);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-3);
    overflow: hidden auto;
    overscroll-behavior: contain;
}

.cp-msg[open] {
    animation: cp-msg-in 0.28s var(--ease) both;
}

/* The sheet itself takes focus when it opens, so no ring on the close button */
.cp-msg:focus {
    outline: none;
}

.cp-msg::backdrop {
    background: color-mix(in srgb, var(--ink) 58%, transparent);
    backdrop-filter: blur(3px);
}

.cp-msg__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px 20px;
}

.cp-msg__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--brand-on-ink);
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
}

.cp-msg__who {
    min-width: 0;
}

.cp-msg__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3125rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.cp-msg__sub {
    margin: 2px 0 0;
    color: var(--text-3);
    font-size: 0.8125rem;
}

.cp-msg__close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.15s;
}

.cp-msg__close:hover {
    background: var(--surface-2);
}

.cp-msg__car {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 20px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.cp-msg__thumb {
    flex: none;
    width: 72px;
    height: 54px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--surface-2);
}

.cp-msg__car-body {
    min-width: 0;
}

.cp-msg__car-name {
    margin: 0;
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-msg__car-facts {
    margin: 2px 0 0;
    color: var(--text-2);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.cp-msg__body {
    display: grid;
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 16px 20px 20px;
    border: 0;
}

.cp-msg__body[hidden] {
    display: none;
}

.cp-msg__owner {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--brand-tint-line);
    border-radius: var(--radius-md);
    background: var(--brand-tint);
    color: var(--brand-tint-ink);
    font-size: 0.875rem;
    line-height: 1.45;
}

.cp-msg__owner svg {
    flex: none;
    margin-top: 2px;
}

.cp-msg__asks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cp-msg__ask {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.cp-msg__ask:hover {
    border-color: var(--ink);
}

.cp-msg__ask-tick {
    display: inline-grid;
    place-items: center;
    width: 0;
    overflow: hidden;
    transition: width 0.15s var(--ease), margin 0.15s var(--ease);
}

.cp-msg__ask[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--on-ink);
}

.cp-msg__ask[aria-pressed="true"] .cp-msg__ask-tick {
    width: 13px;
    margin-right: 6px;
}

.cp-msg__ask:disabled {
    cursor: default;
}

.cp-msg__label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-2);
    font-size: 0.8125rem;
    font-weight: 600;
}

.cp-msg__optional {
    color: var(--text-3);
    font-weight: 400;
}

.cp-msg__text {
    display: block;
    min-height: 104px;
    padding: 12px 14px;
    line-height: 1.5;
    resize: none;
}

.cp-msg .input[aria-invalid="true"] {
    border-color: var(--bad);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent);
}

.cp-msg__body:disabled .input {
    background: var(--paper);
    color: var(--text-2);
}

.cp-msg__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cp-msg__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cp-msg__error {
    margin: 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bad-tint);
    color: var(--bad);
    font-size: 0.875rem;
    font-weight: 600;
}

.cp-msg__error[hidden] {
    display: none;
}

.cp-msg__send.is-loading .icon {
    animation: cp-msg-fly 0.9s var(--ease) infinite;
}

.cp-msg__fine {
    display: flex;
    gap: 8px;
    margin: -2px 0 0;
    color: var(--text-3);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.cp-msg__fine svg {
    flex: none;
    margin-top: 2px;
}

.cp-msg__done {
    padding: 24px 24px 24px;
    text-align: center;
    outline: none;
}

.cp-msg__done[hidden] {
    display: none;
}

.cp-msg__done-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--good-tint);
    color: var(--good);
    animation: cp-msg-pop 0.4s var(--ease) both;
}

.cp-msg__done-icon .icon {
    width: 30px;
    height: 30px;
}

.cp-msg__done-title {
    margin: 14px 0 6px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.2;
}

.cp-msg__done-text {
    margin: 0 auto 18px;
    max-width: 380px;
    color: var(--text-2);
    overflow-wrap: anywhere;
}

.cp-msg__tips {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    list-style: none;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.4;
}

.cp-msg__tips li {
    display: flex;
    gap: 10px;
}

.cp-msg__tips svg {
    flex: none;
    margin-top: 1px;
    color: var(--text-2);
}

@keyframes cp-msg-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@keyframes cp-msg-up {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@keyframes cp-msg-pop {
    0% { transform: scale(0.4); opacity: 0; }
    70% { transform: scale(1.08); opacity: 1; }
    100% { transform: none; }
}

@keyframes cp-msg-fly {
    0% { transform: none; opacity: 1; }
    50% { transform: translate(6px, -6px); opacity: 0; }
    51% { transform: translate(-6px, 6px); opacity: 0; }
    100% { transform: none; opacity: 1; }
}

@media (max-width: 640px) {
    .cp-msg {
        width: 100%;
        max-height: calc(100dvh - 20px);
        margin: auto 0 0;
        border-radius: 18px 18px 0 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .cp-msg[open] {
        animation-name: cp-msg-up;
    }

    .cp-msg__head {
        padding: 16px 14px 12px 16px;
    }

    .cp-msg__car {
        margin: 0 16px;
    }

    .cp-msg__body {
        padding: 14px 16px 18px;
    }

    .cp-msg__row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-msg[open],
    .cp-msg__done-icon,
    .cp-msg__send.is-loading .icon {
        animation: none;
    }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1023px) {
    .cp-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "aside"
            "main";
    }

    .cp-aside {
        position: static;
        margin-top: 28px;
        max-width: 560px;
    }

    .cp-sticky {
        display: flex;
    }

    .page-car .site-footer {
        padding-bottom: 96px;
    }
}

@media (max-width: 760px) {
    .cp-top {
        padding-block: 12px 10px;
    }

    /* Phones: just a back link to the model (or make) page. */
    .cp-top .breadcrumbs li {
        display: none;
    }

    .cp-top .breadcrumbs li:nth-last-child(2) {
        display: inline-flex;
    }

    .cp-top .breadcrumbs li:nth-last-child(2)::before {
        content: "";
        width: 8px;
        height: 8px;
        margin: 0 2px 0 3px;
        border-bottom: 1.5px solid currentColor;
        border-left: 1.5px solid currentColor;
        transform: rotate(45deg);
        color: var(--text-2);
    }

    .cp-top .breadcrumbs a {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text);
    }

    .cp-gallery__inner {
        padding-inline: 0;
    }

    .cp-mosaic {
        border-radius: 0;
    }

    .cp-mosaic__track {
        display: flex;
        gap: 0;
        height: auto;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .cp-mosaic__track::-webkit-scrollbar {
        display: none;
    }

    .cp-mosaic__tile,
    .cp-mosaic__tile:nth-child(n + 6) {
        display: block;
        flex: 0 0 100%;
        aspect-ratio: 4 / 3;
        scroll-snap-align: start;
    }

    .cp-mosaic__track:hover .cp-mosaic__button img {
        filter: none;
    }

    .cp-mosaic__all {
        display: none;
    }

    .cp-mosaic__count {
        position: absolute;
        right: 12px;
        bottom: 12px;
        display: inline-flex;
        align-items: center;
        height: 28px;
        padding: 0 11px;
        border-radius: var(--radius-pill);
        background: rgba(11, 11, 12, 0.66);
        color: #FFFFFF;
        font-size: 0.75rem;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .cp-mosaic__badges {
        top: 12px;
        left: 12px;
    }

    .cp-gallery__empty {
        border-radius: 0;
    }

    .cp-highlights {
        grid-template-columns: minmax(0, 1fr);
    }

    .cp-fact {
        flex-basis: 45%;
        padding: 16px;
    }

    .cp-market__top {
        flex-direction: column;
    }

    .cp-range__ends > span:first-child,
    .cp-range__ends > span:last-child {
        display: none;
    }

    .cp-range__ends {
        justify-content: center;
    }

    .cp-comp {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "car price"
            "meta when";
        gap: 2px 12px;
    }

    .cp-comp__car { grid-area: car; }
    .cp-comp__price { grid-area: price; }
    .cp-comp__when { grid-area: when; }

    .cp-comp__miles {
        grid-area: meta;
        font-size: 0.8125rem;
    }

    .cp-comp__where {
        display: none;
    }

    .cp-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-photos__label {
        opacity: 1;
        transform: none;
    }

    .cp-photos__label--shot {
        display: none;
    }

    .cp-grade__scale li {
        font-size: 0.6875rem;
    }

    .cp-grade__scale span {
        white-space: normal;
        line-height: 1.25;
    }

    .cp-recall summary {
        align-items: flex-start;
    }

    .cp-recall__flag {
        display: none;
    }

    .cp-recall__flag-inline {
        display: inline;
    }

    .cp-spec-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .cp-recall__body {
        padding-left: 18px;
    }

    .cp-lightbox__stage {
        padding: 0;
    }

    .cp-lightbox__nav,
    .cp-lightbox__thumbs {
        display: none;
    }

    .cp-cta .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-mosaic__button img,
    .cp-photos__item img,
    .cp-sticky,
    .cp-lightbox__image {
        transition: none;
    }

    .cp-live__dot {
        animation: none;
    }
}

@media print {
    .cp-ownerbar,
    .cp-top__share,
    .cp-price__actions,
    .cp-sticky,
    .cp-lightbox,
    .cp-cta,
    .cp-similar,
    .cp-mosaic__all {
        display: none !important;
    }

    .cp-layout {
        display: block;
    }

    .cp-aside {
        position: static;
        margin: 24px 0;
    }

    .cp-mosaic__track {
        height: 320px;
    }
}

/* ------------------------------------------------------------------ */
/* Start screen (/sell)                                                */
/* ------------------------------------------------------------------ */

.sell-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
    background:
        radial-gradient(1100px 520px at 85% -10%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 60%),
        var(--ink);
    color: var(--on-ink);
}

.sell-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.sell-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-pill);
    color: var(--on-ink-2);
    font-size: 0.8125rem;
    font-weight: 600;
}

.sell-eyebrow__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--good-on-ink);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--good-on-ink) 22%, transparent);
}

.sell-hero__title {
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.6vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.sell-hero__lede {
    max-width: 560px;
    margin-top: 18px;
    color: var(--on-ink-2);
    font-size: 1.125rem;
    line-height: 1.6;
}

.sell-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px;
    padding: 0;
    list-style: none;
    color: var(--on-ink);
    font-size: 0.9375rem;
    font-weight: 550;
}

.sell-hero__points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sell-hero__points svg {
    color: var(--good-on-ink);
}

.sell-start {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-3);
}

.sell-start__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.15;
}

.sell-start__sub {
    margin-top: 6px;
    color: var(--text-2);
    font-size: 0.9375rem;
}

.sell-vin,
.sell-manual {
    margin-top: 20px;
}

.sell-vin[hidden],
.sell-manual[hidden] {
    display: none;
}

.sell-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 650;
}

.sell-vin__box {
    position: relative;
}

.sell-vin__input {
    width: 100%;
    height: 58px;
    padding-right: 64px;
    font-family: var(--font-mono);
    font-size: 1.125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sell-vin__input::placeholder {
    font-family: var(--font-sans);
    letter-spacing: 0;
    text-transform: none;
}

.sell-vin__count {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.sell-vin__count.is-full {
    color: var(--good-strong);
}

.sell-help {
    margin-top: 8px;
    color: var(--text-3);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.sell-manual {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.sell-manual .input {
    width: 100%;
}

.sell-error {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bad-tint);
    color: var(--bad);
    font-size: 0.875rem;
    font-weight: 550;
}

.sell-error[hidden] {
    display: none;
}

.sell-submit {
    gap: 8px;
    margin-top: 18px;
}

.sell-submit.is-busy {
    opacity: 0.75;
    cursor: progress;
}

.sell-switch {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 12px;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--text-2);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.sell-switch:hover {
    color: var(--text);
}

.sell-fine {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--text-3);
    font-size: 0.8125rem;
}

.sell-mine {
    padding: 40px 0 0;
}

.sell-mine__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.sell-mine__card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sell-mine__card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-1);
}

.sell-mine__thumb {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 112px;
    height: 76px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-3);
}

.sell-mine__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sell-mine__body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sell-mine__title {
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sell-mine__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    color: var(--text-3);
    font-size: 0.8125rem;
}

.sell-mine__status {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-weight: 650;
}

.sell-mine__status--live {
    background: var(--good-tint);
    color: var(--good-strong);
}

.sell-mine__go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 650;
}

.sell-section {
    padding: 72px 0;
}

.sell-section--tint {
    background: var(--surface-2);
}

.sell-kicker {
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sell-h2 {
    max-width: 720px;
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
}

.sell-h2--small {
    margin-top: 0;
    font-size: 1.375rem;
}

.sell-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
    padding: 0;
    list-style: none;
}

.sell-feature {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.sell-feature__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
}

.sell-feature__title {
    margin-top: 16px;
    font-size: 1.0625rem;
    font-weight: 700;
}

.sell-feature__text {
    margin-top: 6px;
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.sell-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
    padding: 0;
    list-style: none;
}

.sell-step {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.sell-step__n {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--on-ink);
    font-family: var(--font-display);
    font-size: 1rem;
}

.sell-step h3 {
    margin-top: 14px;
    font-size: 1.0625rem;
    font-weight: 700;
}

.sell-step p {
    margin-top: 6px;
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.sell-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
}

.sell-faq .sell-h2 {
    margin-top: 0;
}

.sell-faq__item {
    border-bottom: 1px solid var(--line);
}

.sell-faq__item:first-child {
    border-top: 1px solid var(--line);
}

.sell-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.sell-faq__item summary::-webkit-details-marker {
    display: none;
}

.sell-faq__item summary::after {
    content: '+';
    flex: none;
    color: var(--text-3);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1;
}

.sell-faq__item[open] summary::after {
    content: '\2212';
}

.sell-faq__item p {
    padding: 0 0 18px;
    color: var(--text-2);
    line-height: 1.6;
}

.sell-cta {
    padding: 64px 0;
    background: var(--ink);
    color: var(--on-ink);
}

.sell-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sell-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.1;
}

.sell-cta .btn {
    gap: 8px;
}

@media (max-width: 900px) {
    .sell-hero {
        padding: 32px 0 40px;
    }

    .sell-hero__inner,
    .sell-faq {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .sell-features,
    .sell-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .sell-section {
        padding: 48px 0;
    }
}

@media (max-width: 520px) {
    .sell-start {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .sell-hero__lede {
        font-size: 1rem;
    }

    .sell-manual {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .sell-field--year {
        grid-column: 1 / -1;
    }

    .sell-mine__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .sell-mine__card {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .sell-mine__thumb {
        width: 84px;
        height: 60px;
    }

    .sell-mine__go {
        display: none;
    }
}

/* ------------------------------------------------------------------ */
/* Dealer trade-in packet (/trade-in/:token)                           */
/* ------------------------------------------------------------------ */

.page-packet {
    background: var(--surface-2);
}

.pk-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(16px, calc((100vw - 980px) / 2));
    background: var(--ink);
}

.pk-bar__logo img {
    display: block;
    width: auto;
    height: 22px;
}

.pk-bar__actions {
    display: flex;
    gap: 8px;
}

.pk-bar__button {
    gap: 6px;
}

.pk-bar .btn-outline {
    border-color: var(--ink-line);
    background: transparent;
    color: var(--on-ink);
}

.pk-sheet {
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.pk-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
}

.pk-hero__photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.pk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pk-title {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
}

.pk-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 10px;
    color: var(--text-2);
    font-size: 0.9375rem;
}

.pk-vin {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}

.pk-vin span {
    color: var(--text-3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pk-vin strong {
    font-family: var(--font-mono);
    font-size: 1.0625rem;
    letter-spacing: 0.06em;
}

.pk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pk-card {
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    break-inside: avoid;
}

.pk-h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 1.0625rem;
    font-weight: 750;
}

.pk-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 0.75rem;
}

.pk-list {
    display: grid;
}

.pk-list div {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

.pk-list div:first-child {
    border-top: 0;
    padding-top: 0;
}

.pk-list dt {
    color: var(--text-3);
    font-size: 0.875rem;
}

.pk-list dd {
    font-size: 0.9375rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.pk-source,
.pk-empty {
    margin-top: 12px;
    color: var(--text-3);
    font-size: 0.8125rem;
}

.pk-source a {
    color: inherit;
}

.pk-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.pk-note h3 {
    font-size: 0.875rem;
    font-weight: 700;
}

.pk-note p,
.pk-note ul {
    margin-top: 6px;
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.pk-note ul {
    padding-left: 1.2em;
}

.pk-big {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.15;
}

.pk-text {
    margin-top: 8px;
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.pk-text a {
    color: var(--text);
    font-weight: 650;
}

.pk-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
}

.pk-line span {
    color: var(--text-3);
}

.pk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.pk-chips li {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 550;
}

.pk-docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}

.pk-doc {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
}

.pk-doc:hover {
    border-color: var(--line-strong);
}

.pk-doc__thumb {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 52px;
    height: 64px;
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--text-3);
}

.pk-doc__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pk-doc__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.pk-doc__body strong {
    overflow: hidden;
    font-size: 0.9375rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-doc__body span {
    color: var(--text-3);
    font-size: 0.8125rem;
}

.pk-recalls {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.pk-recalls li {
    font-size: 0.9375rem;
}

.pk-recalls span {
    color: var(--text-3);
}

.pk-recalls p {
    margin-top: 2px;
    color: var(--text-2);
    font-size: 0.875rem;
    line-height: 1.5;
}

.pk-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    list-style: none;
}

.pk-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
    object-fit: cover;
}

.pk-seller {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pk-seller .pk-h2 {
    margin-bottom: 6px;
}

.pk-seller__link {
    gap: 6px;
}

.pk-foot {
    padding: 4px 4px 0;
    color: var(--text-3);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.pk-foot p + p {
    margin-top: 4px;
}

@media (max-width: 760px) {
    .pk-hero,
    .pk-grid,
    .pk-notes,
    .pk-docs {
        grid-template-columns: minmax(0, 1fr);
    }

    .pk-hero__photo {
        order: -1;
    }

    .pk-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .pk-bar [data-pk-copy] {
        display: none;
    }
}

@media print {
    .page-packet {
        background: none;
    }

    .pk-bar,
    .pk-seller__link {
        display: none;
    }

    .pk-sheet {
        max-width: none;
        padding: 0;
        gap: 10px;
    }

    .pk-hero,
    .pk-card {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
    }

    .pk-photos {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .pk-doc {
        break-inside: avoid;
    }

    a[href] {
        text-decoration: none;
    }
}
