:root { --billzness-charcoal: #1C1C1E; }

/* Keep the original wordmark face and use the requested yellow outline. */
.topbar .brand-assembly > .brand .brand-name {
  font-family: 'Orbitron', 'Oxanium', 'Space Grotesk', Arial, sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -.8px !important;
}
.topbar .brand-assembly > .brand .brand-main,
.topbar .brand-assembly > .brand .brand-accent {
  -webkit-text-stroke: 1.8px #f5cd48 !important;
  paint-order: stroke fill;
}

/* Keep the full navigation group beside the brand on every page. */
.topbar {
  justify-content: flex-start !important;
  gap: clamp(8px, 1.5vw, 18px) !important;
}
.topbar .nav-links {
  margin-left: 0 !important;
  margin-right: 0 !important;
  gap: clamp(6px, .8vw, 12px) !important;
}
@media (max-width: 620px) {
  .topbar {
    height: auto !important;
    min-height: 67px;
    padding: 7px 4% !important;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 6px !important;
  }
  .topbar .nav-links {
    flex: 1 1 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px !important;
  }
  .topbar .nav-links a { white-space: nowrap; }
}

/* Replace the old blue fields while preserving Billzness yellow, layout and imagery. */
.topbar .brand-assembly > .brand,
.hero,
.news-section,
.news-page-heading,
.news-mark,
.slide-placeholder,
.placeholder-thumb--featured,
.placeholder-thumb,
.listing-image,
.listing-placeholder-card:nth-child(4n+1) .placeholder-thumb,
.topbar .nav-links a[href="news.html"],
.topbar .nav-links a[href="#about"],
.topbar .nav-links a[href="index.html#about"] {
  background: var(--billzness-charcoal) !important;
}

.topbar .brand-assembly > .brand {
  border-color: #fff !important;
  box-shadow: 0 0 0 7px #1C1C1E40, 0 0 22px 7px #1C1C1E55, 0 5px 18px #0005 !important;
  filter: drop-shadow(0 0 7px #1C1C1E40) !important;
}

.hero-slider {
  border-color: var(--billzness-charcoal) !important;
  outline-color: #1C1C1E45 !important;
  box-shadow: 0 0 0 1px #1C1C1E60, 0 0 22px 10px #1C1C1E45, 0 18px 38px #0003 !important;
  filter: drop-shadow(0 0 8px #1C1C1E40) !important;
}

.placeholder-overlay {
  background: linear-gradient(90deg, rgba(28,28,30,.93) 0%, rgba(28,28,30,.78) 38%, rgba(28,28,30,.12) 75%, transparent 85%), linear-gradient(0deg, rgba(0,0,0,.2), transparent 48%) !important;
}

.topbar .nav-links a,
.topbar .nav-links a:hover,
.topbar .nav-links a:not([href="#listings"]):not([href="index.html#listings"]),
.topbar .nav-links a:not([href="#listings"]):not([href="index.html#listings"]):hover,
.topbar .nav-links a[href="news.html"],
.topbar .nav-links a[href="#about"],
.topbar .nav-links a[href="index.html#about"] {
  border-color: var(--billzness-charcoal) !important;
  outline-color: #1C1C1E55 !important;
  box-shadow: 0 2px 8px #0003 !important;
}

.topbar .nav-links a.active[href="#listings"],
.topbar .nav-links a[href="index.html#listings"],
.topbar .nav-links a.active[href="#listing-grid"],
.topbar .nav-links a[href="index.html#listing-grid"],
.topbar .nav-links a.active[href="marketplace.html"],
.topbar .nav-links a.active[href="#listings"]:hover,
.topbar .nav-links a[href="index.html#listings"]:hover,
.topbar .nav-links a.active[href="#listing-grid"]:hover,
.topbar .nav-links a[href="index.html#listing-grid"]:hover,
.topbar .nav-links a.active[href="marketplace.html"]:hover {
  border-color: var(--billzness-charcoal) !important;
  box-shadow: 0 0 0 2px #1C1C1E, 0 2px 8px #0003 !important;
}

.slider-actions .slide-arrow,
.slider-actions .slide-arrow:disabled,
.slide-arrow {
  background: var(--billzness-charcoal) !important;
  border-color: var(--accent-yellow) !important;
  box-shadow: 0 0 0 2px #1C1C1E, 0 2px 7px #0004 !important;
}

.about,
footer { background: var(--billzness-charcoal) !important; }
.section-head h2,
.section-head h2 .period {
  -webkit-text-stroke-color: var(--billzness-charcoal) !important;
  text-shadow: 0 1px 4px #0008 !important;
}

.dark-eyebrow,
.section-note,
.listing-category,
.searchbox,
.searchbox input::placeholder,
.filter:not(.active),
.empty-state p,
.no-results,
.section-bottom,
.placeholder-card-label { color: #303034 !important; }

.nav-links a[href="#listings"]::before,
.nav-links a[href="index.html#listings"]::before,
.nav-links a[href="#listing-grid"]::before,
.nav-links a[href="index.html#listing-grid"]::before { background: #1877f2; }

/* Emphasize the marketplace label and continue the 3D badge yellow beneath the words. */
.topbar .nav-links a[href="#listing-grid"],
.topbar .nav-links a[href="index.html#listing-grid"],
.topbar .nav-links a[href="marketplace.html"] {
  font-weight: 900 !important;
  -webkit-text-stroke: .7px currentColor !important;
  gap: 4px !important;
}
.facebook-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 0 !important;
}
.marketplace-label {
  text-decoration: underline;
  text-decoration-color: #f5cd48;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.marketplace-listing-section {
  min-height: calc(100vh - 170px);
  padding-top: 62px;
}
.marketplace-page .section-head h1 {
  color: #fff !important;
  -webkit-text-stroke: 2.6px #1C1C1E;
  -webkit-text-fill-color: #fff;
  paint-order: stroke fill;
  text-shadow: 0 1px 4px #0006;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 13px 0 0;
  font-weight: 700;
}

.listing-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 26px auto 0;
}
.listing-pagination[hidden] { display: none !important; }
.listing-pagination button {
  border: 1px solid #f5cd48;
  border-radius: 999px;
  background: #1C1C1E;
  color: #fff;
  padding: 9px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.listing-pagination button:disabled { opacity: .45; cursor: default; }
.listing-pagination span { min-width: 42px; text-align: center; font-size: 12px; font-weight: 800; }
@media (max-width: 620px) {
  .facebook-mark { flex-basis: 17px; width: 17px; height: 17px; font-size: 14px; }
  .listing-pagination { gap: 8px; }
  .listing-pagination button { padding: 8px 10px; font-size: 10px; }
}
/* Keep the mobile print visible above the dark hero wash, beside the copy. */
@media (max-width: 620px) {
  /* Let the completed dog move out to the right without getting clipped by the card. */
  .hero-slider,
  .hero-slide.slide-placeholder,
  .timelapse-scene { overflow: visible !important; }
  .slide-placeholder::after { display: none !important; }
  .timelapse-scene { z-index: auto !important; pointer-events: none; }
  .timelapse-background { z-index: 0; }
  /* Pan the printer nozzle right on phones, then keep both prints under it. */
  .timelapse-background { object-position: 59% center !important; }
  .poodle-build {
    left: 65% !important;
    top: 40% !important;
    height: 26% !important;
    z-index: 2 !important;
    animation: poodle-mobile-sequence 5s linear infinite !important;
    clip-path: none !important;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
  }
  .arktouros-build {
    display: block !important;
    visibility: visible !important;
    left: 67.8% !important;
    top: 36% !important;
    height: 34% !important;
    z-index: 2 !important;
    animation: arktouros-mobile-sequence 5s linear infinite !important;
    clip-path: none !important;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
  }
  /* Same printer nozzle center for both objects; resets and cycles with the prints. */
  .poodle-filament {
    left: 74.5% !important;
    /* Start exactly at the photographed nozzle tip, not above the nozzle. */
    top: 35% !important;
    width: 6% !important;
    height: 36%;
    z-index: 2 !important;
    transform-origin: 50% 0;
    animation: mobile-filament-sequence 5s linear infinite !important;
    will-change: height, opacity;
  }
  .poodle-filament path {
    stroke-width: 5px !important;
    filter: drop-shadow(0 0 2px rgba(255,255,255,.65)) !important;
  }
}

@keyframes poodle-mobile-sequence {
  0%, 2% { opacity: 1; transform: translateX(0) scaleY(.18); }
  7% { opacity: 1; transform: translateX(0) scaleY(.35); }
  12% { opacity: 1; transform: translateX(0) scaleY(.52); }
  18% { opacity: 1; transform: translateX(0) scaleY(.76); }
  23%, 32%, 33% { opacity: 1; transform: translateX(0) scaleY(1); }
  38% { opacity: 1; transform: translateX(25%) scaleY(1); }
  44%, 47% { opacity: 1; transform: translateX(80%) scaleY(1); }
  49%, 100% { opacity: 0; transform: translateX(80%) scaleY(1); }
}

@keyframes arktouros-mobile-sequence {
  0%, 49% { opacity: 0; transform: translateX(0) scaleY(.02); }
  51% { opacity: .55; transform: translateX(0) scaleY(.25); }
  54% { opacity: 1; transform: translateX(0) scaleY(.5); }
  58% { opacity: 1; transform: translateX(0) scaleY(.8); }
  62%, 98% { opacity: 1; transform: translateX(0) scaleY(1); }
  100% { opacity: 0; transform: translateX(0) scaleY(1); }
}

@keyframes mobile-filament-sequence {
  0%, 2% { opacity: 1; height: 28.5%; }
  7% { opacity: 1; height: 23.5%; }
  12% { opacity: 1; height: 17.5%; }
  18% { opacity: 1; height: 10.5%; }
  23%, 30% { opacity: 1; height: 5.5%; }
  31% { opacity: .65; height: 3.5%; }
  32%, 33%, 48% { opacity: 0; height: 1%; }
  38% { opacity: 0; height: 1%; }
  51% { opacity: .55; height: 31.5%; }
  54% { opacity: 1; height: 23.5%; }
  58% { opacity: 1; height: 13.5%; }
  62%, 98% { opacity: 1; height: 5.5%; }
  100% { opacity: 0; height: 1%; }
}

/* Keep the full marketplace area gray through the bottom of the listings. */
html:has(body.marketplace-page),
body.marketplace-page,
body.marketplace-page main,
body.marketplace-page .marketplace-listing-section {
  background: #a0a6aa !important;
}
body.marketplace-page { min-height: 100vh; }
body.marketplace-page main { min-height: calc(100vh - 155px); }

/* Marketplace cards: keep white inside the photo frame only, not below it. */
.marketplace-page .listing-card {
  background: transparent !important;
  border: 0 !important;
}
.marketplace-page .listing-info {
  background: transparent !important;
}


/* Compact Marketplace category chips. */
.marketplace-page .toolbar { display: block; }
.marketplace-page .filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.marketplace-page .filter { flex: 0 0 auto; padding: 7px 10px; font-size: 9px; font-weight: 700; }
@media (max-width: 620px) {
 .marketplace-page .filters { flex-wrap: nowrap; overflow-x: auto; padding: 0 0 8px; scrollbar-width: none; }
 .marketplace-page .filters::-webkit-scrollbar { display: none; }
 .marketplace-page .filter { padding: 7px 10px; font-size: 9px; }
}


/* Larger category chips directly below the Marketplace heading; search follows. */
.marketplace-page .toolbar { display: flex; flex-direction: column; align-items: flex-start; margin: 20px 0 22px; }
.marketplace-page .filters { order: 0; margin: 0 0 15px; gap: 8px; }
.marketplace-page .filter { padding: 10px 15px; font-size: 12px; }
.marketplace-page .searchbox { order: 1; margin: 0 0 3px; }
@media (max-width: 620px) {
 .marketplace-page .toolbar { margin: 18px 0 20px; }
 .marketplace-page .filters { gap: 7px; margin-bottom: 12px; }
 .marketplace-page .filter { padding: 9px 13px; font-size: 11px; }
}

