@font-face{font-family:Heebo;src:url('/assets/heebo-hebrew-wght-normal.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Heebo;src:url('/assets/heebo-latin-wght-normal.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
body{font-family:Heebo,Arial,sans-serif;color:#fcf3e4;background:radial-gradient(ellipse at 58% 0%,#3a2d26 0%,#242320 39%,#191b18 100%)}
button,input,select,textarea{font-family:inherit}
.market-hero{display:flex;align-items:center;min-height:260px;max-width:1140px;margin:8px auto 18px;border-radius:22px;border:1px solid #a08157;background:linear-gradient(270deg,#231b18 0%,#2b1e19ed 30%,#291c17a8 49%,#281c1600 73%),url('/assets/sell.webp') left 46%/cover no-repeat;box-shadow:0 15px 30px #140e0b7a;overflow:hidden}
.market-hero-copy{padding:24px clamp(23px,4vw,60px);max-width:66%}
.market-hero h1{font-size:clamp(34px,5vw,61px);line-height:1.08;margin:0 0 8px;letter-spacing:-.045em;color:#fff0d3}
.market-hero p{margin:0 0 15px;line-height:1.4;color:#ead8c1;font-size:clamp(14px,1.7vw,18px)}
.market-hero-actions{display:flex;gap:8px;flex-wrap:wrap}
.market-hero-actions a,.market-hero-actions button{display:inline-grid;place-items:center;min-height:42px;border-radius:9px;font-weight:750;padding:5px 16px;text-decoration:none}
.market-hero-actions a{border:1px solid #e1be80}
.market-hero-actions .quiet{background:#31271e;color:#fae1b1;border-color:#9e8154}
.market-heading h2{margin:0;font-size:clamp(25px,3vw,39px);line-height:1.15;letter-spacing:-.035em}
.location-filter{color:#ffe7b8;background:#3a3024;border-color:#a88756;white-space:nowrap}
.card{border-color:#78664d;background:#292722}
.card-copy{gap:4px}
.card-price{color:#f7d9a2}
.detail-footer:has(.offer-entry:not([hidden])){display:flex;gap:.6rem}
.detail-footer .detail-action,.detail-footer .offer-entry{flex:1}
.offer-entry,.thread-offer .quiet{color:#f9dfac;border-color:#a88a58;background:#352c24}
.offer-entry[hidden],.thread-offer[hidden]{display:none}
.offer-dialog{display:grid;gap:10px}
.offer-dialog p{margin:0}
.offer-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px}
.offer-form label{flex:1 1 130px;min-width:0;display:grid;gap:4px}
.offer-form input{min-height:44px;text-align:start;font-size:16px}
.offer-feedback{font-size:13px;color:#f5daa4;margin:0;flex-basis:100%}
.offer-feedback:empty{display:none}
.thread-offer{flex:none;margin:0 14px 8px;padding:9px 12px;background:#332b20;border:1px solid #8c714b;border-radius:12px;max-height:34dvh;overflow:auto}
.thread-offer-header{display:flex;justify-content:space-between;gap:8px;align-items:center}
.offer-price{font-weight:850;color:#ffdda5;font-size:1.25rem}
.offer-status{margin:2px 0 6px;color:#dfcaab;font-size:.86rem}
.offer-controls{display:flex;gap:6px;flex-wrap:wrap}
.offer-controls>button{min-height:40px;padding:5px 9px;font-size:.8rem}
.high-contrast .market-hero{background:#151515;border-color:#fff}
.high-contrast .card,.high-contrast .thread-offer{background:#111;border-color:#fff;color:#fff}
@media(max-width:720px){.market-hero{margin-inline:14px}}
@media(max-width:640px){
  .market-hero{min-height:175px;margin-block:5px 11px;border-radius:15px;background-size:cover;background-position:left 48%}
  .market-hero-copy{padding:12px;max-width:77%}
  .market-hero h1{font-size:clamp(26px,7vw,37px)}
  .market-hero p{max-width:210px;margin-bottom:8px}
  .market-hero-actions a,.market-hero-actions button{min-height:36px;padding-inline:9px;font-size:13px}
  .market-heading h2{font-size:26px}
  .market-tools .location-filter{max-width:110px;overflow:hidden;text-overflow:ellipsis}
}

.price-drop { display:grid; justify-items:start; gap:5px; order:-1; }
.price-drop-amounts { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 9px; }
.price-drop .detail-price { margin:0; }
.price-drop-previous { color:#ff9e99; font-weight:700; font-size:.9rem; text-decoration-thickness:1.5px; }
.price-drop-saving { display:inline-block; color:#e1efd4; background:#39462f; border:1px solid #69765b; border-radius:30px; padding:1px 8px; font-size:.73rem; font-weight:750; }
.price-drop-badge, .price-drop-label {
  background:#a11e32;
  color:#fff6f4;
  border:1px solid #f1747c;
  border-radius:20px;
  padding:3px 9px;
  font-size:.8rem;
  font-weight:800;
}
.price-drop-badge { position:absolute; inset-block-start:8px; inset-inline-start:8px; }
.owned-card .card-visual:has(.price-drop-badge) .own-listing-badge {
  inset-inline-start:auto;
  inset-inline-end:8px;
}
.large-text .price-drop :is(.price-drop-previous,.price-drop-saving,.price-drop-label), .large-text .price-drop-badge { font-size:1rem; }
.card-visual:has(.price-drop-badge) .photo-count { inset-block-start:auto; inset-block-end:8px; }
.price-update { display:grid; gap:12px; }
.price-update h3 { margin:0; }
.price-update form { display:grid; gap:9px; }
.price-update-current { display:flex; justify-content:space-between; gap:12px; background:#30302b; border:1px solid #74634f; padding:10px; border-radius:9px; margin:0; }
.price-update label { display:grid; gap:4px; }
.price-update input { border-color:#bca06c!important; }
.price-update-feedback { margin:0; color:#ffe5bb; }
.price-update-feedback:empty { display:none; }

.category-section {
  max-width: 1140px;
  margin: 0 auto 14px;
}
.category-heading, .category-window-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.category-heading { margin-bottom: 9px; }
.category-heading h2, .category-window-heading h2 {
  margin: 0;
  color: #ffe6bf;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  line-height: 1.14;
}
#open-categories {
  min-height: 44px;
  border-color: #a88765;
  background: #352c24;
  color: #ffe6bf;
}
.category-section .featured-categories {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}
.category-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  width: 100%;
  aspect-ratio: 1.85;
  padding: 0;
  overflow: hidden;
  border: 1px solid #a88765;
  border-radius: 13px;
  background: #362820;
  color: #fff4e5;
  text-align: start;
}
.category-tile img, .category-tile::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.category-tile img { object-fit: cover; }
.category-tile::after {
  content: '';
  background: linear-gradient(0deg, #120e0dee, #120e0d99 28%, transparent 62%);
}
.category-tile span {
  z-index: 1;
  padding: 8px 12px;
  font-size: clamp(.98rem, 1.8vw, 1.35rem);
  font-weight: 850;
  line-height: 1.12;
}
.category-tile[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #f7d6a3;
  border-color: #f7d6a3;
}
.category-tile[aria-pressed="true"]::after {
  box-shadow: inset 0 0 0 2px #f7d6a3;
}
.category-tile:focus-visible, #open-categories:focus-visible {
  outline: 2px solid #ffe3b8;
  outline-offset: -4px;
}
#category-window {
  width: min(940px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(12px, 2.4vw, 22px);
  overscroll-behavior: contain;
  background: #25201d;
  border: 1px solid #a88765;
  box-shadow: 0 28px 85px #080501bb;
}
#category-window::backdrop { background: #100d0bd9; backdrop-filter: blur(3px); }
.category-window-heading { align-items: start; margin-bottom: 15px; }
.category-window-heading p { margin: 4px 0 0; color: var(--muted); }
#close-categories { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.45rem; line-height: 1; }
.category-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.category-options .category-tile { aspect-ratio: 2.05; }
#show-all-listings { margin-top: 15px; min-height: 44px; }
.large-text .category-tile span { font-size: 1.2rem; }
.high-contrast .category-tile, .high-contrast #category-window, .high-contrast #open-categories {
  border-color: white;
}
.high-contrast .category-tile span { background: #111; color: white; }
@media (max-width: 1170px) { .category-section { margin-inline: 14px; } }
@media (max-width: 640px) {
  .category-section .featured-categories {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(142px, 43%, 235px);
    gap: 9px;
    padding-block-end: 5px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .featured-categories .category-tile { scroll-snap-align: start; }
  .category-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-tile span { padding: 6px 8px; }
}

/* The board scrolls in the space above the mobile navigation. */
@media(max-width:650px){

  .market-page{
    display:flex;flex-direction:column;block-size:100vh;block-size:100dvh;
    padding-block:env(safe-area-inset-top,0px) 0;overflow:hidden;
  }
  #market-scroll{flex:1 1 auto;min-block-size:0;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:8px}
  #market-scroll > main{inline-size:100%}
  .market-page>.bottom-nav{position:static;flex:0 0 auto;box-shadow:none;
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(92px,1.65fr) minmax(0,1fr) minmax(0,1fr);
    gap:3px;padding-block:5px calc(5px + env(safe-area-inset-bottom,0px));
    padding-inline:max(5px,env(safe-area-inset-right,0px)) max(5px,env(safe-area-inset-left,0px))}
  .market-page>.bottom-nav button,.market-page>.bottom-nav #browse{min-inline-size:0;min-block-size:44px;
    padding:4px 2px;font-size:clamp(.69rem,3.4vw,.9rem);line-height:1.2;white-space:normal}
  .market-page>.bottom-nav .accent{padding-inline:4px}
  .market-page.large-text>.bottom-nav button{font-size:clamp(.77rem,3.7vw,1rem)}
}
