/* Full-width, theme-independent public sale canvas. */
.hfdx-sale-wrap{
  position:relative;
  left:50%;
  width:100vw;
  max-width:none!important;
  margin-left:-50vw!important;
  margin-right:0!important;
  padding:clamp(18px,3vw,48px);
  background:#0b1118;
  overflow-x:clip;
}
.hfdx-sale-wrap > *{width:min(100%,1600px);margin-left:auto;margin-right:auto}
.hfdx-sale-wrap .hfdx-sale-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
@media(max-width:900px){
  .hfdx-sale-wrap{left:50%;width:100vw;margin-left:-50vw!important;padding:14px 12px 28px}
  .hfdx-sale-wrap .hfdx-sale-grid{grid-template-columns:minmax(0,1fr)!important}
  .hfdx-sale-wrap .hfdx-sale-card{width:100%!important;max-width:100%!important}
}
.hfdx-sale-wrap{--bg:#0b1118;--card:#111b26;--line:#26384a;--text:#eef5fb;--muted:#a9b8c7;--accent:#4bb4ff;--good:#55d68a;--warn:#ffc857;--bad:#ff6b6b;color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.hfdx-sale-wrap,.hfdx-sale-wrap *{box-sizing:border-box}
.hfdx-sale-hero{background:linear-gradient(135deg,#101b27,#182b3d);border:1px solid var(--line);border-radius:24px;padding:clamp(24px,5vw,52px);margin:0 0 34px;box-shadow:0 18px 50px rgba(0,0,0,.25)}
.hfdx-sale-hero .eyebrow{text-transform:uppercase;letter-spacing:.14em;color:var(--accent);font-weight:800;margin:0 0 8px}
.hfdx-sale-hero h1{margin:0 0 14px;font-size:clamp(2rem,5vw,4rem);line-height:1.02}
.hfdx-sale-hero p{max-width:900px;color:var(--muted);font-size:1.08rem}
.hfdx-sale-notice{margin-top:20px;padding:14px 16px;border-radius:14px;background:rgba(255,200,87,.09);border:1px solid rgba(255,200,87,.3);color:#ffe2a3}
.hfdx-sale-group{margin:32px 0}
.hfdx-group-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:16px;gap:12px}
.hfdx-group-heading h2{font-size:1.8rem;margin:0}
.hfdx-group-heading span{color:var(--muted)}
.hfdx-sale-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:20px}
.hfdx-sale-card{min-width:0;width:100%;background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.18)}
.hfdx-sale-card.is-featured{outline:2px solid var(--accent)}
.hfdx-card-image{position:relative;width:100%;height:clamp(190px,22vw,280px);max-height:280px;overflow:hidden;background:#091019}
.hfdx-main-photo{display:flex;width:100%;height:100%;padding:0;border:0;background:#091019;cursor:zoom-in;align-items:center;justify-content:center;overflow:hidden}
.hfdx-card-image img,.hfdx-main-photo img{display:block;width:100%!important;height:100%!important;max-width:100%!important;margin:0!important;object-fit:contain!important;object-position:center}
.hfdx-image-placeholder{height:100%;display:grid;place-items:center;color:#6f8396;background:radial-gradient(circle at 50% 20%,#17283a,#0a1118)}
.hfdx-status-badge{position:absolute;top:12px;left:12px;padding:7px 11px;border-radius:999px;background:rgba(0,0,0,.72);font-size:.78rem;font-weight:800;letter-spacing:.04em}
.hfdx-card-body{min-width:0;padding:20px}
.hfdx-card-body h3{margin:0 0 10px;font-size:1.25rem;color:#ffee07;overflow-wrap:anywhere}
.hfdx-description{color:var(--muted);font-size:.96rem;overflow-wrap:anywhere}
.hfdx-description p{margin:.45em 0}
.hfdx-price-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}
.hfdx-price-row>div{padding:12px;border:1px solid var(--line);border-radius:14px;background:#0d1620}
.hfdx-price-row span{display:block;color:var(--muted);font-size:.78rem}
.hfdx-price-row strong{display:block;margin-top:4px;font-size:1.15rem}
.hfdx-offer-meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:.82rem;margin-bottom:14px}
.hfdx-offer-toggle,.hfdx-submit{width:100%;max-width:100%!important;min-width:0!important;border:0;border-radius:12px;padding:12px 16px;font-weight:800;cursor:pointer;background:var(--accent);color:#04111d}
.hfdx-offer-toggle:hover,.hfdx-submit:hover{filter:brightness(1.08)}
.hfdx-offer-form{min-width:0;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.hfdx-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
.hfdx-form-grid label{min-width:0;font-size:.82rem;color:var(--muted)}
.hfdx-form-grid label.full{grid-column:1/-1}
.hfdx-form-grid input,.hfdx-form-grid textarea{box-sizing:border-box;width:100%;max-width:100%!important;min-width:0!important;margin-top:5px;border:1px solid var(--line);border-radius:10px;background:#09111a;color:var(--text);padding:10px}
.hfdx-consent{display:flex;gap:8px;align-items:flex-start;margin:12px 0;color:var(--muted);font-size:.8rem}
.hfdx-form-message{margin-top:10px;font-weight:700}.hfdx-form-message.ok{color:var(--good)}.hfdx-form-message.warning{color:#b45309;background:#fff7ed;border:1px solid #fdba74;border-radius:10px;padding:10px 12px}.hfdx-form-message.error{color:var(--bad)}
.hfdx-closed{padding:12px;text-align:center;border-radius:12px;background:#202b35;color:var(--muted);font-weight:800}
.hfdx-status-reserved .hfdx-status-badge{background:#8a6515}.hfdx-status-sold .hfdx-status-badge{background:#216d48}
.hfdx-photo-thumbs{display:flex;gap:8px;overflow-x:auto;margin:-4px 0 14px;padding:2px;max-width:100%}
.hfdx-photo-thumb{flex:0 0 62px;width:62px;height:48px;padding:0;border:2px solid var(--line);border-radius:8px;overflow:hidden;background:#091019;cursor:zoom-in}
.hfdx-photo-thumb:hover,.hfdx-photo-thumb:focus{border-color:var(--accent)}
.hfdx-photo-thumb img{display:block;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;margin:0!important}
.hfdx-lightbox[hidden]{display:none}.hfdx-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.9);display:grid;place-items:center;padding:28px}.hfdx-lightbox img{max-width:min(94vw,1500px);max-height:90vh;object-fit:contain;border-radius:12px;box-shadow:0 20px 80px rgba(0,0,0,.6)}.hfdx-lightbox-close{position:fixed;top:18px;right:22px;border:0;background:#fff;color:#111;width:44px;height:44px;border-radius:50%;font-size:30px;line-height:1;cursor:pointer}.hfdx-lightbox-open{overflow:hidden}

/* One full-width item per row on phones and small tablets. */
@media(max-width:900px){
  .hfdx-sale-wrap{width:100%;max-width:100%;overflow-x:hidden}
  .hfdx-sale-hero{padding:22px 16px;border-radius:18px;margin-bottom:24px}
  .hfdx-group-heading{align-items:flex-start;flex-direction:column}
  .hfdx-sale-wrap .hfdx-sale-grid{display:grid!important;grid-template-columns:repeat(1,minmax(0,1fr))!important;width:100%!important;max-width:100%!important;gap:18px!important}
  .hfdx-sale-card{width:100%;max-width:100%;margin:0}
  .hfdx-card-image{height:clamp(210px,68vw,360px);max-height:360px}
  .hfdx-card-body{padding:16px}
  .hfdx-form-grid,.hfdx-price-row{grid-template-columns:1fr}
  .hfdx-offer-meta{flex-direction:column}
  .hfdx-photo-thumbs{width:100%;padding-bottom:6px;overscroll-behavior-inline:contain}
  .hfdx-photo-thumb{flex-basis:58px;width:58px;height:46px}
  .hfdx-lightbox{padding:12px}
  .hfdx-lightbox img{display:block;width:auto!important;height:auto!important;max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 72px)!important;object-fit:contain!important}
  .hfdx-lightbox-close{top:10px;right:10px;width:40px;height:40px;font-size:26px}
}
@media(max-width:380px){.hfdx-card-image{height:220px}.hfdx-card-body{padding:14px}}

/* Extra mobile fallback against theme grid rules. */
@media only screen and (max-device-width:900px), only screen and (max-width:900px){
  body .hfdx-sale-wrap .hfdx-sale-group .hfdx-sale-grid{
    display:grid!important;
    grid-template-columns:100%!important;
    grid-auto-flow:row!important;
  }
  body .hfdx-sale-wrap .hfdx-sale-card{
    grid-column:1/-1!important;
    width:100%!important;
    max-width:none!important;
  }
}
.hfdx-sale-terms{margin:14px 0;padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(0,0,0,.18)}
.hfdx-sale-terms>strong{display:block;margin-bottom:8px}
.hfdx-sale-terms-text{max-height:150px;overflow:auto;font-size:.86rem;line-height:1.5;padding-right:8px}

/* Members-area equipment submission — v1.6.0 */
.hfdx-member-sell-wrap{padding-top:clamp(18px,3vw,42px);padding-bottom:clamp(28px,4vw,56px)}
.hfdx-member-sell-card{display:flex;align-items:center;gap:20px;padding:22px;margin:0 0 20px;background:linear-gradient(135deg,#101b27,#182b3d);border:1px solid var(--line);border-radius:20px}
.hfdx-member-sell-card h2{margin:2px 0 8px;font-size:clamp(1.6rem,3vw,2.3rem)}
.hfdx-member-sell-card p{margin:5px 0;color:var(--muted)}
.hfdx-member-sell-card .eyebrow{margin:0;color:var(--accent);font-weight:800;text-transform:uppercase;letter-spacing:.1em;font-size:.78rem}
.hfdx-member-sell-icon{flex:0 0 82px;width:82px;height:82px;display:grid;place-items:center;border-radius:20px;background:var(--accent);color:#04111d;font-size:1rem;font-weight:900;letter-spacing:.06em;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.hfdx-member-sell-form{padding:clamp(18px,3vw,30px);border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:0 14px 34px rgba(0,0,0,.18)}
.hfdx-member-sell-form fieldset{margin:0 0 22px;padding:0;border:0}
.hfdx-member-sell-form legend{width:100%;padding:0 0 10px;margin:0 0 14px;border-bottom:1px solid var(--line);font-size:1.15rem;font-weight:800;color:var(--text)}
.hfdx-member-sell-form input[type=file]{padding:10px;background:#09111a;border:1px dashed var(--line);color:var(--muted)}
.hfdx-field-note{display:block;margin-top:5px;color:var(--muted);font-size:.76rem;font-weight:400}
.hfdx-member-submit-success,.hfdx-member-submit-error{margin:0 0 18px;padding:15px 17px;border-radius:14px;font-weight:600}
.hfdx-member-submit-success{background:rgba(85,214,138,.12);border:1px solid rgba(85,214,138,.45);color:#aef1c9}
.hfdx-member-submit-error{background:rgba(255,107,107,.10);border:1px solid rgba(255,107,107,.4);color:#ffc1c1}
@media(max-width:700px){.hfdx-member-sell-card{align-items:flex-start;flex-direction:column}.hfdx-member-sell-icon{width:66px;height:66px;flex-basis:66px;border-radius:16px}.hfdx-member-sell-form{padding:16px}}


/* v1.6.2 — isolate the public sale layout from theme section/content rules.
   Some themes float or offset <section> elements inside the entry content.
   The sale canvas may be full width while its children are pushed to one side. */
body .hfdx-sale-wrap > .hfdx-sale-hero,
body .hfdx-sale-wrap > .hfdx-sale-group,
body .hfdx-sale-wrap > .hfdx-member-sell-card,
body .hfdx-sale-wrap > .hfdx-member-submit-success,
body .hfdx-sale-wrap > .hfdx-member-submit-error,
body .hfdx-sale-wrap > .hfdx-member-sell-form,
body .hfdx-sale-wrap > .hfdx-lightbox {
  float:none!important;
  clear:both!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  inset-inline:auto!important;
  transform:none!important;
  width:min(100%,1600px)!important;
  max-width:1600px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Lightbox must retain viewport positioning. */
body .hfdx-sale-wrap > .hfdx-lightbox {
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  max-width:none!important;
  margin:0!important;
}

/* Ensure groups and their grids consume the centred content width. */
body .hfdx-sale-wrap .hfdx-group-heading,
body .hfdx-sale-wrap .hfdx-sale-grid {
  float:none!important;
  clear:both!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* Prevent common theme article/section grid rules leaking into the cards. */
body .hfdx-sale-wrap article.hfdx-sale-card {
  float:none!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

@media(max-width:900px){
  body .hfdx-sale-wrap > .hfdx-sale-hero,
  body .hfdx-sale-wrap > .hfdx-sale-group,
  body .hfdx-sale-wrap > .hfdx-member-sell-card,
  body .hfdx-sale-wrap > .hfdx-member-submit-success,
  body .hfdx-sale-wrap > .hfdx-member-submit-error,
  body .hfdx-sale-wrap > .hfdx-member-sell-form {
    width:100%!important;
    max-width:100%!important;
  }
}


/* v1.6.4 — Members' Sale kicker links back to the members sale page. */
.hfdx-sale-wrap .eyebrow .hfdx-members-kicker-link{
  color:inherit!important;
  text-decoration:none!important;
  font:inherit!important;
  letter-spacing:inherit!important;
}
.hfdx-sale-wrap .eyebrow .hfdx-members-kicker-link:hover,
.hfdx-sale-wrap .eyebrow .hfdx-members-kicker-link:focus-visible{
  text-decoration:underline!important;
  text-underline-offset:4px;
}
.hfdx-sale-wrap .eyebrow .hfdx-members-kicker-link:focus-visible{
  outline:2px solid currentColor;
  outline-offset:4px;
  border-radius:3px;
}


/* ============================================================
   v1.6.5 — [hfdxarc_member_sell]
   Full viewport-width members submission page + mobile hardening.
   These rules deliberately override narrow WordPress/theme content
   containers without changing the site's header/navigation.
   ============================================================ */

body .hfdx-sale-wrap.hfdx-member-sell-wrap {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;

  /* Break cleanly out of a narrow theme/content column. */
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  padding-left: max(clamp(14px, 2.5vw, 42px), env(safe-area-inset-left)) !important;
  padding-right: max(clamp(14px, 2.5vw, 42px), env(safe-area-inset-right)) !important;
  padding-top: clamp(16px, 2.5vw, 38px) !important;
  padding-bottom: clamp(28px, 4vw, 58px) !important;

  overflow-x: hidden !important;
}

/* The heading, status message and form use all usable page width. */
body .hfdx-sale-wrap.hfdx-member-sell-wrap > .hfdx-member-sell-card,
body .hfdx-sale-wrap.hfdx-member-sell-wrap > .hfdx-member-submit-success,
body .hfdx-sale-wrap.hfdx-member-sell-wrap > .hfdx-member-submit-error,
body .hfdx-sale-wrap.hfdx-member-sell-wrap > .hfdx-member-sell-form {
  display: block;
  float: none !important;
  clear: both !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Restore flex presentation for the introduction card on wider screens. */
body .hfdx-sale-wrap.hfdx-member-sell-wrap > .hfdx-member-sell-card {
  display: flex !important;
}

/* Theme-proof form layout. */
body .hfdx-member-sell-wrap .hfdx-member-sell-form,
body .hfdx-member-sell-wrap .hfdx-member-sell-form fieldset,
body .hfdx-member-sell-wrap .hfdx-member-sell-form legend,
body .hfdx-member-sell-wrap .hfdx-form-grid,
body .hfdx-member-sell-wrap .hfdx-form-grid label {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body .hfdx-member-sell-wrap .hfdx-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  gap: clamp(12px, 1.6vw, 20px) !important;
}

body .hfdx-member-sell-wrap .hfdx-form-grid label {
  display: block !important;
  width: 100% !important;
  overflow-wrap: anywhere;
}

body .hfdx-member-sell-wrap .hfdx-form-grid label.full {
  grid-column: 1 / -1 !important;
}

/* No form control may escape the viewport. */
body .hfdx-member-sell-wrap input,
body .hfdx-member-sell-wrap textarea,
body .hfdx-member-sell-wrap select,
body .hfdx-member-sell-wrap button {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body .hfdx-member-sell-wrap .hfdx-form-grid input,
body .hfdx-member-sell-wrap .hfdx-form-grid textarea,
body .hfdx-member-sell-wrap .hfdx-form-grid select {
  display: block !important;
  width: 100% !important;
}

/* File picker is a common source of horizontal overflow on phones. */
body .hfdx-member-sell-wrap input[type="file"] {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: normal !important;
}

body .hfdx-member-sell-wrap input[type="file"]::file-selector-button {
  max-width: 100%;
  margin: 0 10px 4px 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

/* Keep the consent checkbox compact while the wording wraps naturally. */
body .hfdx-member-sell-wrap .hfdx-consent {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
}

body .hfdx-member-sell-wrap .hfdx-consent input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 2px 0 0 !important;
}

body .hfdx-member-sell-wrap .hfdx-submit {
  display: block !important;
  width: 100% !important;
  min-height: 48px;
  white-space: normal !important;
}

/* Phones and small tablets: every field becomes one full-width row. */
@media (max-width: 900px) {
  body .hfdx-sale-wrap.hfdx-member-sell-wrap {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
    overflow-x: hidden !important;
  }

  body .hfdx-sale-wrap.hfdx-member-sell-wrap > .hfdx-member-sell-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 18px 16px !important;
  }

  body .hfdx-member-sell-wrap .hfdx-member-sell-form {
    width: 100% !important;
    padding: 16px !important;
    border-radius: 16px !important;
  }

  body .hfdx-member-sell-wrap .hfdx-form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body .hfdx-member-sell-wrap .hfdx-form-grid label,
  body .hfdx-member-sell-wrap .hfdx-form-grid label.full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  /* 16px prevents mobile Safari from zooming into form fields. */
  body .hfdx-member-sell-wrap input:not([type="checkbox"]),
  body .hfdx-member-sell-wrap textarea,
  body .hfdx-member-sell-wrap select,
  body .hfdx-member-sell-wrap button {
    font-size: 16px !important;
  }

  body .hfdx-member-sell-wrap textarea {
    min-height: 150px;
    resize: vertical;
  }

  body .hfdx-member-sell-wrap .hfdx-member-sell-icon {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
  }
}

/* Very narrow phones. */
@media (max-width: 420px) {
  body .hfdx-sale-wrap.hfdx-member-sell-wrap {
    padding-left: max(9px, env(safe-area-inset-left)) !important;
    padding-right: max(9px, env(safe-area-inset-right)) !important;
  }

  body .hfdx-member-sell-wrap .hfdx-member-sell-form {
    padding: 13px !important;
    border-radius: 14px !important;
  }

  body .hfdx-member-sell-wrap .hfdx-member-sell-form legend {
    font-size: 1.05rem !important;
  }

  body .hfdx-member-sell-wrap input[type="file"]::file-selector-button {
    display: block;
    width: 100%;
    margin: 0 0 8px 0;
  }
}
