/* Beanville Market (mk1, G 1 Nov 2026): Market tab, Sell panel, For sale / Artist yard signs. Uses Beanville's own
   tokens (--surface, --text, --edge, --sign …) so Light, Dark and Dood follow automatically. Every button and card sets
   its own text colour: beanville.css has ".bm-page button { color: inherit }". */

/* ── yard signs ── */
.bm-page .mk-yard { display: inline-grid; justify-items: center; text-decoration: none; line-height: 1.1; color: var(--text); }
.bm-page .mk-yard .mk-board { display: grid; justify-items: center; gap: 1px; padding: 3px 7px 4px; border: 2px solid var(--edge); border-radius: 6px; background: #FFF6E6; color: #2B1B14; box-shadow: 0 2px 0 var(--edge); min-width: 54px; max-width: 120px; }
.bm-page .mk-yard .mk-board b { font: 400 11px/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: #C8322F; }
.bm-page .mk-yard .mk-px { font: 700 11px/1.15 var(--f-mono); color: #2B1B14; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 106px; }
.bm-page .mk-yard small { font: 600 10px var(--f-body); color: #6B5446; }
.bm-page .mk-yard .mk-stake { display: block; width: 4px; height: 12px; background: #6B4A2E; border: 1px solid var(--edge); border-top: 0; }
.bm-page .mk-yard.mk-artist .mk-board { background: #E4DBF7; }
.bm-page .mk-yard.mk-artist .mk-board b { color: #4A2A99; }
.bm-page a.mk-yard:hover .mk-board, .bm-page a.mk-yard:focus-visible .mk-board { transform: translateY(-2px); }
.bm-page[data-theme="dood"] .mk-yard .mk-board { background: #0B2A1F; color: #EFFFF8; border-color: #00E28D; box-shadow: 0 0 10px rgba(0,255,160,.35); }
.bm-page[data-theme="dood"] .mk-yard .mk-board b { color: #FFD166; }
.bm-page[data-theme="dood"] .mk-yard .mk-px { color: #EFFFF8; }
.bm-page[data-theme="dood"] .mk-yard.mk-artist .mk-board { background: #1B1430; }

/* on a Streets house: in the front yard, bottom left of the scene */
.bm-page .bv-house .scene { position: relative; }
.bm-page .bv-house .mk-signs { position: absolute; left: -4%; bottom: -2%; z-index: 2; display: flex; gap: 2px; align-items: end; pointer-events: none; }
.bm-page .bv-house .mk-yard .mk-board { min-width: 0; padding: 2px 4px 3px; }
.bm-page .bv-house .mk-yard .mk-board b { font-size: 9px; }
.bm-page .bv-house .mk-yard .mk-px { font-size: 9px; max-width: 64px; }
.bm-page .bv-house .mk-yard .mk-stake { height: 8px; }
.bm-page .mk-streetkey { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0; }
.bm-page .mk-streetkey .mk-yard { pointer-events: none; }

/* on the house page: in the yard, between the house and the Main Bean */
.bm-page .hm-scene .mk-yardrow { position: absolute; left: 44%; bottom: 3%; z-index: 5; display: flex; gap: 8px; align-items: end; }
.bm-page .hm-scene .mk-yard .mk-board { padding: 4px 10px 6px; }
.bm-page .hm-scene .mk-yard .mk-board b { font-size: clamp(11px, 1.8vw, 15px); }
.bm-page .hm-scene .mk-yard .mk-px { font-size: clamp(10px, 1.6vw, 14px); max-width: 140px; }
.bm-page .hm-scene .mk-yard .mk-stake { height: clamp(10px, 3vw, 26px); width: 5px; }
@media (max-width: 560px) { .bm-page .hm-scene .mk-yardrow { left: auto; right: 2%; bottom: auto; top: 17%; } }

/* ── For sale card on a house page ── */
.bm-page .mk-forsale { display: grid; gap: 10px; }
.bm-page .mk-forsale-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bm-page .mk-forsale-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); }
.bm-page .mk-forsale-list img { width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--edge); object-fit: cover; background: #fff; }
.bm-page .mk-forsale-list b { display: block; }
.bm-page .mk-forsale-list .mk-price { font: 700 15px var(--f-mono); color: var(--text); }

/* ── Sell panel ── */
.bm-page .mk-sell { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 3px solid var(--edge); border-radius: var(--r-md); background: var(--surface-2); color: var(--text); }
.bm-page .mk-sell h3 { margin: 0; font: 400 20px/1.1 var(--f-display); color: var(--text); }
.bm-page .mk-sell-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.bm-page .mk-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--sign); color: var(--sign-ink); font: 700 13px var(--f-body); }
.bm-page .mk-form { display: grid; gap: 10px; }
.bm-page .mk-form label { display: grid; gap: 4px; font-weight: 700; color: var(--text); }
.bm-page .mk-form input[type="number"] { width: 100%; max-width: 260px; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--edge); background: var(--surface); color: var(--text); font: 600 16px var(--f-body); }
.bm-page .mk-cur { display: flex; flex-wrap: wrap; gap: 6px 16px; border: 0; padding: 0; margin: 0; }
.bm-page .mk-cur legend { font-weight: 700; padding: 0; margin-bottom: 4px; color: var(--text); }
.bm-page .mk-cur label, .bm-page .mk-ok { display: inline-flex !important; gap: 6px; align-items: center; font-weight: 600; }
.bm-page .mk-terms { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text); font-size: 14px; }
.bm-page .mk-doodline { margin: 0; }

/* ── Market tab ── */
.bm-page .mk-filters { display: grid; gap: 12px; }
.bm-page .mk-frow { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.bm-page .mk-frow label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text); min-width: 0; }
.bm-page .mk-frow select, .bm-page .mk-frow input { padding: 8px 10px; border-radius: 10px; border: 2px solid var(--edge); background: var(--surface); color: var(--text); font: 600 14px var(--f-body); max-width: 100%; }
.bm-page .mk-frow input[type="number"] { width: 110px; }
.bm-page .mk-frow .mk-grow { flex: 1 1 180px; }
.bm-page .mk-frow .mk-grow select { width: 100%; }
.bm-page .mk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bm-page .mk-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 6px 4px 10px; border-radius: 999px; border: 2px solid var(--edge); background: var(--butter-soft); color: var(--text); font: 600 13px var(--f-body); }
.bm-page .mk-chip button { border: 0; background: var(--surface); color: var(--text); border-radius: 999px; width: 22px; height: 22px; line-height: 1; cursor: pointer; font-weight: 800; }
.bm-page .mk-fams { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-page .mk-fams button { padding: 5px 12px; border-radius: 999px; border: 2px solid var(--famC, var(--edge)); background: var(--surface); color: var(--text); font: 700 13px var(--f-body); cursor: pointer; }
.bm-page .mk-fams button[aria-pressed="true"] { background: var(--famBg, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--famC, var(--edge)); }
.bm-page .mk-count { margin: 0; color: var(--muted); font-weight: 600; }
.bm-page .mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.bm-page .mk-card { display: grid; grid-template-rows: auto 1fr auto; border: 3px solid var(--edge); border-radius: var(--r-md); background: var(--surface); color: var(--text); overflow: hidden; box-shadow: 0 4px 0 var(--edge); }
.bm-page .mk-card.spot { box-shadow: 0 0 0 4px var(--accent), 0 4px 0 var(--edge); }
.bm-page .mk-card .mk-pic { display: block; aspect-ratio: 1; background: var(--surface-2); }
.bm-page .mk-card .mk-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-page .mk-card .mk-body { display: grid; gap: 4px; padding: 10px 10px 6px; align-content: start; color: var(--text); }
.bm-page .mk-card .mk-num { font: 700 12px var(--f-mono); color: var(--muted); }
.bm-page .mk-card .mk-name { font-weight: 800; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.bm-page .mk-card .mk-price { font: 700 16px var(--f-mono); color: var(--text); }
.bm-page .mk-card .mk-est { font-size: 12px; color: var(--muted); }
.bm-page .mk-card .mk-where { font-size: 12px; color: var(--muted); }
.bm-page .mk-card .fam { justify-self: start; }
.bm-page .mk-card .mk-foot { padding: 0 10px 10px; display: grid; gap: 6px; }
.bm-page .mk-card .mk-foot .btn { width: 100%; justify-content: center; }
.bm-page .mk-card [data-mk-cardmsg] .bm-note { margin: 0; font-size: 13px; }
.bm-page .mk-empty { text-align: center; padding: 26px 12px; color: var(--text); }
.bm-page .mk-empty b { display: block; font: 400 22px var(--f-display); margin-bottom: 6px; color: var(--text); }
.bm-page .mk-more { justify-self: center; }
.bm-page .mk-fees { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 440px) {
  .bm-page .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bm-page .mk-card .mk-price { font-size: 14px; }
  .bm-page .mk-frow input[type="number"] { width: 92px; }
}

/* the Artist sign toggle (Passport; listed artists only) */
.bm-page .mk-artist-toggle { display: grid; gap: 4px; margin-top: 12px; padding: 12px 14px; border: 2px dashed var(--edge); border-radius: var(--r-md); background: var(--surface); color: var(--text); }
.bm-page .mk-artist-toggle label { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--text); }
.bm-page .mk-artist-toggle p { margin: 0; }
.bm-page .mk-signform { margin-top: 6px; }
.bm-page .mk-signform input:not([type]) , .bm-page .mk-signform #artistName, .bm-page .mk-signform #artistLine { width: 100%; max-width: 320px; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--edge); background: var(--surface-2); color: var(--text); font: 600 15px var(--f-body); }
.bm-page .mk-xrow { display: inline-flex; align-items: center; gap: 4px; max-width: 320px; color: var(--muted); font-weight: 600; }
.bm-page .mk-xrow input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 2px solid var(--edge); background: var(--surface-2); color: var(--text); font: 600 15px var(--f-body); }
.bm-page .mk-artist-line { display: block; margin-top: 6px; font-style: italic; color: var(--text); }
.bm-page .mk-artist-links { display: block; margin-top: 6px; }
