/* Page organization, v167 review. Presentation only; keep home commerce,
   private account screens, local data and all disclosure behavior unchanged. */
html[data-nf-page="marketplace"] {
  --nf-page-title:32px;
  --nf-page-gap:24px;
  --nf-card-padding:20px;
  --nf-card-radius:16px;
}
/* Scope the hierarchy to task headers rather than promotional home headings. */
html[data-nf-page="marketplace"] #app :is(.page-head,.pd-heading,.interest-page-head) {
  padding:12px 0 0;
  margin:0 0 var(--nf-page-gap);
  min-width:0;
}
html[data-nf-page="marketplace"] #app :is(.page-head,.pd-heading,.interest-page-head,.menu-heading,.fits-hub)>h1,
html[data-nf-page="marketplace"] #app .interest-page-head h1 {
  font-size:var(--nf-page-title);
  line-height:1.2;
  letter-spacing:-.7px;
  margin:8px 0 12px;
  overflow-wrap:anywhere;
}
html[data-nf-page="marketplace"] #app :is(.page-head,.pd-heading,.interest-page-head) p,
html[data-nf-page="marketplace"] #app .fits-intro {
  font-size:15px;
  line-height:1.6;
  margin:0;
  max-width:72ch;
  overflow-wrap:anywhere;
}
html[data-nf-page="marketplace"] #app .fits-intro { margin-bottom:var(--nf-page-gap) }
html[data-nf-page="marketplace"] #app :is(.draft-card,.help-card,.pd-summary,.pd-section) {
  padding:var(--nf-card-padding);
  border-radius:var(--nf-card-radius);
}
html[data-nf-page="marketplace"] #app :is(.fits-card,.menu-profile,.menu-section,.menu-more) {
  border-radius:var(--nf-card-radius);
}
html[data-nf-page="marketplace"] #app :is(.draft-grid,.pd-layout,.pd-information,.fits-cards) {
  gap:var(--nf-page-gap);
}
/* Keep long labels usable at narrow widths without shrinking their text. */
html[data-nf-page="marketplace"] #app :is(.page-head,.help-card,.draft-card,.pd-summary,.pd-section,.form-wrap) .button {
  min-height:44px;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:center;
}
@media(max-width:700px) {
  html[data-nf-page="marketplace"] {
    --nf-page-title:28px;
    --nf-page-gap:20px;
    --nf-card-padding:16px;
  }
}
@media(max-width:359px) {
  html[data-nf-page="marketplace"] { --nf-page-title:24px; --nf-page-gap:16px }
}

/* Shared content rhythm: remove stacked top padding, preserve readable cards. */
html[data-nf-page="marketplace"] body.is-internal main{padding-top:12px}
html[data-nf-page="marketplace"] #app :is(.page-head,.pd-heading,.interest-page-head){padding-top:0}
html[data-nf-page="marketplace"] #app .fits-hub{padding-top:0}
@media(max-width:700px){
 html[data-nf-page="marketplace"]{--nf-page-gap:16px}
 html[data-nf-page="marketplace"] body.is-internal main{padding-top:8px}
 html[data-nf-page="marketplace"] #app .fits-hub{padding-inline:0}
 html[data-nf-page="marketplace"] #app :is(.page-head,.pd-heading,.interest-page-head,.menu-heading,.fits-hub)>h1{margin-top:6px;margin-bottom:8px}
}
/* The original fixed-height white masthead must not spill behind compact titles. */
html[data-nf-page="marketplace"] body.is-internal::before{height:0}
