/* WOODYARAQ_APPROVED_DESIGN_V3
   Scoped overlay: replaces old inline marketplace appearance without touching
   storefront, dashboard, authentication, SQL or production data.
*/
body.offcut-market-page {
 --ky-forest:#813d1b;--ky-forest-deep:#2f1b12;--ky-ink:#261a14;
 --ky-muted:#796c63;--ky-line:#e9dfd5;--ky-lime:#f6d4b2;
 --green:#813d1b;--muted:#796c63;--line:#e9dfd5;
 background:#fffdfa!important;color:#261a14;
 font-family:Vazirmatn,Tahoma,Arial,sans-serif;
}
body.offcut-market-page .market-site-header{
 width:100%;max-width:1280px;box-sizing:border-box;min-height:64px;
 padding:9px 20px;background:#fffdfa;border-bottom:1px solid #eee6df;
 box-shadow:none;position:relative;top:auto;
}
.offcut-market-page .market-site-header .brand strong{color:#703214;font-size:23px}
.offcut-market-page .market-site-header .ky-mark{width:44px;height:44px}
.offcut-market-page .market-site-header .brand small{font-size:10px;color:#8a7161}
.offcut-market-page .ky-nav{gap:15px;font-size:11px}
.offcut-market-page .ky-nav a[aria-current="page"]{border-bottom-color:#90421b}
.offcut-market-page .market-header-favorites{border:0;box-shadow:none;background:transparent;font-size:18px}
.offcut-market-page .market-header-favorites b{background:#a1391a;color:#fff}
.offcut-market-page .market-menu-toggle{background:transparent;border:0}
.offcut-market-page .offcut-main{max-width:1280px;padding:0 18px 36px;margin:auto}
.offcut-market-page .ky-hero.market-hero-compact{
 min-height:180px!important;height:180px!important;max-height:180px!important;
 margin:14px 0 14px!important;border-radius:18px!important;overflow:hidden;
 background:#2a170f;isolation:isolate;
}
.offcut-market-page .ky-hero.market-hero-compact .ky-hero-photo{
 display:block;width:100%;height:100%;object-fit:cover!important;
 object-position:center 55%!important;
}
.offcut-market-page .ky-hero.market-hero-compact::before{
 background:linear-gradient(270deg,rgba(25,14,9,.95) 0%,rgba(31,17,11,.83) 35%,rgba(30,18,10,.1) 90%)!important;
}
.offcut-market-page .ky-hero.market-hero-compact .ky-hero-copy{
 width:min(540px,62%);box-sizing:border-box;
 padding:18px 28px!important;align-self:center;
}
.offcut-market-page .ky-hero.market-hero-compact .eyebrow{display:none}
.offcut-market-page .ky-hero.market-hero-compact h1{
 margin:0 0 5px;color:#fff;font-size:clamp(21px,2.5vw,31px);line-height:1.48;font-weight:900;
}
.offcut-market-page .ky-hero.market-hero-compact p{font-size:13px;line-height:1.65;margin:0;color:#f1e9e3}
.offcut-market-page .market-quick-search{
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 gap:10px;align-items:center;margin:0 0 12px;
}
.offcut-market-page .market-quick-search input{
 grid-column:1!important;width:100%;height:50px;min-height:50px;
 margin:0;padding:11px 16px!important;border:1px solid #e6ddd5;
 background:#fff;border-radius:15px!important;box-shadow:0 4px 13px #34201508;font-size:13px;
}
.offcut-market-page .market-quick-submit{display:none!important}
.offcut-market-page .market-filter-open{
 grid-column:2!important;min-height:50px;margin:0;padding:8px 18px;
 background:#873d19!important;color:#fff!important;border:1px solid #873d19;
 border-radius:14px;font-size:13px;font-weight:850;
}
.offcut-market-page .market-location-strip{
 border:0!important;margin:0 0 10px!important;padding:4px 10px!important;
 background:#faf3eb!important;color:#86512f!important;display:flex;align-items:center;
 border-radius:11px!important;box-shadow:none!important;min-height:30px;
}
.offcut-market-page .market-location-strip p{font-size:11px!important;margin:0;flex:1}
.offcut-market-page .market-location-strip button{
 padding:4px 6px!important;min-height:28px!important;border-radius:8px!important;
 background:transparent!important;color:#813d1b!important;font-size:10px!important;
}
.offcut-market-page .market-categories{margin:10px 0 17px!important;scroll-margin-top:85px}
.offcut-market-page .market-inline-heading{margin:0 0 6px}
.offcut-market-page .market-inline-heading h2{font-size:15px}
.offcut-market-page .market-category-row{
 display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;
}
.offcut-market-page .market-category-tile{
 padding:5px 5px 9px;background:#fff;border:1px solid #eee4dc;border-radius:13px;
 box-shadow:0 4px 12px #39221108;min-width:0;
}
.offcut-market-page .market-category-tile img{
 height:72px;width:100%;object-fit:cover!important;object-position:center!important;
 border-radius:11px;mix-blend-mode:normal;
}
.offcut-market-page .market-category-tile span{font-size:11px;font-weight:800}
.offcut-market-page .market-category-tile.is-active{border-color:#995537;box-shadow:0 0 0 1px #99553744}
.offcut-market-page .market-shortcuts{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px;
}
.offcut-market-page .market-shortcut{
 min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:7px;padding:12px 8px;background:#f8f5f1;border:1px solid #f2e9e1;
 border-radius:17px;box-shadow:none;text-align:center;
}
.offcut-market-page .market-shortcut>span{
 background:none;border-radius:0;color:#853e1b;height:auto;width:auto;
 flex:none;font-size:29px;line-height:1;
}
.offcut-market-page .market-shortcut strong{font-size:12px;color:#271b15}
.offcut-market-page .market-featured-section[hidden]{display:none!important}
.offcut-market-page .market-featured-section{
 margin:0 0 26px;border:0;background:none;padding:0;
}
.offcut-market-page .market-section-head,.offcut-market-page .market-listing-heading{
 display:flex;flex-direction:row;align-items:center;justify-content:space-between;
 margin:0 0 12px;gap:12px;
}
.offcut-market-page .market-section-head h2,.offcut-market-page .market-listing-heading h2{
 margin:0;font-size:20px;font-weight:900;color:#2a190f;
}
.offcut-market-page .offcut-listings{
 border:none!important;box-shadow:none!important;border-radius:0!important;
 background:transparent!important;margin:0;padding:0!important;
 scroll-margin-top:94px;
}
.offcut-market-page .market-listing-heading .eyebrow,.offcut-market-page .market-listing-heading p{display:none}
.offcut-market-page .market-listing-heading-actions button{background:#fcf4ed;border:1px solid #eadad0;color:#813d1b;border-radius:9px}
.offcut-market-page #market-status{margin:3px 0 10px;color:#72665d;font-size:11px}
.offcut-market-page .market-active-view-label{margin:0 0 6px;color:#7e3b1b}
.offcut-market-page .offcut-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.offcut-market-page .offcut-card{
 display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:17px;
 border:1px solid #ede2d9;background:#fff;box-shadow:0 5px 20px #3921100b;
}
.offcut-market-page .offcut-card-image{height:170px;object-fit:cover;width:100%;background:#f1e8e0}
.offcut-market-page .offcut-card-favorite{top:9px;left:9px;right:auto;width:35px;height:35px;background:#28181155}
.offcut-market-page .offcut-card-body{padding:11px 12px 13px;gap:5px;align-items:stretch;flex:1}
.offcut-market-page .offcut-tag{align-self:flex-start;padding:3px 9px;background:#f6ebdf;color:#7a361b;font-size:10px}
.offcut-market-page .offcut-tag-buy{background:#e6f2ed;color:#146a48}
.offcut-market-page .offcut-card h3{font-size:14px!important;color:#291b12;line-height:1.55}
.offcut-market-page .offcut-meta{color:#87796d;font-size:11px;line-height:1.65}
.offcut-market-page .offcut-price{color:#008446;font-size:15px;line-height:1.55}
.offcut-market-page .offcut-card-description{font-size:10px;line-height:1.65;min-height:16px}
.offcut-market-page .offcut-card-open{background:#863c19;border-color:#863c19;border-radius:9px;min-height:35px;margin-top:auto}
.offcut-market-page .offcut-contact{font-size:10px;color:#8a4c29}
.offcut-market-page .market-filter-dialog{
 border-radius:22px;background:#fffdfa;border:1px solid #e8ddd3;
 max-height:92dvh;box-shadow:0 18px 60px #27150750;
}
.offcut-market-page .market-filter-dialog::backdrop,.offcut-market-page .market-post-dialog::backdrop{
 background:rgba(18,12,7,.62);backdrop-filter:blur(4px);
}
.offcut-market-page .market-filter-header .eyebrow{color:#934821;font-size:13px;font-weight:850}
.offcut-market-page .market-filter-header h2{font-size:20px}
.offcut-market-page .market-filter-header p{font-size:11px}
.offcut-market-page .market-search-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.offcut-market-page .market-search-fields label{font-size:11px;color:#593623}
.offcut-market-page .market-search-fields input,.offcut-market-page .market-search-fields select{
 min-height:44px;border:1px solid #e3d9d1;border-radius:11px;background:#fff;
}
.offcut-market-page .market-search-actions button{font-weight:850}
.offcut-market-page .market-search-actions .primary-link{background:#813b18;border-color:#813b18}
.offcut-market-page .market-post-dialog{
 width:min(760px,calc(100vw - 24px));max-width:760px;max-height:calc(100dvh - 28px);
 overflow-y:auto;padding:0;border:1px solid #ebdfd4;border-radius:23px;
 box-shadow:0 22px 70px #200f0640;background:#fffdfa;color:#281a12;
}
.offcut-market-page .market-post-head{
 display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:4;
 background:#fffdfa;padding:13px 20px;border-bottom:1px solid #e9e0d8;
 color:#3b2518;font-weight:900;font-size:15px;
}
.offcut-market-page .market-post-head button{
 border:1px solid #eaded5;border-radius:10px;width:34px;height:34px;
 font-size:23px;line-height:1;background:#fff;color:#82391a;cursor:pointer;
}
.offcut-market-page .market-post-dialog .offcut-post{
 margin:0!important;border:0!important;border-radius:0!important;padding:16px 22px 22px!important;
 background:#fffdfa;
}
.offcut-market-page .market-post-dialog .offcut-post .section-heading h2{font-size:22px;color:#2c1c13}
.offcut-market-page .market-post-dialog .ky-value-path{margin:12px 0 18px}
.offcut-market-page .market-post-profile-note{
 border:1px solid #efd9c3;background:#fff4e8;border-radius:12px;padding:10px 14px;
 font-size:11px;line-height:1.9;color:#744522;margin:10px 0 18px;
}
.offcut-market-page .market-post-internal-location{display:none!important}
.offcut-market-page .market-post-dialog .field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.offcut-market-page .market-post-dialog .market-post-transaction{grid-column:1/-1}
.offcut-market-page .market-post-dialog .market-post-transaction select{
 background:#fff5eb;border-color:#d0aa8f;font-weight:850;color:#783411;
}
.offcut-market-page .market-post-dialog :is(input,select,textarea){border-radius:9px}
.offcut-market-page #submit-listing{margin-top:12px;min-height:46px;background:#813b18;border-color:#813b18}
.offcut-market-page .offcut-education,.offcut-market-page .ky-benefits{margin-top:22px}
.offcut-market-page .offcut-education{padding:16px 20px;background:#faf6f1;border:1px solid #eee3d9}
.offcut-market-page .feedback-panel{background:#fffdfa;border-color:#e8ddd4}
.offcut-market-page .ky-footer{background:#29180e}
.offcut-market-page .market-bottom-nav{
 width:min(780px,calc(100vw - 28px));padding:9px 10px;background:#fffdfbf5;
 border:1px solid #f0e5dd;box-shadow:0 12px 35px #2f1c0f18;z-index:50;
}
.offcut-market-page .market-bottom-nav .market-bottom-post>span{background:#8d411f}
.offcut-market-page .account-dialog{border-color:#e9dcd1;border-radius:21px}
.offcut-market-page .account-dialog-header{background:#fbf4ed}
.offcut-market-page .account-primary{background:#873d1a!important;color:#fff}
@media(max-width:1020px){
 .offcut-market-page .offcut-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .offcut-market-page .market-category-row{grid-template-columns:repeat(4,minmax(0,1fr))}
 .offcut-market-page .market-site-header{min-height:70px}
}
@media(max-width:650px){
 body.offcut-market-page{padding-bottom:90px}
 .offcut-market-page .market-site-header{
  position:sticky;top:0;z-index:40;min-height:64px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:7px 12px;
 }
 .offcut-market-page .market-site-header .brand strong{font-size:19px}
 .offcut-market-page .market-site-header .ky-mark{width:34px;height:34px}
 .offcut-market-page .market-header-actions{display:flex;grid-column:2;gap:1px}
 .offcut-market-page .market-header-favorites{height:37px;width:36px;min-height:37px;padding:3px}
 .offcut-market-page .market-menu-toggle{display:inline-flex!important;padding:6px 8px;height:37px;min-height:37px}
 .offcut-market-page .market-account-entry{padding:5px 8px;min-height:36px;font-size:10px;border-radius:10px}
 .offcut-market-page .ky-nav{display:none}
 .offcut-market-page .ky-nav.is-open{display:flex;grid-column:1/-1;grid-row:2}
 .offcut-market-page .offcut-main{padding:0 11px 22px}
 .offcut-market-page .ky-hero.market-hero-compact{
  min-height:132px!important;height:132px!important;max-height:132px!important;
  margin:10px 0 10px!important;border-radius:15px!important;
 }
 .offcut-market-page .ky-hero.market-hero-compact .ky-hero-copy{width:77%;padding:13px 14px!important}
 .offcut-market-page .ky-hero.market-hero-compact h1{font-size:18px;line-height:1.5;margin-bottom:4px}
 .offcut-market-page .ky-hero.market-hero-compact p{font-size:10px;line-height:1.5}
 .offcut-market-page .market-quick-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-bottom:7px}
 .offcut-market-page .market-quick-search input{grid-column:1!important;height:44px;min-height:44px;padding:8px 10px!important;font-size:11px}
 .offcut-market-page .market-filter-open{grid-column:2!important;padding:7px 10px;min-height:44px;font-size:11px}
 .offcut-market-page .market-location-strip{margin-bottom:8px!important;min-height:28px;padding:2px 7px!important}
 .offcut-market-page .market-location-strip p{font-size:9px!important}
 .offcut-market-page .market-location-strip button{font-size:9px!important;max-width:115px}
 .offcut-market-page .market-categories{margin:6px 0 12px!important}
 .offcut-market-page .market-inline-heading{display:none}
 .offcut-market-page .market-category-row{display:flex;overflow-x:auto;gap:7px;padding:3px 2px 8px;scroll-snap-type:x mandatory}
 .offcut-market-page .market-category-tile{flex:0 0 75px;min-width:75px;padding:4px 4px 7px;scroll-snap-align:start}
 .offcut-market-page .market-category-tile img{height:57px;object-fit:cover}
 .offcut-market-page .market-category-tile span{font-size:10px}
 .offcut-market-page .market-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:18px}
 .offcut-market-page .market-shortcut{min-height:74px;padding:7px 3px;border-radius:13px;gap:4px}
 .offcut-market-page .market-shortcut>span{font-size:23px}
 .offcut-market-page .market-shortcut strong{font-size:9px;line-height:1.55}
 .offcut-market-page .market-section-head h2,.offcut-market-page .market-listing-heading h2{font-size:17px}
 .offcut-market-page .offcut-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .offcut-market-page .offcut-card{border-radius:13px}
 .offcut-market-page .offcut-card-image{height:117px}
 .offcut-market-page .offcut-card-body{padding:8px 9px 10px;gap:5px}
 .offcut-market-page .offcut-card h3{font-size:11px!important}
 .offcut-market-page .offcut-meta{font-size:9px;line-height:1.6}
 .offcut-market-page .offcut-price{font-size:12px}
 .offcut-market-page .offcut-card-open{min-height:32px;font-size:10px}
 .offcut-market-page .offcut-card-description{display:none}
 .offcut-market-page .market-search-panel{padding:17px 12px}
 .offcut-market-page .market-filter-dialog{width:calc(100vw - 14px);max-height:calc(100dvh - 18px);border-radius:17px}
 .offcut-market-page .market-search-fields{grid-template-columns:1fr;gap:10px}
 .offcut-market-page .market-search-actions{grid-template-columns:1fr 1fr;gap:7px}
 .offcut-market-page .market-search-actions button{font-size:10px;min-height:44px;padding:8px}
 .offcut-market-page .market-post-dialog{width:calc(100vw - 14px);max-height:calc(100dvh - 18px);border-radius:17px}
 .offcut-market-page .market-post-dialog .offcut-post{padding:13px 12px!important}
 .offcut-market-page .market-post-dialog .field-grid{grid-template-columns:1fr;gap:11px}
 .offcut-market-page .market-post-dialog .market-post-transaction{grid-column:auto}
 .offcut-market-page .market-post-head{padding:10px 14px}
 .offcut-market-page .market-bottom-nav{width:calc(100vw - 8px);bottom:max(3px,env(safe-area-inset-bottom));min-height:66px;border-radius:19px;padding:5px}
 .offcut-market-page .market-bottom-nav button small{font-size:9px}
 .offcut-market-page .market-bottom-nav .market-bottom-post>span{width:52px;height:52px}
}
@media(prefers-reduced-motion:reduce){.offcut-market-page .offcut-card{transition:none}}

/* Accessible 4-stage ad posting, preserving existing form fields and RPC. */
.offcut-market-page .market-post-dialog .ky-value-path{display:none}
.offcut-market-page .market-post-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-bottom:17px}
.offcut-market-page .market-post-step-indicator{padding:8px 4px;font-size:10px;color:#7b6e64;text-align:center;border-radius:8px;background:#f5f2ee;line-height:1.5}
.offcut-market-page .market-post-step-indicator.is-current{background:#853c19;color:#fff;font-weight:850}
.offcut-market-page .market-post-step-indicator.is-complete{background:#e7f3ea;color:#276743}
.offcut-market-page .field-grid>div[data-post-step][hidden]{display:none!important}
.offcut-market-page .market-post-review{background:#fff8f1;border:1px solid #e9dbce;border-radius:13px;padding:14px 17px;margin:10px 0}
.offcut-market-page .market-post-review[hidden]{display:none!important}
.offcut-market-page .market-post-review h3{margin:0 0 10px;font-size:16px}
.offcut-market-page .market-post-review p{padding:7px 2px;border-bottom:1px solid #eee0d1;color:#624532;font-size:12px;margin:0}
.offcut-market-page .market-post-wizard-actions{display:flex;gap:10px;margin:16px 0 2px}
.offcut-market-page .market-post-wizard-actions button{flex:1;min-height:43px;padding:9px 15px;border-radius:10px;cursor:pointer;font:inherit;font-size:12px;font-weight:850;border:1px solid #cebbaa;color:#824019;background:#fff}
.offcut-market-page .market-post-wizard-actions #market-post-wizard-next{background:#843c1b;color:#fff;border-color:#843c1b}
.offcut-market-page .market-post-wizard-actions button[hidden],.offcut-market-page #submit-listing[hidden]{display:none!important}
@media(max-width:650px){.offcut-market-page .market-post-step-indicator{font-size:9px;padding:7px 2px}}

/* Prevent a full-size ad form reappearing under the listing feed when the modal is closed. */
body.offcut-market-page #market-post-dialog:not([open]){display:none!important}
body.offcut-market-page #market-post-dialog[open]{display:block}

/* Desktop and mobile share same product identity, but use responsive grids. */
.market-v4-account-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.market-v4-account-actions select{max-width:155px;min-height:38px;border:1px solid #dfcdbb;border-radius:8px;background:#fff}
@media(min-width:1000px){.offcut-market-page .market-bottom-nav{max-width:640px}}
