/* KMM Trade site styles. Brand: navy #0C2554, blue #0084D4, gray #9BA2A8 */
:root{
  --navy:#0C2554; --blue:#0084D4; --link:#006DB3; --gray:#9BA2A8;
  --ink:#16223A; --body:#3A4658; --muted:#55606E; --line:#D9DFE6;
  --tint:#F3F6FA; --ph:#E6EBF1; --soft:#D5DEEC;
  --head:Montserrat,'Segoe UI',Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--ink);font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;font-size:16px;line-height:1.5}
img{max-width:100%}
a{color:inherit}
.wrap{max-width:1200px;margin:0 auto;padding-left:24px;padding-right:24px}
h1,h2{font-family:var(--head);font-weight:800;color:var(--navy);margin:0}
h1{font-size:clamp(32px,4.4vw,56px);line-height:1.08;letter-spacing:-.01em;text-wrap:balance}
h2{font-size:clamp(26px,2.6vw,34px);line-height:1.2}
h3{margin:0;font-size:19px;font-weight:700;color:var(--navy)}
p{margin:0}
.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;z-index:99;background:#fff;padding:8px 12px}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

/* top strip + header */
.strip{background:var(--navy);color:#fff;font-size:14px}
.strip .wrap{padding-top:8px;padding-bottom:8px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 24px}
.strip a{color:#fff;text-decoration:none;font-weight:600}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.site-header .wrap{padding-top:10px;padding-bottom:10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 28px}
.brand img{display:block;height:56px;width:auto}
.nav{display:flex;flex-wrap:wrap;align-items:center;gap:0 22px;font-weight:600}
.nav a{display:inline-flex;align-items:center;min-height:44px;color:var(--navy);text-decoration:none;border-bottom:3px solid transparent}
.nav a[aria-current="page"]{border-bottom-color:var(--blue)}
.head-actions{display:flex;gap:10px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:8px;font-size:16px;font-weight:600;text-decoration:none;border:2px solid var(--navy);background:#fff;color:var(--navy);cursor:pointer;font-family:inherit}
.btn:hover{border-color:var(--blue);color:var(--blue)}
.btn.sm{min-height:44px;padding:0 16px;font-size:15px}
.btn.solid{background:var(--navy);color:#fff}
.btn.solid:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.btn.big{min-height:54px;font-size:17px;width:100%}
.on-navy .btn{background:#fff;color:var(--navy);border-color:#fff}
.on-navy .btn.ghost{background:var(--navy);color:#fff}
.on-navy .btn:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.btns{display:flex;flex-wrap:wrap;gap:12px}
.ico{width:16px;height:16px;flex:none}

/* sections */
.band{padding:64px 0}
.band.tint{background:var(--tint)}
.band.navy,.on-navy{background:var(--navy);color:#fff}
.band.navy h2{color:#fff}
.stack{display:flex;flex-direction:column;gap:24px}
.eyebrow{font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--link)}
.lede{font-size:18px;color:var(--body);max-width:56ch}
.page-head{background:var(--tint);border-bottom:1px solid var(--line);padding:44px 0 40px}
.page-head .wrap{display:flex;flex-direction:column;gap:12px}
.page-head h1{font-size:clamp(32px,3.6vw,46px);line-height:1.1}
.row-between{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px}
.more{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--link);font-weight:600;text-decoration:none}

/* hero */
.hero{background:var(--tint)}
.hero .wrap{padding-top:56px;padding-bottom:64px;display:flex;flex-wrap:wrap;align-items:center;gap:40px 56px}
.hero .copy{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:20px}
.hero .media{flex:1 1 420px;min-width:0}
.hero-photo{aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--navy);display:flex;align-items:center;justify-content:center;text-decoration:none}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.hero-photo.logo{background:#fff;border:1px solid var(--line)}
.hero-photo.logo img{object-fit:contain;padding:12%}

/* categories */
.cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:16px}
.cat{display:flex;flex-direction:column;gap:8px;padding:20px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;text-decoration:none}
.cat strong{font-family:var(--head);font-weight:700;font-size:18px;line-height:1.25;color:var(--navy)}
.cat span{font-size:14px;color:var(--muted)}
.cat.main{background:var(--navy);border-color:var(--navy)}
.cat.main strong{color:#fff}.cat.main span{color:var(--soft)}
.cat:hover{border-color:var(--blue)}

/* cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));gap:24px}
.card{display:flex;flex-direction:column;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;overflow:hidden;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.card:hover{border-color:var(--blue);box-shadow:0 4px 18px rgba(12,37,84,.08)}
.card .pic{position:relative;aspect-ratio:4/3;background:var(--ph);display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px}
.card .pic img{width:100%;height:100%;object-fit:cover;display:block}
.card .info{padding:16px;display:flex;flex-direction:column;gap:6px}
.tag{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--link)}
.card .title{font-size:17px;font-weight:600;line-height:1.3;color:var(--navy)}
.price{font-family:var(--head);font-weight:800;font-size:20px;color:var(--navy)}
.meta{font-size:14px;color:var(--muted)}
.sold-badge{position:absolute;top:12px;left:12px;padding:4px 10px;background:var(--ink);color:#fff;border-radius:6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.card.sold .price{color:var(--muted)}
.card.sold img{filter:grayscale(.6);opacity:.8}
.empty{padding:32px;border:1px dashed var(--gray);border-radius:12px;background:var(--tint);color:var(--body)}
.empty strong{display:block;color:var(--navy);font-size:18px;margin-bottom:6px}
.loading{color:var(--muted)}

/* filter chips */
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;background:#fff;color:var(--navy);border:1px solid var(--gray);border-radius:999px;font-size:15px;font-weight:600;cursor:pointer;font-family:inherit}
.chip[aria-pressed="true"]{background:var(--navy);color:#fff;border-color:var(--navy)}

/* steps */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:32px}
.step{display:flex;flex-direction:column;gap:10px}
.step p{color:var(--body)}
.num{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:2px solid var(--blue);border-radius:50%;font-family:var(--head);font-weight:800;color:var(--navy)}

/* call to action band */
.cta .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 48px}
.cta .copy{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:10px}
.cta p{font-size:17px;color:var(--soft);max-width:60ch}

/* listing detail */
.crumbs{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted);margin-bottom:24px}
.crumbs a{color:var(--link);text-decoration:none;font-weight:600}
.detail{display:flex;flex-wrap:wrap;gap:40px 48px;align-items:flex-start}
.gallery{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:12px}
.main-pic{aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:var(--ph);display:flex;align-items:center;justify-content:center;color:var(--muted)}
.main-pic img{width:100%;height:100%;object-fit:contain;background:#111}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:10px}
.thumbs button{padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;aspect-ratio:4/3;background:var(--ph);cursor:pointer}
.thumbs button[aria-current="true"]{border-color:var(--blue)}
.thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.facts{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:18px}
.facts h1{font-size:clamp(28px,3vw,38px);line-height:1.15}
.price-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.price-row .price{font-size:32px}
.status{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:#E3F3EA;color:#1E6B3D;font-size:14px;font-weight:700}
.status::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.status.sold{background:#ECEFF3;color:var(--muted)}
.contact-box{display:flex;flex-direction:column;gap:10px;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--tint)}
.contact-box p{font-size:14px;color:var(--muted)}
dl.specs{margin:0;display:grid;grid-template-columns:auto 1fr;border-top:1px solid var(--line)}
dl.specs dt,dl.specs dd{margin:0;padding:10px 0;border-bottom:1px solid var(--line)}
dl.specs dt{color:var(--muted);padding-right:24px}
dl.specs dd{font-weight:600;color:var(--ink)}
.desc{margin-top:40px;max-width:75ch;display:flex;flex-direction:column;gap:12px}
.desc p{color:var(--body);white-space:pre-line}

/* about + contact */
.two{display:flex;flex-wrap:wrap;gap:40px 56px;align-items:flex-start}
.two > *{flex:1 1 420px;min-width:0}
.prose{display:flex;flex-direction:column;gap:16px;font-size:17px;color:var(--body)}
.cards3{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:24px}
.box{padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.box .big{font-family:var(--head);font-weight:800;font-size:22px;color:var(--navy)}
.box p{color:var(--body)}
.box .round{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--tint);color:var(--navy)}
.box.tinted{background:var(--tint)}

/* ebay strip */
.ebay{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff}
.ebay p{color:var(--body)}

/* footer */
.site-footer{background:var(--tint);border-top:1px solid var(--line)}
.site-footer .wrap{padding-top:44px;padding-bottom:28px;display:flex;flex-direction:column;gap:28px}
.foot-cols{display:flex;flex-wrap:wrap;justify-content:space-between;gap:28px 64px}
.foot-brand{flex:1 1 260px;max-width:380px;display:flex;flex-direction:column;gap:12px}
.foot-brand img{height:60px;width:auto;align-self:flex-start}
.foot-brand p{font-size:15px;color:var(--muted)}
.foot-col{display:flex;flex-direction:column;gap:4px}
.foot-col .label{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.foot-col a{display:inline-flex;align-items:center;min-height:36px;color:var(--navy);font-weight:500;text-decoration:none}
.copyright{padding-top:16px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}

/* phone bottom bar */
.phonebar{display:none}
@media (max-width:760px){
  .wrap{padding-left:18px;padding-right:18px}
  .strip .hide-sm{display:none}
  .site-header .wrap{gap:4px 16px}
  .brand img{height:44px}
  .head-actions{display:none}
  .nav{gap:0 16px;font-size:15px;width:100%;justify-content:space-between}
  .band{padding:44px 0}
  .hero .wrap{padding-top:32px;padding-bottom:40px}
  .grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .card .info{padding:10px 12px 12px;gap:3px}
  .card .title{font-size:15px}
  .price{font-size:17px}
  .tag{font-size:11px}
  .meta{font-size:13px}
  body{padding-bottom:72px}
  .phonebar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--navy);padding:8px 10px calc(8px + env(safe-area-inset-bottom));gap:8px}
  .phonebar a,.phonebar button{flex:1;font:inherit;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:8px;color:#fff;text-decoration:none;font-weight:700;font-size:16px;border:1px solid rgba(255,255,255,.35)}
  .phonebar .primary{background:var(--blue);border-color:var(--blue)}
}
@media (max-width:380px){.grid{grid-template-columns:1fr}}
@media (max-width:760px){.cats{grid-template-columns:repeat(2,1fr);gap:10px}.cat{padding:14px}.cat strong{font-size:16px}.cat.main{grid-column:1/-1}}
.announce{background:var(--blue);color:#fff;font-weight:600;font-size:15px;text-align:center}
.announce .wrap{padding-top:8px;padding-bottom:8px}
.grid > .empty{grid-column:1/-1}
.status.pending{background:#FFF4D6;color:#8A5A00}

/* buyer chat */
html.chat-open{overflow:hidden}
.chat{position:fixed;inset:0;z-index:60;background:rgba(12,37,84,.45);display:flex;align-items:flex-end;justify-content:flex-end;padding:16px}
.chat[hidden]{display:none}
.chat-sheet{width:min(420px,100%);height:min(620px,calc(100vh - 32px));background:#fff;border-radius:16px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:var(--navy);color:#fff}
.chat-head strong{display:block;font-size:17px}
.chat-head span{display:block;font-size:13px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:300px}
.chat-x{width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:#fff;font-size:30px;line-height:1;cursor:pointer}
.chat-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--tint)}
.chat-note{font-size:14px;color:var(--muted);text-align:center;margin:0 8px 6px}
.bubble{max-width:80%;padding:10px 14px;border-radius:18px;display:flex;flex-direction:column;gap:4px}
.bubble p{margin:0;white-space:pre-wrap;word-wrap:break-word;font-size:15px;line-height:1.4}
.bubble time{font-size:11px;opacity:.75}
.bubble.me{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:6px}
.bubble.them{align-self:flex-start;background:#fff;color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:6px}
.chat-form{padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px;background:#fff}
.chat-who{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.chat-who[hidden]{display:none}
.chat-form input,.chat-form textarea{font:inherit;font-size:16px;border:1px solid var(--gray);border-radius:12px;padding:10px 12px;width:100%;color:var(--ink);background:#fff}
.chat-form .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.chat-send{display:flex;gap:8px;align-items:flex-end}
.chat-send textarea{resize:none;min-height:44px;max-height:140px;border-radius:22px}
.chat-go{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.chat-go svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-go:disabled{opacity:.5}
.chat-err{margin:0;color:#B42318;font-size:14px;font-weight:600}
.chat-err:empty{display:none}
@media (max-width:760px){.chat{padding:0;align-items:stretch}.chat-sheet{width:100%;height:100%;border-radius:0}.chat-head{padding-top:calc(14px + env(safe-area-inset-top))}.chat-who{grid-template-columns:1fr}}
button.btn{font-family:inherit}
.strip-msg,.foot-msg,.linkish{background:none;border:0;padding:0;font:inherit;cursor:pointer;color:inherit;font-weight:600;text-decoration:underline}
.strip-msg{color:#fff}
.foot-msg{display:inline-flex;align-items:center;min-height:36px;color:var(--navy);font-weight:500;text-decoration:none}
.empty .linkish{color:var(--link)}
.banner{background:var(--navy)}
.banner img{display:block;width:100%;max-width:1400px;height:auto;margin:0 auto}

/* swipeable listing photos */
.main-pic{position:relative}
.slides{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;background:#111}
.slides::-webkit-scrollbar{display:none}
.slides img{flex:0 0 100%;width:100%;height:100%;object-fit:contain;scroll-snap-align:center;scroll-snap-stop:always;display:block}
.nav-btn{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:var(--navy);font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.25);padding-bottom:4px}
.nav-btn.prev{left:12px}.nav-btn.next{right:12px}
.nav-btn:disabled{opacity:0;pointer-events:none}
.count{position:absolute;right:12px;bottom:12px;background:rgba(0,0,0,.6);color:#fff;font-size:13px;font-weight:600;padding:3px 10px;border-radius:999px}
@media (hover:none){.nav-btn{display:none}}

.sitesearch{display:flex;align-items:center;gap:8px;margin-top:20px;max-width:520px;background:#fff;border:1px solid var(--gray);border-radius:12px;padding:6px 6px 6px 14px}
.sitesearch.wide{max-width:none;margin-top:0}
.sitesearch svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--muted,#5b6575);stroke-width:2;stroke-linecap:round}
.sitesearch input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:16px;min-height:40px;background:transparent;color:inherit}
.sitesearch .btn{min-height:40px;padding:0 16px}
.sitesearch:focus-within{border-color:var(--navy);box-shadow:0 0 0 3px rgba(20,40,80,.12)}
