/*
 * Texas Surplus Auctions marketplace refinements (T1).
 * Loaded ONLY for the texas-surplus-auctions tenant (views/partials/header.ejs),
 * and every rule is additionally scoped to body.tenant-texas-surplus-auctions.
 */

/* /auctions hero without the second search box: one intentional column. */
body.tenant-texas-surplus-auctions .auction-index-hero--single {
  grid-template-columns: minmax(0, 1fr);
}

body.tenant-texas-surplus-auctions .auction-index-hero--single > div {
  max-width: 820px;
}

/* Mobile header: let the logo column shrink so Create Account is not clipped. */
@media (max-width: 760px) {
  body.tenant-texas-surplus-auctions .market-header__inner {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  body.tenant-texas-surplus-auctions .market-brand {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  body.tenant-texas-surplus-auctions .market-brand__logo {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 46px;
  }

  body.tenant-texas-surplus-auctions .market-account-nav {
    gap: 6px;
  }
}

/* Understated "Powered by AuctionCoder" line at the very bottom of the TSA marketplace footer. */
body.tenant-texas-surplus-auctions .tsa-powered-by-auctioncoder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

body.tenant-texas-surplus-auctions .tsa-powered-by-auctioncoder a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: none;
}

body.tenant-texas-surplus-auctions .tsa-powered-by-auctioncoder a:hover,
body.tenant-texas-surplus-auctions .tsa-powered-by-auctioncoder a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

/* DEV37 TSA hero: show the complete auction featured image (no cropping).
   TSA only: this file is loaded only for the texas-surplus-auctions tenant. */
@media (min-width: 961px) {
  body.tenant-texas-surplus-auctions .gmd-public-auction .gmd-auction-hero-layout {
    grid-template-columns: 380px minmax(0, 1fr) 280px !important;
  }
}
body.tenant-texas-surplus-auctions .gmd-public-auction .gmd-auction-hero-layout::before {
  background: var(--gmd-auction-hero-image) center center / contain no-repeat !important;
  aspect-ratio: 1443 / 1090;
  min-height: 0 !important;
  height: auto;
  align-self: center;
}
body.tenant-texas-surplus-auctions .auction-listing-card__image[style*="background-image"] {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  padding-top: 38px;
  background-size: contain;
  background-origin: content-box;
  background-color: #0f2742;
}
body.tenant-texas-surplus-auctions .auction-listing-card__image[style*="background-image"]::before {
  content: "";
  display: block;
  aspect-ratio: 1443 / 1090;
}
body.tenant-texas-surplus-auctions .auction-listing-card__image[style*="background-image"]::after {
  display: none;
}

/* DEV43 - bidder-facing lot outcome (TSA, incl. JPS auctions). Labels come from
   lib/buyer-lot-outcome.js; "High Bidder" never means "Won". TSA-scoped only. */
body.tenant-texas-surplus-auctions .buyer-card__state--high-bidder,
body.tenant-texas-surplus-auctions .buyer-page__count--high-bidder { background: #e7f7ed; color: #17683a; }
body.tenant-texas-surplus-auctions .buyer-card__state--high-bidder-reserve-not-met,
body.tenant-texas-surplus-auctions .buyer-page__count--high-bidder-reserve-not-met { background: #fff4e0; color: #8a4b00; }
body.tenant-texas-surplus-auctions .buyer-card__state--reserve-not-met,
body.tenant-texas-surplus-auctions .buyer-page__count--reserve-not-met { background: #eef2f6; color: #0f2742; }
body.tenant-texas-surplus-auctions .buyer-card__state--not-sold,
body.tenant-texas-surplus-auctions .buyer-card__state--withdrawn,
body.tenant-texas-surplus-auctions .buyer-card__state--sale-cancelled,
body.tenant-texas-surplus-auctions .buyer-page__count--not-sold,
body.tenant-texas-surplus-auctions .buyer-page__count--withdrawn,
body.tenant-texas-surplus-auctions .buyer-page__count--sale-cancelled { background: #f1f4f7; color: #6b7c8f; }
body.tenant-texas-surplus-auctions .buyer-card__state--high-bidder-reserve-not-met,
body.tenant-texas-surplus-auctions .buyer-card__state--reserve-not-met { white-space: normal; text-align: left; }
body.tenant-texas-surplus-auctions .buyer-page__note { margin: .5rem 0 0; font-size: .82rem; line-height: 1.4; color: #4a5b6e; }
body.tenant-texas-surplus-auctions .bidder-account-lot-card__position .is-reserve-pending { color: #8a4b00; }
body.tenant-texas-surplus-auctions .gmd-bid-panel__high--reserve { background: #fff4e0; color: #8a4b00; }
body.tenant-texas-surplus-auctions .gmd-bid-panel__result { margin: .5rem 0 0; font-size: .9rem; }
body.tenant-texas-surplus-auctions .gmd-bid-panel__result.buyer-outcome--won strong { color: #871c1c; }
body.tenant-texas-surplus-auctions .gmd-bid-panel__result.buyer-outcome--reserve-not-met strong { color: #0f2742; }
