@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --plum: #241a20;
  --plum2: #2f2230;
  --bone: #f6efe3;
  --bone-dim: #cfc4ae;
  --gold: #d9a441;
  --gold-soft: #b08a3c;
  --hair: rgba(217, 164, 65, 0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--plum); color: var(--bone);
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif; line-height: 1.5;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 28px 16px 64px; }
.kicker {
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); font-size: 14px; margin: 0 0 6px;
}
h1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: clamp(38px, 6vw, 58px); line-height: 1.02; margin: 0 0 10px;
}
h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 32px; margin: 36px 0 12px; }
h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 23px; margin: 0 0 8px; }
.lede { font-size: 18px; max-width: 68ch; }
.howto { color: var(--bone-dim); max-width: 68ch; }
/* Long unbreakable tokens printed in body prose or lists (a bare filename,
   domain or URL written out as text) must wrap inside their paragraph or
   list item; without this, a 35+ character token can protrude past a phone
   viewport and be truncated instead of wrapping. 'anywhere' (not
   'break-word') so the break counts toward the block's min-content size.
   Fleet overflow fix, Nov 20, 2026. */
main p, main li { overflow-wrap: anywhere; }

/* ---- scene ---- */
.scene-section { margin-top: 18px; }
.scene-viewport {
  position: relative; overflow: hidden; border: 1px solid var(--hair);
  border-radius: 10px; background: #17101a; aspect-ratio: 4480 / 2240;
  max-height: 80vh; touch-action: none; cursor: grab;
}
.scene-viewport:active { cursor: grabbing; }
.world {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  transform-origin: 0 0; will-change: transform;
}
.world.animate { transition: transform 0.9s cubic-bezier(0.22, 0.8, 0.24, 1); }
.base-img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.tile-layer, .label-layer, .marker-layer { position: absolute; inset: 0; }
.tile-layer img { position: absolute; user-select: none; -webkit-user-drag: none; }
.label-layer { pointer-events: none; transition: opacity 0.3s; }
.world[data-deep="1"] ~ .x { }
.scene-label {
  position: absolute; transform: translate(-50%, -50%);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 500;
  letter-spacing: 3px; font-size: clamp(9px, 1.5vw, 15px); color: var(--bone);
  text-shadow: 0 1px 6px rgba(10, 5, 12, 0.9), 0 0 2px rgba(10, 5, 12, 0.9);
  white-space: nowrap; opacity: 0.92;
}
.scene-label.vert { transform: translate(-50%, -50%) rotate(-90deg); }
.scene-label.vert.r { transform: translate(-50%, -50%) rotate(90deg); }

.mk {
  position: absolute; border: 0; padding: 0; cursor: pointer;
  transform: translate(-50%, -50%) scale(var(--mks, 1));
  border-radius: 50%; background: rgba(246, 239, 227, 0.92);
  width: 11px; height: 11px; box-shadow: 0 0 0 2px rgba(23, 14, 20, 0.55);
  display: none;
}
.world[data-deep="1"] .mk { display: block; }
.mk.feat {
  display: block; width: 17px; height: 17px; background: var(--gold);
  box-shadow: 0 0 0 2px rgba(23, 14, 20, 0.65), 0 0 10px rgba(217, 164, 65, 0.55);
}
.mk.sel { background: #fff; box-shadow: 0 0 0 3px var(--gold), 0 0 14px rgba(217, 164, 65, 0.8); }
.mk:hover, .mk:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* Hit area is larger than the painted dot, but kept inside the tightest
   featured-pair spacing (about 16px on a desktop stage): at -10px the
   extension reached the neighbouring dot's centre in the R5/R6 and
   S15/S16 pairs and the neighbour stole the click. */
.mk::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
/* Directory dots only appear at deep zoom, where the dense bands pack
   neighbours 8-12px apart on screen; a smaller extension keeps a tap on
   the tapped stall there. */
.mk:not(.feat)::after { inset: -2px; }

.scene-controls { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; z-index: 5; }
.scene-controls button {
  font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: 15px;
  background: rgba(23, 14, 20, 0.82); color: var(--bone); border: 1px solid var(--hair);
  border-radius: 8px; min-width: 38px; height: 38px; padding: 0 10px; cursor: pointer;
}
.scene-controls button:hover { border-color: var(--gold); }

.legend { color: var(--bone-dim); font-size: 14px; margin-top: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; }
.dot.gold { background: var(--gold); }
.dot.plain { background: rgba(246, 239, 227, 0.92); }

/* ---- stall card (viewport-anchored overlay) ---- */
.stall-card {
  position: absolute; z-index: 6; right: 12px; top: 56px; width: min(330px, calc(100% - 24px));
  background: var(--plum2); border: 1px solid var(--hair); border-radius: 12px;
  overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  animation: cardIn 0.42s cubic-bezier(0.22, 0.8, 0.24, 1);
  max-height: calc(100% - 68px); overflow-y: auto; cursor: auto;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stall-card img.front { width: 100%; height: 128px; object-fit: cover; display: block; }
.stall-card .body { padding: 14px 16px 16px; }
.stall-card .card-meta { color: var(--gold); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 4px; }
.stall-card h3 { margin: 0 24px 6px 0; }
.stall-card p { margin: 0 0 8px; font-size: 15px; }
.stall-card .sells { font-weight: 600; }
.shop-links { list-style: none; margin: 10px 0 0; padding: 0; }
.shop-links li { margin: 0 0 8px; font-size: 14.5px; }
.shop-links .kind {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--plum); background: var(--gold);
  border-radius: 4px; padding: 1px 6px; margin-right: 7px; vertical-align: 1px;
}
.shop-links a { color: var(--bone); text-decoration-color: var(--gold-soft); }
.shop-links .small { color: var(--bone-dim); font-size: 13px; }
.card-close {
  position: absolute; right: 8px; top: 8px; z-index: 2; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--hair); background: rgba(23, 14, 20, 0.85);
  color: var(--bone); font-size: 16px; cursor: pointer;
}
@media (max-width: 640px) {
  .stall-card { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 58%; }
  .stall-card img.front { height: 96px; }
}

/* ---- directory ---- */
.dir-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
#dirSearch {
  flex: 1 1 240px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--hair);
  background: var(--plum2); color: var(--bone); font-size: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--hair); background: transparent; color: var(--bone-dim);
  border-radius: 999px; padding: 5px 11px; font-size: 13.5px; cursor: pointer;
}
.chip.on { background: var(--gold); color: var(--plum); border-color: var(--gold); font-weight: 700; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.dir-btn {
  width: 100%; text-align: left; background: var(--plum2); color: var(--bone);
  border: 1px solid rgba(217, 164, 65, 0.16); border-radius: 10px; padding: 10px 12px; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 1px;
}
.dir-btn:hover, .dir-btn.sel { border-color: var(--gold); }
.dir-btn .num {
  grid-row: span 2; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 21px;
  color: var(--gold); align-self: center;
}
.dir-btn .dname { font-weight: 700; font-size: 15.5px; }
.dir-btn .dsells { color: var(--bone-dim); font-size: 13.5px; }
.dir-btn .dcat { grid-column: 2; color: var(--bone-dim); font-size: 12.5px; letter-spacing: 0.6px; text-transform: uppercase; }
.dir-item.hide { display: none; }
.lodge-h { margin-top: 22px; }
.dir-list.unlocated .dname { font-weight: 700; }
.dir-list.unlocated li { background: var(--plum2); border: 1px solid rgba(217, 164, 65, 0.16); border-radius: 10px; padding: 10px 12px; }
.dir-list.unlocated .dsells { color: var(--bone-dim); font-size: 13.5px; margin-left: 8px; }

/* ---- funnel + full directory ---- */
.funnel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin-top: 36px; }
.card { background: var(--plum2); border: 1px solid rgba(217, 164, 65, 0.16); border-radius: 12px; padding: 18px; }
.btn {
  display: inline-block; background: var(--gold); color: var(--plum); font-weight: 700;
  padding: 10px 16px; border-radius: 8px; text-decoration: none; border: 0; cursor: pointer; font-size: 15.5px;
}
.email-row { display: flex; gap: 8px; flex-wrap: wrap; }
.email-row input {
  flex: 1 1 180px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--hair);
  background: var(--plum); color: var(--bone); font-size: 16px;
}
.disclosure { color: var(--bone-dim); font-size: 13.5px; margin-top: 14px; }
.full-dir { margin-top: 30px; background: var(--plum2); border: 1px solid rgba(217, 164, 65, 0.16); border-radius: 12px; padding: 14px 18px; }
.full-dir summary { cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 600; }
.full-dir article { border-top: 1px solid rgba(217, 164, 65, 0.14); padding: 14px 0 6px; }
.full-dir .card-meta { color: var(--gold); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 4px; }
.full-dir h3 { margin: 0 0 6px; }

/* --- Cluster furniture (site header/footer), transplanted for the published page. */


header.site {
  background: var(--ink-deep);
  color: var(--bone);
  border-bottom: 3px solid var(--brass);
}

header.site .wrap { padding-top: 18px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 34px; }

.brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--bone);
  text-decoration: none;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-top: 5px;
}

nav.main { margin-left: auto; padding-bottom: 3px; display: flex; gap: 22px; flex-wrap: wrap; }

nav.main a { color: var(--bone); text-decoration: none; font-size: 0.95rem; }

nav.main a:hover { color: var(--brass-bright); }


footer.site {
  background: var(--ink-deep);
  color: var(--bone);
  border-top: 3px solid var(--brass);
  margin-top: 20px;
}

footer.site .wrap { padding-top: 26px; padding-bottom: 30px; }

footer.site p { font-size: 0.92rem; color: #CFC7AC; max-width: 75ch; }

footer.site a { color: var(--brass-bright); }

.foot-brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  color: var(--bone) !important;
}


/* --- Cluster furniture added at publish (Nov 17, 2026 close-out):
   subnav, footer badge lockup, social row. Rules transplanted from
   christmas/styles.css so this page carries the full cluster dress. */
header.site .subwrap { padding-top: 0; padding-bottom: 12px; }

nav.sub { margin-left: auto; }

nav.sub a {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-bright);
  text-decoration: none;
  font-size: 0.72rem;
  margin-left: 20px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav.sub a:first-child { margin-left: 0; }

nav.sub a:hover { border-bottom-color: var(--brass-bright); color: #fff; }

.foot-id { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }

.foot-id .foot-brand { margin: 0; }

.foot-badge {
  width: 56px; height: 56px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--brass); background: var(--paper);
}

header.site .subwrap { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 34px; }
@media (max-width: 760px) {

  header.site .subwrap nav.sub { width: 100%; margin-left: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }

  header.site .subwrap nav.sub::-webkit-scrollbar { display: none; }

  header.site .subwrap nav.sub a { flex: none; }
}

.social-row { display: flex; gap: 16px; align-items: center; margin-top: 16px; }

.social-row a { display: inline-flex; align-items: center; line-height: 0; color: var(--brass-bright); }

.social-row svg { width: 20px; height: 20px; fill: currentColor; display: block; }
