/* ZNJ Network — scoped, minimal mobile-first card guidance.
   Uses the existing card system; never touches the corporate home sheets. */
body.znj-marketplace [data-znj-network-rail] {
  scroll-padding-inline:6px;
  overscroll-behavior-x:contain;
}
body.znj-marketplace [data-znj-network-rail]:focus-visible {
  outline:2px solid #e9c78c;
  outline-offset:4px;
}
body.znj-marketplace .znj-directory #directory-results [data-znj-network-rail] > .znj-r-card {
  min-height:clamp(200px,30svh,290px);
}
body.znj-marketplace .znj-directory #directory-results [data-znj-network-rail] > .znj-r-card .znj-r-card-body {
  height:100%;
}
body.znj-marketplace .znj-directory #directory-results .znj-r-card-action {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  text-decoration:underline;
  text-underline-offset:4px;
}
body.znj-marketplace .znj-network-rail-progress {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  min-width:0;
  min-height:40px;
  margin:0 2px clamp(12px,2svh,22px);
}
body.znj-marketplace .znj-network-rail-progress[hidden] {display:none!important}
body.znj-marketplace .znj-network-rail-dots {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:0;
  overflow-x:auto;
  max-width:min(69vw,430px);
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
body.znj-marketplace .znj-network-rail-dots::-webkit-scrollbar {display:none}
body.znj-marketplace .znj-network-rail-dot {
  appearance:none;
  display:flex;
  flex:0 0 29px;
  justify-content:center;
  align-items:center;
  width:29px;
  min-width:29px;
  min-height:38px;
  padding:0;
  margin:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
body.znj-marketplace .znj-network-rail-dot::after {
  content:'';
  width:7px;
  height:7px;
  border:1px solid #c5a578;
  border-radius:50%;
  background:#655641;
  opacity:.72;
  transition:background .2s ease, width .2s ease, opacity .2s ease;
}
body.znj-marketplace .znj-network-rail-dot[aria-current="true"]::after {
  width:17px;
  border-radius:8px;
  background:#e6c58c;
  opacity:1;
}
body.znj-marketplace .znj-network-rail-dot:focus-visible {
  outline:2px solid #f2d7a5;
  outline-offset:-2px;
}
body.znj-marketplace .znj-network-rail-count {
  color:#e0c18d;
  font:700 10px/1.4 Manrope,Arial,sans-serif;
  letter-spacing:.12em;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
@media(max-width:900px) {
  body.znj-marketplace .znj-network-rail-progress {
    justify-content:space-between;
    gap:10px;
    margin-block:0 14px;
  }
  body.znj-marketplace .znj-directory #directory-results [data-znj-network-rail] > .znj-r-card {
    min-height:230px;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.znj-marketplace .znj-network-rail-dot::after {transition:none!important}
}


/* A native datalist keeps manual entry functional when JS is unavailable.
   Shortcuts show approved values only and preserve the active search context. */
body.znj-marketplace .znj-network-filter-choices {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  padding:7px 2px 10px;
  -webkit-overflow-scrolling:touch;
}
body.znj-marketplace .znj-network-filter-label {
  flex:none;
  color:#b7a27e;
  font:800 10px/1.4 Manrope,Arial,sans-serif;
  letter-spacing:.13em;
  margin-right:4px;
}
body.znj-marketplace .znj-network-filter-choices a {
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:7px 13px;
  border:1px solid rgba(216,178,117,.42);
  border-radius:22px;
  background:rgba(21,28,22,.8);
  color:#e9dac6;
  font:700 11px/1.35 Manrope,Arial,sans-serif;
  text-decoration:none;
  white-space:nowrap;
}
body.znj-marketplace .znj-network-filter-choices a[aria-current="page"] {
  color:#1a1b16;
  background:#e8c58c;
  border-color:#e8c58c;
}
body.znj-marketplace .znj-network-filter-choices a:focus-visible {
  outline:2px solid #f6dca9;
  outline-offset:3px;
}
@media(max-width:900px) {
  body.znj-marketplace .znj-network-filter-choices {
    margin-inline:-2px;
    padding-bottom:10px;
  }
  body.znj-marketplace .znj-network-filter-choices a {min-height:42px}
}


/* Real provider-owned images: clean aspect ratio and a distinct honest empty
   state. Never synthesize unrelated venue/artist photos as originals. */
body.znj-marketplace .znj-network-listing-card {
  min-width:0;
  isolation:isolate;
  overflow:hidden;
}
body.znj-marketplace .znj-network-listing-media {
  position:relative;
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  width:100%;
  height:clamp(136px,18svh,190px);
  min-height:136px;
  background:#18231d;
  overflow:hidden;
}
body.znj-marketplace .znj-network-listing-media > img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}
body.znj-marketplace .znj-network-listing-media--empty {
  background:
    radial-gradient(ellipse at 75% 25%,rgba(202,167,103,.19),transparent 53%),
    linear-gradient(145deg,#1c2a22,#151d19 70%,#28251c);
}
body.znj-marketplace .znj-network-media-mark {
  color:rgba(216,174,114,.46);
  font:500 clamp(38px,6vw,65px)/1 Georgia,serif;
  letter-spacing:.17em;
}
body.znj-marketplace .znj-network-media-label {
  position:absolute;
  left:11px;
  bottom:11px;
  max-width:calc(100% - 22px);
  padding:6px 9px;
  border:1px solid rgba(233,203,152,.27);
  border-radius:5px;
  background:rgba(14,20,16,.8);
  color:#e9d2ad;
  font:750 9px/1.25 Manrope,Arial,sans-serif;
  letter-spacing:.09em;
}
body.znj-marketplace .znj-network-detail .znj-r-hero {
  isolation:isolate;
}
body.znj-marketplace .znj-network-detail .znj-r-hero > .znj-r-hero-image {
  z-index:-1;
  object-position:center;
}
body.znj-marketplace .znj-network-hero-image-note {
  position:absolute;
  z-index:2;
  right:clamp(14px,4vw,60px);
  bottom:clamp(18px,3svh,36px);
  display:block;
  max-width:min(290px,70vw);
  padding:7px 10px;
  border-radius:5px;
  background:rgba(15,20,17,.79);
  color:#ead5b4;
  font:750 10px/1.4 Manrope,Arial,sans-serif;
  letter-spacing:.09em;
  text-align:right;
  pointer-events:none;
}
body.znj-marketplace .znj-network-detail .znj-r-card {
  min-width:0;
}
body.znj-marketplace .znj-network-detail .znj-r-card-body {
  min-width:0;
  overflow-wrap:anywhere;
}
body.znj-marketplace .znj-network-detail .znj-r-card .znj-r-card-action {
  min-height:40px;
  display:inline-flex;
  align-items:center;
}
@media(max-width:900px) {
  body.znj-marketplace .znj-network-listing-media {
    height:clamp(135px,21svh,174px);
  }
  body.znj-marketplace .znj-network-detail .znj-r-hero {
    padding-bottom:58px!important;
  }
  body.znj-marketplace .znj-network-hero-image-note {
    font-size:9px;
    max-width:78vw;
    bottom:calc(13px + env(safe-area-inset-bottom,0px));
  }
}


/* Natural-height editorial detail: long biographies must not be masked by
   a short sticky-sheet viewport. Keep the rail compact and let story text flow. */
body.znj-marketplace .znj-directory .znj-network-story-panel {
  box-sizing:border-box;
  display:grid;
  gap:clamp(9px,1.6svh,18px);
  width:min(100%,920px);
  padding:clamp(22px,3.5vw,46px);
  margin:clamp(10px,2svh,24px) 0;
  border:1px solid rgba(219,177,108,.29);
  border-radius:clamp(15px,2vw,24px);
  background:linear-gradient(145deg,#272a21,#1d261f);
  color:#eee2d1;
  overflow-wrap:anywhere;
  box-shadow:0 20px 60px rgba(0,0,0,.14);
}
body.znj-marketplace .znj-network-story-panel h3 {
  margin:0;
  color:#f8ebd3;
  font:400 clamp(27px,4vw,48px)/1.2 "Playfair Display",Georgia,serif;
}
body.znj-marketplace .znj-network-story-panel .znj-network-story-text {
  display:block!important;
  margin:0;
  color:#e0d3c2;
  font:400 clamp(13px,1.65vw,17px)/1.85 Manrope,Arial,sans-serif;
  white-space:pre-line;
  overflow:visible!important;
  -webkit-line-clamp:unset!important;
  max-width:75ch;
}
body.znj-marketplace .znj-directory > .znj-r-screen.znj-inner-tall {
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  scroll-margin-top:var(--znj-inner-head,90px);
}
body.znj-marketplace .znj-network-detail .znj-r-screen.znj-inner-tall > .znj-r-container {
  max-height:none!important;
  min-height:0!important;
  height:auto!important;
  padding-block:clamp(16px,3svh,34px);
}
@media(max-width:900px) {
  body.znj-marketplace .znj-directory .znj-network-story-panel {
    padding:clamp(18px,5vw,28px);
    margin-block:12px 20px;
  }
}
