/* =============================================================================
   SELL-FURNITURE-R1 / C2 / C3 - SELL BODY AND STICKY CTA A
   Sell-furniture acquisition surfaces only (national / state / city).

   Enqueued by templates/landing-page.php on Sell furniture pages only, after
   landing-page.css (handle dependency 'ash-landing-page'), so no other landing
   page loads it. Every rule is scoped behind `.ash-lp--sell-furniture`, the
   Sell sticky's own `.ash-sticky-cta--sell`, or `html.ash-sf-sticky-on` (set
   only by the Sell sticky script).

   C2 aligns the body with the approved Sell furniture design at the same
   widths. Colours come from the shared tokens only: where the design uses a
   shade between two tokens, it is a color-mix() of those tokens, named once
   below. Radii are token values or simple multiples of them. The listing
   cards are feed B's markup (HomepageCards helpers); their rules are repeated
   here, scoped to `.ash-sf`, because homepage.css is not loaded on landing
   pages. landing-page.css is not edited; the few landing rules the design
   changes (breadcrumb current item, starter spacing and cue, phone starter
   width, sticky button) are overridden here under the Sell scope.
   ============================================================================= */

.ash-lp--sell-furniture {
  --ash-sf-rule:       color-mix(in srgb, var(--ash-sand) 85%, var(--ash-stone));
  --ash-sf-kicker:     color-mix(in srgb, var(--ash-forest) 66%, var(--ash-silver));
  --ash-sf-quiet:      color-mix(in srgb, var(--ash-forest) 47%, var(--ash-stone));
  --ash-sf-sort:       color-mix(in srgb, var(--ash-forest) 58%, var(--ash-stone));
  --ash-sf-link:       color-mix(in srgb, var(--ash-forest) 90%, var(--ash-success));
  --ash-sf-link-bold:  color-mix(in srgb, var(--ash-forest) 95%, var(--chart-3));
  --ash-sf-mark:       color-mix(in srgb, var(--ash-ring) 72%, var(--foreground));
  --ash-sf-number:     color-mix(in srgb, var(--chart-1) 78%, var(--ash-near-black));
  --ash-sf-action:     color-mix(in srgb, var(--chart-1) 84%, var(--ash-near-black));
  --ash-sf-outline:    color-mix(in srgb, var(--ash-forest) 65%, var(--chart-3));
  --ash-sf-thumb-edge: color-mix(in srgb, var(--input) 88%, var(--chart-3));
  --ash-sf-boost-line: color-mix(in srgb, var(--ash-forest) 22%, var(--ash-sage));
  --ash-sf-empty-bg:   color-mix(in srgb, var(--ash-sage) 90%, var(--ash-ivory));
  --ash-sf-buyer-bg:   color-mix(in srgb, var(--ash-ring) 7%, var(--ash-parchment));
  --ash-sf-buyer-line: color-mix(in srgb, var(--ash-amber) 17%, var(--ash-parchment));
  --ash-sf-buyer-note: color-mix(in srgb, var(--ash-amber) 31%, var(--ash-olive));
  --ash-sf-bar-bg:     color-mix(in srgb, var(--ash-ivory) 93%, transparent);
  --ash-sf-bar-line:   color-mix(in srgb, var(--ash-ivory) 53%, var(--ash-silver));
  --ash-sf-panel-r:    calc(var(--radius) * 2);
}

/* -- Breadcrumb, category starter (landing rules adjusted for Sell) --------- */

.ash-lp--sell-furniture .ash-lp-breadcrumbs__item [aria-current="page"] {
  color: var(--ash-olive);
  font-weight: 400;
}

.ash-lp--sell-furniture .ash-sell-instrument__categories-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* The cue keeps its SVG (the starter partial is shared and unchanged); it
   takes the button's text colour and the size of a text chevron. */
.ash-lp--sell-furniture .ash-sell-instrument__category-cue {
  width: 14px;
  height: 14px;
  margin-right: -3px;
  stroke: currentColor;
}

/* -- Body shell -------------------------------------------------------------- */

.ash-lp--sell-furniture .ash-sf {
  --ash-hp-heading: var(--ash-forest);
  --ash-hp-mark:    var(--ash-ring);
  --ash-hp-muted:   var(--ash-sf-quiet);
  color: var(--lp-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}

.ash-lp--sell-furniture .ash-sf__wrap {
  box-sizing: border-box;
  max-width: 1100px;
  padding: 0 clamp(20px, 4vw, 48px) 26px;
}

.ash-lp--sell-furniture .ash-sf p {
  margin: 0 0 12px;
}

.ash-lp--sell-furniture .ash-sf-section {
  padding: clamp(27px, 4.2vw, 54px) 0;
  border-top: 1px solid var(--ash-sf-rule);
}

.ash-lp--sell-furniture .ash-sf .ash-sf-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  color: var(--ash-sf-kicker);
}

/* Section headings follow the approved design's headline setting (Poppins
   600, -0.03em, line-height 1.2), which the Sell design specifies. */
.ash-lp--sell-furniture .ash-sf-h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.7vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ash-forest);
}

.ash-lp--sell-furniture .ash-sf-lede {
  max-width: 38ch;
}

/* Plain links: regular weight, underline in the link colour. */
.ash-lp--sell-furniture .ash-sf a {
  color: var(--ash-sf-link);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
}

/* Action and guide links: semibold with the terracotta underline. */
.ash-lp--sell-furniture .ash-sf .ash-sf-textlink,
.ash-lp--sell-furniture .ash-sf .ash-sf-linklist a,
.ash-lp--sell-furniture .ash-sf .ash-sf-endlinks a {
  color: var(--ash-sf-link-bold);
  font-weight: 600;
  text-decoration-color: var(--ash-sf-mark);
}

.ash-lp--sell-furniture .ash-sf .ash-sf-textlink--plain {
  color: var(--ash-sf-link);
  font-weight: 400;
  text-decoration-color: currentColor;
}

.ash-lp--sell-furniture .ash-sf a:hover {
  text-decoration-thickness: 2px;
}

.ash-lp--sell-furniture .ash-sf a:focus-visible,
.ash-lp--sell-furniture .ash-sf button:focus-visible,
.ash-lp--sell-furniture .ash-sf summary:focus-visible {
  outline: 3px solid var(--ash-focus-ring);
  outline-offset: 3px;
}

/* Buttons in the body: the design's 44px outlined button. */
.ash-lp--sell-furniture .ash-sf .ash-sf-btn,
.ash-lp--sell-furniture .ash-sf .ash-sf-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid var(--ash-sf-outline);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ash-sf-link);
  font: 600 0.95rem var(--font-heading);
  text-decoration: none;
  cursor: pointer;
}

.ash-lp--sell-furniture .ash-sf .ash-sf-btn:hover,
.ash-lp--sell-furniture .ash-sf .ash-sf-more:hover {
  filter: brightness(0.94);
}

/* -- Inventory ------------------------------------------------------------- */

.ash-lp--sell-furniture .ash-sf-inv__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ash-lp--sell-furniture .ash-sf-inv__head .ash-sf-h2 {
  margin: 0;
}

.ash-lp--sell-furniture .ash-sf .ash-sf-inv__sort {
  margin: 0;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--ash-sf-sort);
}

.ash-lp--sell-furniture .ash-sf-empty {
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--ash-sf-panel-r);
  background: var(--ash-sf-empty-bg);
}

/* C3: the exact scoped total opens the empty panel ("0 pieces"), in the
   sort line's type, above the unchanged empty-panel copy. */
.ash-lp--sell-furniture .ash-sf .ash-sf-empty__count {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--ash-sf-sort);
}

.ash-lp--sell-furniture .ash-sf .ash-sf-empty__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: normal;
  color: var(--ash-forest);
}

.ash-lp--sell-furniture .ash-sf .ash-sf-context {
  margin: 14px 0;
  color: var(--ash-sf-quiet);
}

.ash-lp--sell-furniture .ash-sf .ash-sf-more {
  display: none;
  margin-top: 20px;
}

.ash-lp--sell-furniture .ash-sf--js .ash-sf-more:not([hidden]) {
  display: inline-flex;
}

.ash-lp--sell-furniture .ash-sf--js .ash-sf-card--extra:not(.is-shown) {
  display: none;
}

/* Feed B cards (HomepageCards markup), scoped. */
.ash-lp--sell-furniture .ash-sf .ash-hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ash-lp--sell-furniture .ash-sf .ash-hp-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card { position: relative; min-width: 0; }
.ash-lp--sell-furniture .ash-sf .ash-hp-frame { position: relative; display: flex; align-items: center; justify-content: flex-start; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 0; background: var(--ash-ivory); }
.ash-lp--sell-furniture .ash-sf .ash-hp-frame img { display: block; width: auto; height: auto; max-width: min(100%, var(--ash-hp-nw, 100%)); max-height: 100%; object-fit: contain; border-radius: var(--radius-md); }
.ash-lp--sell-furniture .ash-sf .ash-hp-frame--empty { border-radius: var(--radius-md); background: var(--muted); }
.ash-lp--sell-furniture .ash-sf .ash-hp-card:hover .ash-hp-frame img { filter: brightness(1.03); }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__body { display: flex; align-items: flex-start; gap: 8px; padding-top: 10px; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__text { flex: 1 1 auto; min-width: 0; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__link { color: inherit; font-weight: inherit; text-decoration: none; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-md); }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__link:hover { text-decoration: underline; text-decoration-color: var(--ash-hp-mark); text-underline-offset: 3px; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__link:focus-visible { outline: none; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__link:focus-visible::after { outline: 3px solid var(--ash-focus-ring); outline-offset: 4px; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 10px; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__title {
  flex: 1 1 100%; min-width: 0; margin: 0; overflow: hidden; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  font-family: var(--font-heading); font-size: clamp(1.125rem, 1.35vw, 1.25rem); font-weight: 600; line-height: 1.35; letter-spacing: 0; color: var(--ash-hp-heading);
}
.ash-lp--sell-furniture .ash-sf .ash-hp-card__head--beside .ash-hp-card__title { flex-basis: 60%; }
/* The whole price stays on one line; the title wraps instead. Amount, lot and offer words are unchanged. */
.ash-lp--sell-furniture .ash-sf .ash-hp-price,
.ash-lp--sell-furniture .ash-sf .ash-hp-price--soft { flex: none; margin: 0; white-space: nowrap; font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.55; color: var(--ash-forest); }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__meta { display: flex; align-items: baseline; min-width: 0; margin: 4px 0 0; white-space: nowrap; font-family: var(--font-body); font-size: 0.85rem; line-height: 1.55; color: var(--ash-hp-muted); }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__place { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__sep { flex: none; padding: 0 0.4em; }
.ash-lp--sell-furniture .ash-sf .ash-hp-card__age { flex: none; font-variant-numeric: tabular-nums; }
/* Thumbnails: a 34x38 matted view with a 44x44 hit area. The hit area is a
   pseudo-element (5px out at the sides, 3px above and below); the 10px gap
   keeps neighbouring hit areas from overlapping. */
.ash-lp--sell-furniture .ash-sf .ash-hp-thumbs { position: relative; z-index: 2; display: none; flex: none; align-items: flex-start; gap: 10px; }
.ash-lp--sell-furniture .ash-sf--js .ash-hp-thumbs { display: flex; }
.ash-lp--sell-furniture .ash-sf .ash-hp-thumb { position: relative; display: grid; place-items: center; box-sizing: border-box; width: 34px; height: 38px; padding: 1px; overflow: visible; border: 1px solid var(--ash-sf-thumb-edge); border-radius: calc(var(--radius) - 1px); background: var(--popover); cursor: pointer; }
.ash-lp--sell-furniture .ash-sf .ash-hp-thumb::before { content: ""; position: absolute; inset: -4px -6px; }
.ash-lp--sell-furniture .ash-sf .ash-hp-thumb img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: calc(var(--radius) / 2); }
.ash-lp--sell-furniture .ash-sf .ash-hp-thumb[aria-pressed="true"] { outline: 2px solid var(--ash-sf-number); outline-offset: 1px; }
.ash-lp--sell-furniture .ash-sf .ash-hp-thumb:focus-visible { outline: 3px solid var(--ash-focus-ring); outline-offset: 3px; }

/* -- Free listing, Boost, local buyer --------------------------------------- */

.ash-lp--sell-furniture .ash-sf-twocol {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(18px, 6vw, 76px);
}

.ash-lp--sell-furniture .ash-sf-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ash-sf-step;
}

.ash-lp--sell-furniture .ash-sf-steps li {
  position: relative;
  padding-left: 32px;
  counter-increment: ash-sf-step;
}

.ash-lp--sell-furniture .ash-sf-steps li + li {
  margin-top: 20px;
}

.ash-lp--sell-furniture .ash-sf-steps li::before {
  content: counter(ash-sf-step) ".";
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 700;
  color: var(--ash-sf-number);
}

.ash-lp--sell-furniture .ash-sf-steps strong {
  font-weight: 700;
  color: var(--ash-forest);
}

.ash-lp--sell-furniture .ash-sf .ash-sf-steps p {
  margin: 2px 0 0;
}

.ash-lp--sell-furniture .ash-sf-boost,
.ash-lp--sell-furniture .ash-sf-local-buyer {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: clamp(18px, 6vw, 76px);
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--ash-sf-panel-r);
}

.ash-lp--sell-furniture .ash-sf-boost {
  margin: 0 0 38px;
  background: var(--ash-sage);
}

.ash-lp--sell-furniture .ash-sf-boost .ash-sf-h2 {
  max-width: 15ch;
}

.ash-lp--sell-furniture .ash-sf .ash-sf-boost > div > p:last-child,
.ash-lp--sell-furniture .ash-sf .ash-sf-local-buyer p {
  margin-bottom: 0;
}

.ash-lp--sell-furniture .ash-sf-boost__detail {
  padding-left: clamp(18px, 3vw, 38px);
  border-left: 1px solid var(--ash-sf-boost-line);
}

.ash-lp--sell-furniture .ash-sf .ash-sf-boost__price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ash-forest);
}

.ash-lp--sell-furniture .ash-sf-boost__price span {
  font: 500 0.94rem/1.4 var(--font-body);
}

.ash-lp--sell-furniture .ash-sf-local-buyer {
  margin: 0 0 36px;
  border: 1px solid var(--ash-sf-buyer-line);
  background: var(--ash-sf-buyer-bg);
}

.ash-lp--sell-furniture .ash-sf-local-buyer__note {
  display: block;
  margin: 4px 0;
  font-size: 0.85rem;
  color: var(--ash-sf-buyer-note);
}

/* -- FAQ, resources, places, end links --------------------------------------- */

.ash-lp--sell-furniture .ash-sf-faq__item {
  border-bottom: 1px solid var(--ash-sf-rule);
}

.ash-lp--sell-furniture .ash-sf-faq__item summary,
.ash-lp--sell-furniture .ash-sf-places__all summary {
  padding: 15px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ash-forest);
  cursor: pointer;
}

.ash-lp--sell-furniture .ash-sf .ash-sf-faq__item p {
  max-width: 69ch;
  margin: 0;
  padding: 0 0 13px;
}

.ash-lp--sell-furniture .ash-sf-linklist {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ash-lp--sell-furniture .ash-sf-linklist li + li {
  margin-top: 8px;
}

.ash-lp--sell-furniture .ash-sf .ash-sf-resources .ash-sf-twocol > div > p:last-child {
  margin-bottom: 0;
}

.ash-lp--sell-furniture .ash-sf-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ash-lp--sell-furniture .ash-sf .ash-sf-directory a {
  display: inline-block;
  padding: 3px 0;
}

.ash-lp--sell-furniture .ash-sf .ash-sf-places__also {
  margin: 16px 0 0;
  color: var(--ash-sf-quiet);
}

.ash-lp--sell-furniture .ash-sf-endlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px 0 0;
  border-top: 1px solid var(--ash-sf-rule);
}

/* -- Sticky CTA A ------------------------------------------------------------ */
/* Only `.ash-sticky-cta--sell`: the legacy sticky of other seller intents keeps
   its rules in landing-page.css. `hidden` removes it from view and from the
   tab order. */

.ash-sticky-cta.ash-sticky-cta--sell[hidden] {
  display: none;
}

/* -- Narrow widths ------------------------------------------------------------ */

@media (max-width: 760px) {
  .ash-lp--sell-furniture {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  html.ash-sf-sticky-on {
    scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  /* The category starter runs to the screen edges (the hero photo keeps its
     shipped inset). */
  .ash-lp--sell-furniture .ash-sell-instrument--categories {
    width: min(calc(100% + 2 * var(--lp-gutter)), 560px);
    max-width: none;
    margin-right: calc(-1 * var(--lp-gutter));
    margin-left: calc(-1 * var(--lp-gutter));
  }

  .ash-lp--sell-furniture .ash-sf-inv__head {
    align-items: flex-end;
  }

  .ash-lp--sell-furniture .ash-sf .ash-hp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ash-lp--sell-furniture .ash-sf .ash-hp-card__head--beside .ash-hp-card__title {
    flex-basis: 100%;
  }

  .ash-lp--sell-furniture .ash-sf-twocol,
  .ash-lp--sell-furniture .ash-sf-boost,
  .ash-lp--sell-furniture .ash-sf-local-buyer {
    grid-template-columns: 1fr;
  }

  .ash-lp--sell-furniture .ash-sf-boost .ash-sf-h2 {
    max-width: 28ch;
  }

  .ash-lp--sell-furniture .ash-sf-boost__detail {
    padding: 16px 0 0;
    border-top: 1px solid var(--ash-sf-boost-line);
    border-left: 0;
  }

  .ash-sticky-cta.ash-sticky-cta--sell:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--ash-sf-bar-line);
    background: var(--ash-sf-bar-bg);
    box-shadow: none;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .ash-lp--sell-furniture .ash-sticky-cta--sell .ash-sticky-cta__btn,
  .ash-lp--sell-furniture .ash-sticky-cta--sell .ash-sticky-cta__btn:hover,
  .ash-lp--sell-furniture .ash-sticky-cta--sell .ash-sticky-cta__btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 19px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ash-sf-action);
    box-shadow: none;
    color: var(--primary-foreground);
    font: 600 0.95rem var(--font-heading);
    text-decoration: none;
    transform: none;
    transition: none;
  }

  .ash-lp--sell-furniture .ash-sticky-cta--sell .ash-sticky-cta__btn:hover {
    filter: brightness(0.94);
  }

  .ash-lp--sell-furniture .ash-sticky-cta--sell .ash-sticky-cta__btn:focus-visible {
    outline: 3px solid var(--ash-focus-ring);
    outline-offset: 3px;
  }
}

@media (max-width: 500px) {
  .ash-lp--sell-furniture .ash-sf__wrap {
    padding: 0 20px 18px;
  }

  .ash-lp--sell-furniture .ash-sf-inv__head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px;
  }

  .ash-lp--sell-furniture .ash-sf-inv__head > * {
    width: 100%;
  }

  .ash-lp--sell-furniture .ash-sf .ash-hp-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ash-lp--sell-furniture .ash-sf .ash-hp-card__head--beside .ash-hp-card__title {
    flex-basis: 60%;
  }

  .ash-lp--sell-furniture .ash-sf-twocol {
    gap: 24px;
  }

  .ash-lp--sell-furniture .ash-sf-endlinks {
    display: block;
  }

  .ash-lp--sell-furniture .ash-sf .ash-sf-boost__price {
    font-size: 2rem;
  }
}
