:root{--green:#007a43;--green2:#009b58;--ink:#0b1720;--muted:#65717a;--line:#dfe6e2;--soft:#f5f8f6;--max:1200px}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#fff}.nan-shell{width:min(var(--max),calc(100% - 32px));margin:auto}.nan-header{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line)}.nav-row{min-height:72px;display:flex;align-items:center;gap:32px}.brand{color:var(--ink);text-decoration:none;display:flex;flex-direction:column;font-size:22px}.brand span{color:var(--green)}.brand small{font-size:9px;font-weight:400;color:var(--muted)}nav{display:flex;gap:25px;margin-left:auto}nav a,.auth a{font-size:13px;font-weight:700;text-decoration:none;color:var(--ink)}.auth{display:flex;align-items:center;gap:12px}.button,.searchbar button{border:0;background:var(--green);color:#fff!important;border-radius:6px;padding:13px 22px;text-decoration:none;font-weight:800;cursor:pointer}.hero,.page-hero{background:#0d191d;color:#fff;padding:70px 0}.page-hero{padding:45px 0}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:900;color:var(--green2)}.hero h1,.page-hero h1{font-size:clamp(36px,5vw,64px);line-height:1.02;margin:10px 0 28px}.searchbar{display:flex;max-width:900px;background:#fff;padding:6px;border-radius:8px}.searchbar input{min-width:0;flex:1;border:0;padding:14px;font-size:16px;outline:0}.section{padding:42px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.section-head h2{font-size:27px;margin:0 0 5px}.section-head p{margin:0;color:var(--muted)}.section-head a,.back{color:var(--green);font-weight:800;text-decoration:none}.vehicle-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.vehicle-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 4px 15px rgba(10,30,20,.04)}.vehicle-media{display:block;aspect-ratio:16/10;background:var(--soft)}.vehicle-media img{width:100%;height:100%;object-fit:cover;display:block}.media-empty{height:100%;display:grid;place-items:center;color:#4b5d54;font-size:13px;font-weight:700}.media-empty.large{min-height:480px}.vehicle-copy{padding:15px;display:flex;flex-direction:column;gap:7px}.vehicle-copy h3{font-size:15px;margin:3px 0}.vehicle-copy h3 a{color:var(--ink);text-decoration:none}.vehicle-copy p{margin:0;color:var(--muted);font-size:13px}.vehicle-copy strong{font-size:17px}.vehicle-copy small{color:var(--muted)}.listed{align-self:flex-start;background:var(--green2);color:#fff;padding:4px 6px;border-radius:4px;font-size:9px;font-weight:900}.detail-head{padding:45px 0 28px;border-bottom:1px solid var(--line)}.detail-head h1{font-size:clamp(30px,4vw,48px);margin:14px 0 8px}.detail-sub{color:var(--muted)}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;padding-top:28px}.gallery{background:var(--soft);border-radius:12px;overflow:hidden;min-height:480px}.gallery>img{display:block;width:100%;height:min(62vw,650px);object-fit:contain}.thumbs{display:flex;gap:10px;margin-top:10px}.thumbs button{width:90px;height:70px;border:1px solid var(--line);background:#fff;border-radius:6px;overflow:hidden;padding:0}.thumbs img{width:100%;height:100%;object-fit:cover}.side-card{border:1px solid var(--line);border-radius:10px;padding:22px;position:sticky;top:95px}.side-card small{font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:800}.price{font-size:31px;font-weight:900;margin:7px 0 18px}.side-card hr{border:0;border-top:1px solid var(--line);margin:20px 0}.side-card h2{font-size:20px}.verified{display:block;color:var(--green);font-size:12px;font-weight:800;margin:10px 0 18px}.wide{display:block;text-align:center}.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.facts div{background:var(--soft);border-radius:8px;padding:14px}.facts small,.facts strong{display:block}.facts small{color:var(--muted);margin-bottom:6px}.description{border-top:1px solid var(--line);padding:18px 0}.sell-fab{position:fixed;right:22px;bottom:20px;background:#a8ff00;color:#0b2417;text-decoration:none;padding:15px 22px;border:2px solid #0b4b2d;border-radius:28px;font-weight:900}.pager{margin-top:28px}.state-panel{grid-column:1/-1;padding:60px;text-align:center;background:var(--soft);border-radius:10px}@media(max-width:900px){nav{display:none}.nav-row{gap:12px}.auth{margin-left:auto}.vehicle-grid{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}.side-card{position:static}.facts{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.nan-shell{width:min(100% - 20px,var(--max))}.nan-header .button{display:none}.brand{font-size:18px}.hero{padding:45px 0}.searchbar{display:block;background:transparent;padding:0}.searchbar input,.searchbar button{width:100%;border-radius:7px}.searchbar input{margin-bottom:8px}.vehicle-grid{grid-template-columns:1fr}.gallery,.media-empty.large{min-height:280px}.gallery>img{height:75vw}.detail-head{padding:28px 0 18px}.facts{grid-template-columns:1fr 1fr}.sell-fab{font-size:12px;padding:12px 16px}}
/* Architecture 2.0 Phase 2 — Search & Discovery */
.discovery-hero{padding-bottom:38px}.discovery{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;align-items:start}.filter-panel{border:1px solid var(--line);border-radius:12px;padding:18px;background:#fff;position:sticky;top:92px}.filter-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:16px}.filter-head div{display:flex;flex-direction:column;gap:4px}.filter-head small{color:var(--muted)}.filter-head a,.filter-actions a{color:var(--green);font-size:12px;font-weight:800;text-decoration:none}.filter-grid{display:grid;gap:12px}.filter-grid label,.sort-form label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#405047}.filter-grid select,.filter-grid input,.sort-form select{width:100%;min-height:42px;border:1px solid #ccd8d1;border-radius:7px;background:#fff;padding:8px 10px;color:var(--ink);font:inherit}.check-filter{display:flex!important;grid-template-columns:20px 1fr!important;align-items:center}.check-filter input{width:18px!important;min-height:18px!important}.filter-actions{display:flex;align-items:center;gap:14px;margin-top:16px}.filter-actions .button{padding:11px 15px}.results-area{min-width:0}.results-toolbar{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:16px}.results-toolbar h2{margin:0 0 4px;font-size:26px}.results-toolbar p{margin:0;color:var(--muted);font-size:13px}.sort-form{min-width:190px}.filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.chip,.clear-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:18px;padding:7px 10px;color:#31423a;background:var(--soft);font-size:11px;font-weight:800;text-decoration:none}.chip span{font-size:15px}.clear-chip{color:var(--green);background:#fff}.results-grid{grid-template-columns:repeat(3,1fr)}.state-panel .button{display:inline-block;margin-top:10px}.pager nav{display:flex!important;margin:0;gap:8px;flex-wrap:wrap}.pager a,.pager span{display:inline-flex;min-width:38px;min-height:38px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:6px;padding:7px;text-decoration:none}.pager svg{width:18px}.pager p{color:var(--muted);font-size:12px}
@media(max-width:1000px){.discovery{grid-template-columns:1fr}.filter-panel{position:static}.filter-grid{grid-template-columns:repeat(3,1fr)}.results-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.filter-grid{grid-template-columns:repeat(2,1fr)}.results-grid{grid-template-columns:repeat(2,1fr)}.results-toolbar{align-items:stretch;flex-direction:column}.sort-form{width:100%}}
@media(max-width:560px){.discovery-hero{padding:30px 0}.discovery-hero h1{font-size:34px}.discovery{padding-top:20px;gap:20px}.filter-panel{padding:14px}.filter-grid{grid-template-columns:1fr 1fr;gap:9px}.filter-grid label{font-size:10px}.filter-grid select,.filter-grid input{min-height:44px}.check-filter{grid-column:1/-1}.results-grid{grid-template-columns:1fr}.filter-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.chip,.clear-chip{white-space:nowrap}.results-toolbar h2{font-size:22px}}

/* A2 Phase 3 — Dealers + Leads */
.discovery-bar{display:grid;grid-template-columns:minmax(220px,1fr) 220px auto auto;gap:12px;align-items:center;margin-bottom:24px}.discovery-bar input,.discovery-bar select,.contact-form input,.contact-form textarea{width:100%;border:1px solid #d8dee6;border-radius:10px;padding:12px;background:#fff;font:inherit}.dealer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dealer-card,.lead-card{border:1px solid #e4e8ee;border-radius:16px;background:#fff;padding:20px;display:flex;gap:18px;align-items:flex-start}.dealer-mark{width:52px;height:52px;border-radius:14px;background:#0b6b3a;color:#fff;display:grid;place-items:center;font-weight:800;font-size:22px;flex:0 0 auto}.dealer-mark.large{width:72px;height:72px;font-size:30px}.dealer-title h2{margin:0 0 6px}.dealer-title a{color:inherit;text-decoration:none}.dealer-meta{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin:10px 0 16px}.dealer-hero{padding:34px 0;background:#f5f8f6;border-bottom:1px solid #e5ebe7}.dealer-hero-row{display:flex;gap:18px;align-items:center;margin-top:18px}.dealer-layout{align-items:start}.contact-form{display:grid;gap:12px;margin-top:18px}.contact-form label{display:grid;gap:6px;font-size:13px;font-weight:700}.security-box{display:grid;gap:8px;background:#f6f8fa;border:1px solid #e2e7ec;border-radius:12px;padding:12px}.notice{padding:11px 12px;border-radius:10px;margin-top:12px}.notice.success{background:#eaf7ef}.notice.error{background:#fff0f0}.owner-note{display:block;margin-top:16px;font-weight:700}.lead-counts{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:20px}.lead-counts a{border:1px solid #e4e8ee;border-radius:12px;padding:14px;text-decoration:none;color:inherit;background:#fff}.lead-counts strong,.lead-counts span{display:block}.lead-counts strong{font-size:22px}.lead-list{display:grid;gap:12px}.lead-card{justify-content:space-between}.status-pill{display:inline-block;padding:5px 9px;border-radius:999px;background:#eef4f0;font-size:12px;font-weight:800}.empty-state{border:1px dashed #cfd8d3;border-radius:16px;padding:28px;text-align:center;grid-column:1/-1}@media(max-width:760px){.discovery-bar{grid-template-columns:1fr}.dealer-grid{grid-template-columns:1fr}.dealer-card{padding:16px}.dealer-hero-row{align-items:flex-start}.lead-counts{grid-template-columns:repeat(2,1fr)}.lead-card{display:block}.lead-card .button{margin-top:12px}}

/* Architecture 2.0 P3.5 — centralized mobile containment hardening
   Evidence: T6 390/430 visual gate. No business logic or markup changes. */
html,body{width:100%;max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%}
.nan-shell,.nav-row,.detail-head,.detail-grid,.dealer-grid,.dealer-card,.dealer-card>div,
.dealer-title,.dealer-hero-row,.dealer-hero-row>div,.vehicle-grid,.vehicle-card,.vehicle-copy,
.results-area,.side-card,.facts,.description,.lead-card,.lead-card>div,.contact-form{min-width:0}
h1,h2,h3,p,a,span,strong,small,label{overflow-wrap:anywhere}
.detail-head h1,.dealer-title h2,.dealer-hero h1{max-width:100%}
.discovery-bar>*{min-width:0}
.sell-fab{max-width:calc(100vw - 24px);white-space:nowrap;z-index:30}

@media(max-width:760px){
  .dealer-card{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px}
  .dealer-card .button{display:inline-block;max-width:100%;text-align:center}
  .dealer-hero-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px}
  .lead-card{max-width:100%}
}

@media(max-width:560px){
  .nan-shell{width:calc(100% - 20px);max-width:var(--max)}
  .detail-head h1{font-size:clamp(28px,8vw,36px);line-height:1.08}
  .detail-sub{max-width:100%}
  .facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .facts div{min-width:0}
  .side-card{width:100%;max-width:100%;padding:18px}
  .dealer-card{padding:14px}
  .dealer-mark{width:48px;height:48px}
  .dealer-title h2{font-size:22px;line-height:1.1}
  .dealer-meta{gap:8px 12px}
  .dealer-hero-row{grid-template-columns:56px minmax(0,1fr)}
  .dealer-mark.large{width:56px;height:56px;font-size:24px}
  .sell-fab{right:10px;bottom:10px;padding:11px 14px;font-size:11px}
  .contact-form input,.contact-form textarea,.discovery-bar input,.discovery-bar select{min-width:0;max-width:100%}
}

/* ============================================================
   NAN MOBILE HEADER V2
   Canonical marketplace mobile navigation authority
   ============================================================ */

.nan-mobile-menu{
    display:none;
}

@media (max-width:720px){

    .nan-header{
        position:sticky;
        top:0;
        z-index:2000;
        background:#fff;
        border-bottom:1px solid #e5ebe7;
        box-shadow:0 6px 24px rgba(12,48,34,.06);
    }

    .nan-header .nav-row{
        position:relative;
        min-height:68px;
        padding:9px 16px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
    }

    .nan-header .brand{
        min-width:0;
        flex:1 1 auto;
        margin:0;
        line-height:1;
    }

    .nan-header .brand strong{
        display:block;
        font-size:23px !important;
        line-height:1 !important;
        letter-spacing:-.7px;
        white-space:nowrap !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
    }

    .nan-header .brand small{
        display:block;
        margin-top:5px;
        max-width:225px;
        font-size:9px !important;
        line-height:1.15;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .nan-header .nav-row > nav{
        display:none !important;
    }

    .nan-mobile-menu{
        width:44px;
        height:44px;
        flex:0 0 44px;
        padding:0;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:5px;
        border:1px solid #d7e2dc;
        border-radius:13px;
        background:#fff;
        box-shadow:0 4px 14px rgba(10,48,32,.06);
        cursor:pointer;
    }

    .nan-mobile-menu span{
        display:block;
        width:19px;
        height:2px;
        border-radius:99px;
        background:#123d2d;
        transition:
            transform .18s ease,
            opacity .18s ease;
    }

    .nan-mobile-menu[aria-expanded="true"] span:nth-child(1){
        transform:translateY(7px) rotate(45deg);
    }

    .nan-mobile-menu[aria-expanded="true"] span:nth-child(2){
        opacity:0;
    }

    .nan-mobile-menu[aria-expanded="true"] span:nth-child(3){
        transform:translateY(-7px) rotate(-45deg);
    }

    .nan-header .auth{
        display:none !important;
        position:absolute;
        top:calc(100% + 8px);
        left:12px;
        right:12px;
        margin:0 !important;
        padding:10px;
        border:1px solid #dde7e2;
        border-radius:18px;
        background:#fff;
        box-shadow:0 22px 60px rgba(7,42,27,.16);
        z-index:2100;
    }

    .nan-header.is-mobile-open .auth{
        display:grid !important;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }

    .nan-header .auth > a{
        min-width:0;
        min-height:46px;
        display:flex !important;
        align-items:center;
        justify-content:center;
        padding:10px 8px !important;
        border:1px solid #e1e9e5;
        border-radius:12px;
        background:#f8faf9;
        color:#123d2d !important;
        font-size:12px !important;
        font-weight:800 !important;
        line-height:1.15 !important;
        text-align:center;
        text-decoration:none;
        white-space:normal !important;
    }

    .nan-header .auth > form{
        grid-column:1/-1;
        margin:0 !important;
    }

    .nan-header .auth > form button{
        width:100%;
        min-height:46px;
        border:0;
        border-radius:12px;
        font-size:12px;
        font-weight:800;
    }

    /*
     * Fixed launcher is excellent on desktop but obstructive
     * on phone-sized marketplace detail/storefront pages.
     */
    body > .sell-fab,
    .sell-fab[data-open-sell-list]{
        display:none !important;
    }
}

@media (max-width:390px){

    .nan-header .nav-row{
        padding-left:12px;
        padding-right:12px;
    }

    .nan-header .brand strong{
        font-size:21px !important;
    }

    .nan-header .brand small{
        max-width:205px;
        font-size:8px !important;
    }
}

/* /NAN MOBILE HEADER V2 */

/* NAN SHARED HEADER FIX1 — DESKTOP NAV WORD INTEGRITY */
@media (min-width:721px){
    .nan-header .nav-row > nav a,
    .nan-header .auth > a,
    .nan-header .auth > form button{
        white-space:nowrap !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
    }

    .nan-header .nav-row > nav,
    .nan-header .auth{
        min-width:0;
    }
}
/* /NAN SHARED HEADER FIX1 */

/* ==========================================================
   NAN SHARED HEADER FIX3
   DESKTOP — ONE STRAIGHT NAVIGATION LINE
   Mobile Header V2 remains authoritative at <=720px.
   ========================================================== */

@media (min-width:721px){

    .nan-header .nav-row{
        display:flex !important;
        align-items:center !important;
        flex-wrap:nowrap !important;
        min-height:74px;
        gap:24px;
    }

    .nan-header .brand{
        display:flex !important;
        flex-direction:column !important;
        justify-content:center !important;
        align-self:center !important;
        flex:0 0 auto;
        margin:0 !important;
    }

    .nan-header .nav-row > nav{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        flex-wrap:nowrap !important;
        gap:28px;
        margin:0 !important;
        padding:0 !important;
        align-self:center !important;
    }

    .nan-header .nav-row > nav > a{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        align-self:center !important;
        white-space:nowrap !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
        margin:0 !important;
        line-height:1.2 !important;
    }

    .nan-header .auth{
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        flex-wrap:nowrap !important;
        gap:14px;
        margin:0 0 0 auto !important;
        padding:0 !important;
        align-self:center !important;
    }

    .nan-header .auth > a,
    .nan-header .auth > form,
    .nan-header .auth > form > button{
        align-self:center !important;
        margin-top:0 !important;
        margin-bottom:0 !important;
        white-space:nowrap !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
    }

    .nan-header .auth > a{
        display:inline-flex !important;
        align-items:center !important;
        line-height:1.2 !important;
    }

    .nan-header .auth > form{
        display:flex !important;
        align-items:center !important;
    }

    .nan-header .auth > form > button{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    /* Desktop How It Works stays in the same navigation row. */
    .nan-header .nan-hiw-gateway{
        align-self:center !important;
        margin-top:0 !important;
        margin-bottom:0 !important;
    }

    /* Mobile-only duplicate remains physically absent on desktop. */
    .nan-header .nan-hiw-mobile-gateway{
        display:none !important;
    }
}

/* /NAN SHARED HEADER FIX3 */
