/* Marketplace homepage: existing API/search/media behavior is retained. */
body#home.home-marketplace {
  background: radial-gradient(ellipse at 10% 0%, #ec4f910a, transparent 42%), var(--bg, #101016);
}
body#home.home-marketplace :is(.home-community-strip, .home-marketplace-intro, .dd-home-search-shell, .dd-home-business-section, .home-marketplace-guide, .home-community-intro) { min-width: 0; }
body#home.home-marketplace .home-community-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 4px 20px;
  min-height: 56px; padding-block: 6px; border-bottom: 1px solid var(--line);
}
body#home.home-marketplace .home-community-strip strong { color: var(--dd-pink-bright,#f69fc2); font-size: .875rem; font-weight: 700; }
body#home.home-marketplace .home-community-strip > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
body#home.home-marketplace .home-community-strip a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text); font-size: .875rem; text-decoration: none; }
body#home.home-marketplace .home-community-strip .home-community-chat { color: var(--dd-pink-bright,#f69fc2); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
body#home.home-marketplace .home-marketplace-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px 22px; }
body#home.home-marketplace .home-marketplace-intro .eyebrow { margin: 0 0 10px; font-size: .6875rem; letter-spacing: .1em; }
body#home.home-marketplace #home-marketplace-title { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; }
body#home.home-marketplace #home-marketplace-title em { color: var(--dd-pink-bright,#f69fc2); font-family: Georgia, serif; font-weight: 400; }
body#home.home-marketplace .home-marketplace-intro > div > p:last-child { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
body#home.home-marketplace .home-marketplace-advertise { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: .875rem; font-weight: 650; text-decoration: none; }
body#home.home-marketplace .home-marketplace-advertise:hover { border-color: var(--dd-pink-bright,#f69fc2); color: var(--dd-pink-bright,#f69fc2); }
body#home.home-marketplace :is(.home-community-strip, .home-marketplace-intro, .home-marketplace-feed-heading, .home-marketplace-guide) a:focus-visible { outline: 3px solid var(--dd-pink-bright,#f69fc2); outline-offset: 3px; border-radius: 5px; }
body#home.home-marketplace .dd-home-search-shell { padding: 0; margin-block: 0 28px; }
body#home.home-marketplace #dd-home-search-form { padding: 18px !important; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-categories { margin-bottom: 14px !important; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-main { display: grid !important; grid-template-columns: minmax(150px, 1fr) minmax(210px, 1.2fr) minmax(180px, .7fr) !important; align-items: start; gap: 12px !important; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-main > * { grid-column: auto !important; grid-row: auto !important; order: 0; min-width: 0; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-main > .dd-home-ad-submit { align-self: start; min-height: 44px; width: 100%; margin-top: 26px; }
body#home.home-marketplace #dd-home-search-form :is(input:not([type=checkbox]):not([type=hidden]), select) { min-width: 0; max-width: 100%; font-size: 1rem; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-location-row { display: flex; gap: 8px; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-location-row > input { flex: 1 1 0; width: 0; min-width: 0; }
body#home.home-marketplace #dd-home-search-form .dd-home-location-button { flex: 0 0 44px; min-width: 44px; }
body#home.home-marketplace #dd-home-search-form .dd-home-filter-toggles { margin-top: 12px; gap: 8px; }
body#home.home-marketplace #dd-home-search-form .dd-home-more-filters { font-size: .8125rem !important; padding-inline: 10px !important; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 12px !important; gap: 8px 16px !important; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-source { max-width: 56ch; margin: 0; color: var(--muted); font-size: .6875rem; line-height: 1.5; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; margin-left: auto; }
body#home.home-marketplace #dd-home-search-form .dd-home-ad-actions a { min-height: 44px; display: inline-flex; align-items: center; }
body#home.home-marketplace #dd-home-search-form .dd-home-advanced-grid { align-items: start; }
body#home.home-marketplace #dd-home-search-form .dd-home-advanced-grid > .dd-home-ad-price { grid-column: span 2; min-width: 0; }
body#home.home-marketplace .dd-home-business-section { margin-block: 0 22px; }
body#home.home-marketplace .home-marketplace-feed-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 4px; }
body#home.home-marketplace .home-marketplace-feed-heading h2 { margin: 0; font-size: 1.375rem; line-height: 1.3; }
body#home.home-marketplace .home-marketplace-feed-heading a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--dd-pink-bright,#f69fc2); font-size: .8125rem; font-weight: 650; }
body#home.home-marketplace #dd-home-business-status { margin: 0 0 14px; color: var(--muted); font-size: .8125rem; }
body#home.home-marketplace #dd-home-business-more { min-height: 44px; }
body#home.home-marketplace .home-marketplace-guide { padding-block: 20px; border-top: 1px solid var(--line); }
body#home.home-marketplace .home-marketplace-guide h2 { margin: 0 0 12px; font-size: 1.25rem; }
body#home.home-marketplace .home-marketplace-guide > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
body#home.home-marketplace .home-marketplace-guide a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-size: .875rem; text-decoration: none; }
body#home.home-marketplace .home-marketplace-guide a:hover { border-color: var(--dd-pink-bright,#f69fc2); }
body#home.home-marketplace .home-community-intro { margin-top: 12px; padding-block: 28px; border-top: 1px solid var(--line); }
body#home.home-marketplace .home-community-intro #hero-title { margin: 0 0 12px; color: var(--text); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.15; }
body#home.home-marketplace .home-community-intro #hero-title em { color: var(--dd-pink-bright,#f69fc2); font-family: Georgia, serif; font-weight: 400; }
body#home.home-marketplace .home-community-intro .hero-lede { color: var(--muted); }
/* The home and chat share this template. New homepage content never enters the room layout. */
html.dd-chat-route body#home.home-marketplace :is(.home-community-strip,.home-marketplace-intro,.home-marketplace-guide),
body#home.home-marketplace.chat-active :is(.home-community-strip,.home-marketplace-intro,.home-marketplace-guide) { display: none !important; }
@media(max-width:900px) {
  body#home.home-marketplace #dd-home-search-form .dd-home-ad-main { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; }
  body#home.home-marketplace #dd-home-search-form .dd-home-ad-main > .dd-home-ad-submit { grid-column: 1 / -1 !important; margin-top: 0; }
}
@media(max-width:600px) {
  body#home.home-marketplace .home-community-strip { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding-block: 8px 2px; }
  body#home.home-marketplace .home-community-strip strong { font-size: .8125rem; }
  body#home.home-marketplace .home-community-strip > div { gap: 0 22px; }
  body#home.home-marketplace .home-community-strip a { font-size: .8125rem; }
  body#home.home-marketplace .home-marketplace-intro { align-items: flex-start; flex-direction: column; gap: 4px; padding-block: 20px 14px; }
  body#home.home-marketplace .home-marketplace-intro .eyebrow { font-size: .625rem; letter-spacing: .06em; margin-bottom: 8px; }
  body#home.home-marketplace #home-marketplace-title { margin-bottom: 8px; font-size: 2rem; }
  body#home.home-marketplace .home-marketplace-intro > div > p:last-child { font-size: .875rem; }
  body#home.home-marketplace .home-marketplace-advertise { min-height: 44px; padding: 4px 0; border: 0; color: var(--dd-pink-bright,#f69fc2); font-size: .8125rem; text-decoration: underline; text-underline-offset: 4px; }
  body#home.home-marketplace .dd-home-search-shell { margin-bottom: 20px; }
  body#home.home-marketplace #dd-home-search-form { padding: 12px !important; border-radius: 14px; }
  body#home.home-marketplace #dd-home-search-form .dd-home-ad-categories { gap: 2px !important; margin-bottom: 12px !important; padding-bottom: 8px !important; }
  body#home.home-marketplace #dd-home-search-form .dd-home-ad-categories button { padding-inline: 8px !important; font-size: .75rem; }
  body#home.home-marketplace #dd-home-search-form .dd-home-ad-main { gap: 10px !important; }
  body#home.home-marketplace #dd-home-search-form .dd-home-ad-main label > span,
  body#home.home-marketplace #dd-home-search-form .dd-home-ad-main .dd-home-ad-label { font-size: .75rem !important; }
  body#home.home-marketplace #dd-home-search-form .dd-home-more-filters { font-size: .75rem !important; padding-inline: 8px !important; }
  body#home.home-marketplace #dd-home-search-form .dd-home-ad-footer { align-items: flex-start; }
  body#home.home-marketplace #dd-home-search-form .dd-home-ad-source { flex-basis: 100%; }
  body#home.home-marketplace #dd-home-search-form .dd-home-advanced-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body#home.home-marketplace .home-marketplace-feed-heading h2 { font-size: 1.1875rem; }
  body#home.home-marketplace .home-marketplace-feed-heading a { min-height: 44px; font-size: .75rem; }
  body#home.home-marketplace .home-marketplace-guide > div { grid-template-columns: minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) {
  body#home.home-marketplace :is(.home-marketplace-advertise,.home-marketplace-guide a) { transition: none; }
}