/* Style strategy from Hobby Depot HD-003 1.50.787: one scoped body class,
   the original ListingHive/HivePress controls and view stay in charge.
   IMPORTANT: never hide native header unless the branded header is present. */
body.hbdp-hobby-market-child { margin:0!important;background:#fff!important;color:#294339!important; }
body.hbdp-hobby-market-child * {box-sizing:border-box}
body.hbdp-hobby-market-child .hbdp-hobby-market-site-header {display:block;position:relative;z-index:40;background:#fff;clear:both}
/* Unlike the failed 0.1.174: if the replacement is absent, theme header survives. */
body.hbdp-hobby-market-child:has(.hbdp-hobby-market-site-header) .site-container>.site-header {display:none!important}

body.hbdp-hobby-market-child .site-content {width:100%;max-width:none;margin:0 auto}
body.hbdp-hobby-market-child .site-content>.container {width:min(1200px,calc(100% - 40px));max-width:1200px;margin:0 auto;padding:24px 0 45px}
body.hbdp-hobby-market-child .site-content .content-area,
body.hbdp-hobby-market-child .site-content #primary {float:none!important;width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
body.hbdp-hobby-market-child .hp-page__sidebar {min-width:0}
body.hbdp-hobby-market-child .hp-page__content {min-width:0}
body.hbdp-hobby-market-child .hp-page .hp-row {max-width:100%}
body.hbdp-hobby-market-child .hp-form button[type=submit],
body.hbdp-hobby-market-child .hp-form .hp-form__button {background:#a65540!important;border-color:#a65540!important;color:#fff!important}
/* Safety fallback for blocks from the modern WordPress widget editor.
   The real HivePress filter container is NEVER hidden. */
body.hbdp-hobby-market-child .hp-page__sidebar .widget_archive,
body.hbdp-hobby-market-child .hp-page__sidebar .widget_categories,
body.hbdp-hobby-market-child .hp-page__sidebar .widget:has(.wp-block-archives),
body.hbdp-hobby-market-child .hp-page__sidebar .widget:has(.wp-block-categories),
body.hbdp-hobby-market-child .hp-page__sidebar .wp-block-archives,
body.hbdp-hobby-market-child .hp-page__sidebar .wp-block-categories {display:none!important}
@media(max-width:760px){
 body.hbdp-hobby-market-child .site-content>.container{width:calc(100% - 24px);padding:15px 0 30px}
 body.hbdp-hobby-market-child .hp-page__sidebar,body.hbdp-hobby-market-child .hp-page__content{max-width:100%;width:100%}
}

/* 0.1.176 — the SAME verified sizing rules already used by the working
   'Anzeige aufgeben' page (assets/market-submit.css). The generic
   assets/style.css sets EVERY .hbdp wrapper to min-height:100vh.
   On native HivePress pages header and footer are INDEPENDENT wrappers;
   without these two limits each reserves a complete viewport. */
body.hbdp-hobby-market-child .hbdp.hbdp-hobby-market-site-header,
body.hbdp-hobby-market-child .hbdp.hbdp-footer-standalone {
  display:block;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  clear:both;
}
/* The established portal body font is set by body.hbdp-body; native
   HivePress body does not have that class. Match it on the same header only,
   leaving HivePress search and filters' typography untouched. */
body.hbdp-hobby-market-child .hbdp.hbdp-hobby-market-site-header {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  line-height:1.55;
  overflow:visible;
}
/* Native HivePress footer is a BODY sibling of .site-container. For short
   category pages, use the same normal footer-at-bottom layout as a document,
   rather than leaving a white viewport area below the copyright line. */
body.hbdp-hobby-market-child {
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
body.hbdp-hobby-market-child .site-container {
  flex:1 0 auto;
  width:100%;
  min-height:0;
}
/* Same content-flow reset used by the working 'Anzeige aufgeben' page:
   the HivePress category may not be drawn underneath the brand navigation. */
body.hbdp-hobby-market-child.hbdp-market-category-request .site-container {
  position:relative;
  top:auto;
  transform:none;
  margin-top:0;
}
body.hbdp-hobby-market-child .hbdp.hbdp-footer-standalone {
  flex:0 0 auto;
  width:100%;
}


/* 0.1.177 — full-width market introduction on HivePress category pages.
   The same market.css components are reused; the native category title,
   filter sidebar and listing results remain below and keep their own layout. */
body.hbdp-hobby-market-child.hbdp-market-category-request .hp-page__header {
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro {
  display:block;
  width:min(1180px,calc(100% - 56px));
  max-width:1180px;
  margin:0 auto;
  padding:24px 0 24px;
  color:#294339;
  background:#fff;
  box-sizing:border-box;
}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro * {box-sizing:border-box}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-market-hero-copy h2 {
  font:500 clamp(30px,3.5vw,48px)/1.08 Georgia,'Times New Roman',serif;
  letter-spacing:-.035em;
  margin:9px 0 12px;
  color:#274438;
}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-market-hero-copy h2:before,
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-market-hero-copy h2:after {display:none!important;content:none!important}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-market-between-banner {margin:17px 0 0}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-editorial-ad {
  margin:0;
  padding:12px 15px;
  border:1px solid #ebe3d8;
  background:#fff;
  text-align:center;
  max-width:100%;
  overflow:hidden;
}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-editorial-ad>small {
  display:block;color:#897d70;font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin:0 0 9px
}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-editorial-ad-link {
  display:flex;justify-content:center;align-items:center;gap:18px;min-height:70px;max-width:100%;color:#365142!important;text-decoration:none!important
}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-editorial-ad-link>img {
  max-width:min(100%,780px);max-height:125px;object-fit:contain;width:auto;height:auto;display:block
}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-editorial-ad-empty {
  background:#faf8f4;border:1px dashed #dbcbbd;color:#756a5d;text-align:left
}
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-editorial-ad-empty p {
  font-size:12px;margin:6px 0;line-height:1.5
}
@media(max-width:600px){
  body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro {
    width:calc(100% - 30px);
    padding:16px 0 18px;
  }
  body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-editorial-ad-link {
    flex-direction:column;gap:7px
  }
  body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-editorial-ad-link>img {max-height:90px}
}

/* 0.1.181 — COLOR ONLY: preserve the complete 0.1.178 layout.
   ListingHive's blue default links must not color the brand breadcrumbs. */
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-crumb,
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-crumb span,
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-crumb a,
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-crumb a:link,
body.hbdp-hobby-market-child.hbdp-market-category-request .hbdp-market-child-intro .hbdp-crumb a:visited {
  color:#777d75!important;
}

/* 0.1.182: HivePress category filters submit to /?post_type=hp_listing&_category=ID.
   This is not an is_tax() request but must have the SAME branded category UI.
   Remove only the default WordPress archives/categories widgets. */
body.hbdp-market-category-query .site-content .widget_archive,
body.hbdp-market-category-query .site-content .widget_categories,
body.hbdp-market-category-query .site-content .wp-block-archives,
body.hbdp-market-category-query .site-content .wp-block-categories {display:none!important}
/* The market intro above already contains the site search; hide only the
   duplicate native keyword form, not the real category filter/sidebar. */
body.hbdp-market-category-query .site-content .hp-page__header form.hp-form--listing-search {display:none!important}
