body{background-image:linear-gradient(color-mix(in srgb,var(--bg) 89%,transparent),color-mix(in srgb,var(--bg) 96%,transparent)),url('../img/hero.jpg');background-position:center;background-size:cover;background-attachment:fixed}
.logo b,.logo small{text-transform:uppercase;max-width:16ch;text-overflow:ellipsis;overflow:hidden}.prefs,.prefs label{display:flex;align-items:center;gap:5px}.prefs .icon{width:15px;color:var(--gold)}.prefs select{width:auto;background:transparent;padding:6px 1px;border:none;font-size:13px}.prefs select option{background:var(--surface)}.prefs label+label{border-left:1px solid var(--line);padding-left:6px}.mobileprefs{display:none}.card{border-radius:12px;box-shadow:0 12px 32px #0002;transition:transform .25s,border-color .25s}.card:hover,.card:focus-visible{transform:translateY(-4px);border-color:var(--gold)}.photo{aspect-ratio:1.74}.photo:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#0006);pointer-events:none}.photoCount{position:absolute;right:12px;bottom:12px;z-index:1;display:flex;align-items:center;gap:6px;background:#111b;color:white;padding:3px 9px;border-radius:20px;font-size:12px}.photoCount svg{width:14px}.cardline,.price,.desktitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.cardline>span{font-size:13px;color:var(--muted)}.card h3{font-size:clamp(24px,2.1vw,34px);letter-spacing:-.035em}.card .meta span+span{border-left:1px solid var(--line);padding-left:9px}.price{font-size:18px}.carview{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid var(--line);color:var(--gold)}.albumstrip{display:flex;gap:8px;overflow-x:auto;margin-top:10px}.albumstrip button{padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;flex:none}.albumstrip button:hover,.albumstrip button:focus{border-color:var(--gold)}.albumstrip img{height:55px;object-fit:cover;display:block}
.workspace{display:grid;grid-template-columns:minmax(160px,200px) minmax(0,1fr);gap:clamp(20px,3vw,50px);min-height:75vh}.sidebar{align-self:start;position:sticky;top:98px;border:1px solid var(--line);border-radius:10px;padding:8px;background:var(--surface)}.sideitems{display:grid;gap:3px}.sideitems button{padding:13px 12px;display:flex;align-items:center;gap:12px;border-radius:6px;text-align:left;font-size:14px}.sideitems button.selected,.sideitems button:hover{background:color-mix(in srgb,var(--gold) 11%,var(--surface));color:var(--gold)}.sideToggle{display:none}.desk{min-width:0}.desktitle h1{font:500 clamp(32px,4vw,54px) var(--serif);letter-spacing:-.045em}.desktitle time{color:var(--muted);font-size:14px}.desk>.note{margin:8px 0 20px}.desk .statgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.statgrid .panel{display:flex;flex-direction:column;justify-content:space-between}.adminactions button{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;border:1px solid var(--line);border-radius:5px}.adminactions button:hover{border-color:var(--gold)}.photoeditor h3{margin:5px 0 10px}.dropzone{position:relative;display:grid;justify-items:center;gap:5px;padding:22px 12px;text-align:center;border:1px dashed var(--gold);border-radius:8px;background:color-mix(in srgb,var(--gold) 5%,var(--surface));cursor:pointer}.dropzone .icon{width:27px;height:27px;color:var(--gold)}.dropzone b{color:var(--text)}.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.dropzone:focus-within,.dropzone.over{outline:2px solid var(--gold)}.draftpics{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:8px;margin-top:10px}.draftpics>div{border:1px solid var(--line);border-radius:6px;overflow:hidden}.draftpics img{display:block;width:100%;aspect-ratio:1.55;object-fit:cover}.draftpics>div>div{display:flex;align-items:center;justify-content:space-between;padding:3px}.draftpics button{font-size:12px}.draftpics button:disabled{color:var(--gold);opacity:1}.uploadStatus{font-size:13px}.desk>form h3{margin-top:8px}
@media(max-width:1100px){.desktopprefs{display:none}.mobileprefs{display:block}.navlinks{gap:14px}.navlinks .prefs{gap:1px}.navlinks .prefs select{font-size:12px}}
@media(max-width:850px){nav .contactbtn span{display:none}.desktopprefs{display:none}.workspace{grid-template-columns:155px minmax(0,1fr)}.desk .statgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.navlinks.open,.expanded .sideitems{animation:menuEnter .26s ease-out both}.navlinks.open a{animation:menuEnter .25s ease-out both}.navlinks.open a:nth-child(2){animation-delay:.03s}.navlinks.open a:nth-child(3){animation-delay:.06s}.navlinks.open a:nth-child(4){animation-delay:.09s}.mobileprefs{border-top:1px solid var(--line);padding-top:9px}.navlinks .prefs select{font-size:14px}.contactbtn{border-radius:50%;width:40px;height:40px}.workspace{display:block}.sidebar{position:static;margin-bottom:20px}.sideToggle{display:flex;border:0;justify-content:flex-start;width:100%}.sideitems{display:none}.expanded .sideitems{display:grid}.desktitle{align-items:start;flex-direction:column;gap:2px}.desk .statgrid{gap:10px}.desk .panel{padding:14px}body{background-attachment:scroll}}
@keyframes menuEnter{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.navlinks.open,.navlinks.open a,.expanded .sideitems{animation:none}.card:hover{transform:none}}


.narrow{max-width:490px;margin:auto}.trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.editorsection{border-top:1px solid var(--line);padding:12px 0}.editorsection .form{margin-top:12px}fieldset{min-width:0;border:1px solid var(--line);border-radius:5px;margin:8px 0;padding:12px}.editorsection input[type=checkbox],.panel input[type=checkbox]{width:auto}.map{width:100%;height:340px;margin-top:24px;border:0}.socials{display:flex;gap:8px}.panel [role=alert]{color:#eea597}.sidebar .btn{margin:8px 0}.bar .socials{font-size:12px}

dialog .btn:hover,dialog button:focus{transform:none}.trap{inset:auto;position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap;pointer-events:none}

.cardmake {
    display: none;
}

.latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.latest-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.latest-item .card { flex: 1; border: 0; border-radius: 0; box-shadow: none; }
.latest-item .card:hover, .latest-item .card:focus-visible { transform: none; }
.latest-item .card:focus-visible, .latest-order:focus-visible { outline-offset: -3px; }
.latest-order {
    min-height: 44px;
    border-top: 1px solid var(--line);
    font-weight: 600;
    color: var(--gold);
}
.latest-order:hover { background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
@media (min-width: 1025px) {
    .latest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vehicle-actions, .share-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    gap: .65rem;
    margin-top: 1rem;
}
.discussion { grid-template-columns: repeat(2,minmax(0,1fr)); }
.discussion > *, .thread-panel, .thread-entry { min-width: 0; }
.thread-heading, .thread-entry header {
    position: static;
    z-index: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .7rem;
}
.thread-heading { margin-bottom: 1rem; }
.thread-heading h2 { margin: 0; }
.thread-heading [data-comment-count] { color: var(--gold); font-variant-numeric: tabular-nums; }
.thread-stream {
    max-block-size: clamp(14rem, 48vh, 26rem);
    overflow: auto;
    scrollbar-gutter: stable;
    scrollbar-color: var(--muted) var(--surface);
    padding-inline-end: .5rem;
}
.thread-stream.paged { block-size: clamp(14rem, 48vh, 26rem); }
.thread-entry { padding: .9rem 0; overflow-wrap: anywhere; }
.thread-entry:first-child { padding-top: .2rem; }
.thread-entry + .thread-entry { border-top: 1px solid var(--line); }
.thread-entry header { flex-wrap: wrap; gap: .2rem .65rem; }
.thread-entry time { font-size: .8125rem; color: var(--muted); }
.thread-entry p { margin-top: .35rem; white-space: pre-wrap; }
.thread-reply { margin-top: .75rem; padding-left: .8rem; border-left: 2px solid var(--gold); }
.thread-reply strong { font-size: .875rem; }
.thread-pager {
    position: static;
    height: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem;
    padding: .8rem 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
}
.thread-pager .btn { padding: .45rem .75rem; min-height: 40px; }
.thread-pager span { color: var(--muted); font-size: .875rem; }
[data-moderation] .thread-stream { overflow-wrap: anywhere; }
.share-preview { display: flex; align-items: center; gap: 1rem; }
.share-preview img { width: min(34%, 9rem); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.share-preview h3 { font: 500 1.5rem/1.2 var(--serif); overflow-wrap: anywhere; }
.share-preview p { margin-top: .35rem; }
.share-channels { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 1rem 0; }
.share-channels a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.share-details textarea { margin-top: .7rem; }
@media (max-width: 720px) {
    .discussion { grid-template-columns: minmax(0,1fr); }
    .vehicle-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .vehicle-actions .order-primary, .vehicle-actions > :only-child { grid-column: 1 / -1; }
}

.related-cars .card:nth-child(4) {
    display: none;
}

@media (max-width: 720px), (max-width: 1024px) and (max-height: 500px) and (pointer: coarse) {
    .car-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(.625rem, 2.8vw, 1rem);
    }

    .car-grid .card,
    .related-cars .card:nth-child(4) {
        display: flex;
        flex-direction: column;
        min-width: 0;
        border-radius: 10px;
    }

    .car-grid .photo {
        width: 100%;
        aspect-ratio: 16 / 10;
        flex: none;
    }

    .car-grid .photo::after {
        content: none;
    }

    .car-grid .badge,
    .car-grid .photoCount,
    .car-grid .cardline small,
    .car-grid .meta,
    .car-grid .carview {
        display: none;
    }

    .car-grid .cardbody {
        flex: 1;
        display: grid;
        grid-template: "name" 1fr "price" auto "year" auto / minmax(0, 1fr);
        gap: .25rem;
        padding: clamp(.625rem, 2.8vw, .95rem);
        overflow-wrap: anywhere;
    }

    .car-grid .cardline {
        display: contents;
    }

    .car-grid .cardmake {
        display: inline;
    }

    .car-grid h3 {
        grid-area: name;
        margin: 0 0 .25rem;
        font-size: clamp(1.0625rem, 4.5vw, 1.45rem);
        letter-spacing: -.025em;
        line-height: 1.2;
    }

    .car-grid .price {
        grid-area: price;
        display: block;
        border: 0;
        margin: 0;
        padding: 0;
        font-size: clamp(.875rem, 3.5vw, 1.0625rem);
        line-height: 1.35;
        font-variant-numeric: tabular-nums;
    }

    .car-grid .cardyear {
        grid-area: year;
        font-size: .8125rem;
        line-height: 1.35;
    }
}

/* Logo image in header/footer */
.logo.has-image img{height:66px;width:auto;max-width:min(270px,50vw);display:block;object-fit:contain}
:root:not([data-theme=light]) .logo.has-image img{mix-blend-mode:lighten}
:root[data-theme=light] .logo.has-image img{border-radius:6px}
.footrow .logo.has-image img{height:56px}
@media(max-width:490px){.logo.has-image img{height:50px;max-width:56vw}}
/* Admin: logo and name */
.brandgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.brandbox{display:grid;gap:12px;align-content:start;border:1px solid var(--line);border-radius:8px;padding:16px}
.brandpreview{display:grid;place-items:center;min-height:120px;background:#000;border-radius:6px;padding:10px}
.brandpreview .logopreview{max-width:100%;max-height:150px;object-fit:contain}
.brandpreview .favpreview{width:64px;height:64px;object-fit:contain}
