/* KARYAB MASHIN • Demand Marketplace UI rc.26
 * Theme-owned presentation only. Core owns queries, security and motion state.
 * Scoped to Demand components to avoid mutating Rental/Sale CPT cards. */
:root{--kbm-demand-ink:#0c2a3d;--kbm-demand-yellow:#ffca27;--kbm-demand-line:#d8e3ec;--kbm-demand-muted:#577080}
.kbm-demand-market-page{--kbm-demand-ink:#0c2a3d;width:min(100% - 28px,1400px);max-inline-size:1400px;margin-inline:auto;padding:clamp(14px,2.1vw,28px) 0 38px;font-family:Estedad,Tahoma,sans-serif;direction:rtl}
.kbm-demand-market-page :where(h1,h2,h3,p){margin-block-start:0}
.kbm-demand-market-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:clamp(10px,2vw,25px) 5px}
.kbm-demand-market-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:.76rem;font-weight:800;color:#b48300}
.kbm-demand-market-eyebrow:before{content:"";height:21px;width:4px;border-radius:4px;background:var(--kbm-demand-yellow)}
.kbm-demand-market-hero h1{margin:5px 0 7px;font-size:clamp(1.6rem,3.3vw,2.4rem);line-height:1.45;font-weight:900;color:var(--kbm-demand-ink)}
.kbm-demand-market-hero p{margin:0;color:#617586;font-size:clamp(.8rem,1.4vw,.93rem)}
.kbm-demand-market-quicklinks{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:9px}
.kbm-demand-market-quicklinks a{min-height:42px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid var(--kbm-demand-line);border-radius:11px;padding:8px 14px;color:var(--kbm-demand-ink);background:#f1f6f7;font-weight:800;font-size:.83rem;white-space:nowrap}
.kbm-demand-market-quicklinks .kbm-demand-quick-dashboard{background:#12354d;color:#fff;border-color:#12354d}
.kbm-demand-market-quicklinks .kbm-demand-quick-submit{background:var(--kbm-demand-yellow);border-color:#dcb327}
.kbm-demand-market-quicklinks a:hover{filter:brightness(.96)}
.kbm-demand-market-quicklinks a:focus-visible{outline:3px solid #275f9c;outline-offset:2px}
.kbm-demand-market{min-width:0;max-width:100%;border:1px solid var(--kbm-demand-line);border-radius:18px;margin:0 0 19px;background:linear-gradient(125deg,#fffdf6 0%,#f5f9fd 100%);box-shadow:0 8px 26px #0d30460d;padding:clamp(13px,1.7vw,23px);font-family:Estedad,Tahoma,sans-serif}
.kbm-demand-market header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px;margin:0 0 10px}
.kbm-demand-market header h2{font-weight:900;color:var(--kbm-demand-ink);font-size:clamp(1.08rem,1.9vw,1.65rem);line-height:1.5;margin:0}
.kbm-demand-market header h2:before{content:"";display:inline-block;vertical-align:-.2em;width:4px;height:1.2em;border-radius:6px;background:var(--kbm-demand-yellow);margin-inline-end:9px}
.kbm-demand-market header>div{display:flex;flex-wrap:wrap;gap:8px}
.kbm-demand-market header>div>a{display:inline-flex;align-items:center;justify-content:center;min-height:41px;border:1px solid #e0b431;border-radius:10px;padding:6px 14px;background:#ffdc60;color:#12354d;font-weight:800;font-size:.82rem;text-decoration:none}
.kbm-demand-market header>div>a:last-child:not(:first-child){background:#143b55;border-color:#143b55;color:#fff}
.kbm-demand-market .kbm-demand-market-cards{gap:12px}
.kbm-demand-market-page .kbm-demand-market:not(.is-strip) .kbm-demand-market-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-block:17px}
.kbm-demand-market-card{min-width:0;overflow:hidden;border-radius:14px;border:1px solid #dce5ec;border-inline-start:3px solid #f5bd24;background:#fff;box-shadow:0 4px 15px #0b30440b;transition:box-shadow .18s,border-color .18s,transform .18s}
.kbm-demand-market-card:is(:hover,:focus-within){border-color:#f0c349;box-shadow:0 9px 25px #0b304423;transform:translateY(-2px)}
.kbm-demand-market-card>a,.kbm-demand-market-card>a:link{display:flex;align-items:stretch;gap:12px;padding:12px;direction:rtl;min-width:0;height:100%;color:var(--kbm-demand-ink);text-decoration:none;box-sizing:border-box}
.kbm-demand-market-card .kbm-demand-machine-sample{flex:0 0 93px;width:93px;align-content:start;gap:4px;place-items:center;margin:0}
.kbm-demand-market-card .kbm-demand-machine-sample img{width:93px;height:85px;object-fit:cover;border-radius:12px;display:block;background:#edf3f6}
.kbm-demand-market-card .kbm-demand-machine-sample small{font-size:.59rem;color:#718294;text-align:center;line-height:1.35}
.kbm-demand-machine-sample--empty{display:grid;place-items:center;width:93px;height:90px;border-radius:12px;color:#56809a;background:linear-gradient(135deg,#edf5f7,#dde9ee)}
.kbm-demand-machine-sample--empty svg{width:42px;height:42px}
.kbm-demand-market-card .kbm-demand-machine-card-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;flex:1}
.kbm-demand-market-card .kbm-demand-card-type{color:#62788a;font-size:.7rem;font-weight:600;line-height:1.5}
.kbm-demand-market-card strong{font-weight:900;font-size:clamp(.86rem,1.3vw,1.08rem);line-height:1.5;color:#0c2a3d;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%}
.kbm-demand-market-card .kbm-demand-card-details{font-size:.7rem;color:#587185;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
.kbm-demand-market-card .kbm-demand-card-meta{color:#304f62;font-size:.75rem;line-height:1.6;max-width:100%}
.kbm-demand-market-card .kbm-demand-card-meta small{font-size:.69rem;color:#82909d}
.kbm-demand-market-card .kbm-demand-card-contact{display:flex;justify-content:center;align-items:center;gap:7px;align-self:stretch;text-align:center;min-height:30px;margin-block-start:5px;padding:5px 7px;border-radius:9px;background:#fff3c5;color:#183b4a;font-size:.67rem;font-weight:800;line-height:1.5}
.kbm-demand-market-card .kbm-demand-card-contact svg{width:15px;height:15px;flex:none}
.kbm-demand-market-card.kbm-demand-urgency-urgent .kbm-demand-card-meta{color:#ae7700;font-weight:800}
.kbm-demand-market-page .kbm-demand-machine-filters{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(275px,1.8fr) auto;gap:11px;margin-block:12px 5px;align-items:end;width:100%}
.kbm-demand-market-page .kbm-demand-machine-filters :is(input,select){font:500 .88rem/1.5 Estedad,Tahoma,sans-serif;min-height:45px;height:45px;border:1px solid #cbd8e1;border-radius:10px;padding-inline:12px;box-shadow:0 2px 6px #0b304408;background:white;color:#173548;box-sizing:border-box}
.kbm-demand-market-page .kbm-demand-machine-filters>label{font-size:.8rem;color:#0c2a3d;font-weight:800;gap:7px}
.kbm-demand-market-page .kbm-demand-machine-filters>.kbm-demand-machine-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:11px;min-width:0}
.kbm-demand-market-page .kbm-demand-machine-filters>.kbm-demand-machine-picker>label{font-size:.8rem;color:#0c2a3d;font-weight:800;gap:7px}
.kbm-demand-market-page .kbm-demand-machine-filters>.kbm-demand-machine-picker select{max-width:100%;min-width:0}
.kbm-demand-filter-actions{display:flex;align-items:center;gap:9px}
.kbm-demand-market-page .kbm-demand-filter-actions .kbm-demand-search-submit{height:45px;border:1px solid #e5b128;background:#ffcf3d;color:#0c2a3d;padding:7px 16px;white-space:nowrap;font-weight:850}
.kbm-demand-market-page .kbm-demand-filter-actions .kbm-demand-clear{white-space:nowrap;text-decoration:none;font-size:.78rem;font-weight:700;color:#325366;border:1px solid #cbd8e1;padding:10px 13px;min-height:45px;box-sizing:border-box;border-radius:10px;background:#fff;display:inline-flex;align-items:center;justify-content:center}
.kbm-demand-market [data-demand-feedback]:empty{display:none}
.kbm-demand-market .kbm-demand-market-empty{padding:11px 16px;border-radius:11px;background:#fff;color:#607587;font-size:.85rem}
.kbm-demand-market.is-strip{position:relative;overflow:hidden;padding:clamp(12px,1.7vw,20px);background:linear-gradient(124deg,#fffdf5,#f3f9fd);border-color:#dce5ea}
.kbm-demand-market.is-strip .kbm-demand-market-cards{position:relative;max-width:100%;margin:8px 0;padding:8px 0}
.kbm-demand-market.is-strip[data-demand-enhanced] .kbm-demand-market-cards{mask-image:linear-gradient(90deg,transparent 0%,#000 4%,#000 96%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 4%,#000 96%,transparent 100%)}
.kbm-demand-market.is-strip .kbm-demand-market-track{align-items:stretch}
.kbm-demand-market.is-strip .kbm-demand-market-set{gap:12px;padding-right:12px}
.kbm-demand-market.is-strip .kbm-demand-market-set .kbm-demand-market-card{width:clamp(17rem,26vw,21rem);max-width:85vw;min-height:142px;box-sizing:border-box}
.kbm-demand-market.is-strip .kbm-demand-market-card>a{min-height:136px}
.kbm-demand-market.is-strip .kbm-demand-market-card .kbm-demand-machine-sample{flex-basis:92px}
.kbm-demand-market.is-strip .kbm-demand-market-controls{display:flex;align-items:center;gap:8px;justify-content:flex-start;min-height:37px}
.kbm-demand-market.is-strip .kbm-demand-market-controls[hidden]{display:none!important}
.kbm-demand-market.is-strip .kbm-demand-market-controls button{min-width:37px;height:37px;padding:4px 10px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #c6d4dd;background:#fff;color:#0b3044;line-height:1.3;font-size:.75rem;font-weight:700;box-shadow:0 2px 8px #123c5112}
.kbm-demand-market.is-strip .kbm-demand-market-controls button span{font-family:Arial,sans-serif;font-size:2rem;line-height:.5}
.kbm-demand-market.is-strip .kbm-demand-market-controls button:disabled{opacity:.35;cursor:default}
.kbm-demand-market.is-strip .kbm-demand-market-controls button[data-demand-next]{background:#ffcb33;border-color:#ddb226}
.kbm-demand-market.is-strip .kbm-demand-market-controls button[data-demand-pause]{padding-inline:14px}
.kbm-demand-market.is-strip .kbm-demand-market-controls button[aria-pressed="true"]{background:#10334a;color:#fff;border-color:#10334a}
.kbm-demand-market.is-strip :where(button,a):focus-visible{outline:3px solid #225e9c;outline-offset:2px}
.kbm-demand-market-page .kbm-demand-image-credit{margin-block-start:12px;font-size:.72rem;color:#81909b;text-align:left}
/* Archive shells: keep the demands directly above filters, independent from card templates. */
:is(.kbm-ads-recode,.kbm-drivers-recode-archive,.kbm-ps76,.kbm-c112-archive,.kbm-c118-archive)>.kbm-demand-market.is-strip{width:100%;max-width:100%;margin:clamp(.65rem,1.4vw,1.1rem) 0;padding:clamp(.65rem,1.1vw,1rem)}
@media(max-width:1100px){
 .kbm-demand-market-page .kbm-demand-machine-filters{grid-template-columns:1fr 1.5fr;align-items:end}
 .kbm-demand-filter-actions{grid-column:1/-1;justify-content:flex-start}
 .kbm-demand-market-page .kbm-demand-market:not(.is-strip) .kbm-demand-market-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
 .kbm-demand-market-page{width:calc(100% - 20px);padding:12px 0 24px}
 .kbm-demand-market-hero{display:grid;gap:10px;padding:10px 3px}
 .kbm-demand-market-hero h1{font-size:1.35rem;margin:4px 0}
 .kbm-demand-market-quicklinks{display:flex;gap:7px}
 .kbm-demand-market-quicklinks a{min-height:39px;padding:6px 10px;font-size:.75rem}
 .kbm-demand-market{padding:12px 9px;border-radius:14px;margin-bottom:12px}
 .kbm-demand-market header h2{font-size:1.02rem}
 .kbm-demand-market header>div>a{min-height:35px;padding:4px 10px;font-size:.74rem}
 .kbm-demand-market-page .kbm-demand-machine-filters{grid-template-columns:1fr;gap:9px;margin-block:10px 2px}
 .kbm-demand-market-page .kbm-demand-machine-filters>.kbm-demand-machine-picker{grid-template-columns:1fr 1fr;gap:7px}
 .kbm-demand-filter-actions{grid-column:auto;display:grid;grid-template-columns:1fr 1fr;gap:7px}
 .kbm-demand-market-page .kbm-demand-market:not(.is-strip) .kbm-demand-market-cards{grid-template-columns:1fr;gap:9px}
 .kbm-demand-market.is-strip .kbm-demand-market-set .kbm-demand-market-card{width:clamp(16rem,80vw,19rem);min-height:122px}
 .kbm-demand-market.is-strip .kbm-demand-market-card>a{min-height:116px}
 .kbm-demand-market-card>a{padding:10px;gap:9px}
 .kbm-demand-market-card .kbm-demand-machine-sample{flex-basis:78px;width:78px}
 .kbm-demand-market-card .kbm-demand-machine-sample img{width:78px;height:75px}
 .kbm-demand-market-card .kbm-demand-card-details{font-size:.69rem}
 .kbm-demand-market-card .kbm-demand-card-contact{font-size:.67rem}
 .kbm-demand-market.is-strip .kbm-demand-market-controls{justify-content:center}
}
@media(prefers-reduced-motion:reduce){.kbm-demand-market-card{transition:none!important;transform:none!important}}

/* KBM Theme rc.28: make the demand-card exit fully visible across the rail.
   Core JS computes enough repeating sets for every viewport width. */
.kbm-demand-market.is-strip[data-demand-enhanced] .kbm-demand-market-cards{
  mask-image:none!important;-webkit-mask-image:none!important;
  overflow:hidden!important;max-inline-size:100%;
}
.kbm-demand-market.is-strip[data-demand-enhanced] .kbm-demand-market-set{flex-shrink:0}

/* Full demand directory only. Compact archive shelves retain their styling. */
.kbm-demand-market-page > .kbm-demand-market-hero {
  padding:clamp(16px,3vw,36px); background:#071a33; border-inline-start:5px solid #ffcc00;
  color:#fff; border-radius:18px; margin-block-end:15px;
}
.kbm-demand-market-page > .kbm-demand-market-hero h1 {color:#fff}
.kbm-demand-market-page > .kbm-demand-market-hero p {color:#dbe7f3}
.kbm-demand-market-page .kbm-demand-machine-filters :is(button,a,input,select) {min-height:44px}

.kbm-demand-market-page .kbm-demand-market-card {
  border-color:var(--kbm-color-line,#e2e8f0);
  border-radius:var(--kbm-radius-card,16px);
}
.kbm-demand-market-page .kbm-demand-market-card:focus-within {
  outline:var(--kbm-focus-width,3px) solid var(--kbm-color-focus,#1859b8);
  outline-offset:2px;
}
