/* NEARBY AND COMPARABLES (Jake 2026-11-16): one box on the project page with two tabs, like Companies and
   contacts. Written by generate_pages.py (stack_box_html), linked from the page head; tmw-stackup.js runs the
   tabs. Every class is tsu- (nothing else uses it). BUMP STACK_CSS_V in generate_pages.py on any change. */
.tsu{position:relative;margin-top:30px;background:#161618;border-radius:22px;padding:22px 22px 24px;color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",sans-serif}
.tsu-h{margin:0 0 12px;font:800 12px/1.25 Inter,-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#fff}
.tsu-p{margin:0 0 14px;font:500 13.5px/1.5 Inter,-apple-system,sans-serif;color:rgba(255,255,255,.55)}

/* the two tabs: the Companies and contacts toggle */
.tsu-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:#0d0f0e;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);margin:0 0 14px;max-width:100%}
.tsu-tabs button{appearance:none;border:0;display:inline-flex;align-items:center;height:32px;padding:0 15px;border-radius:999px;background:none;color:rgba(255,255,255,.62);font:600 13px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,sans-serif;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
.tsu-tabs button span{margin-left:5px;font-weight:500;color:rgba(255,255,255,.38)}
.tsu-tabs button:hover{color:#fff}
.tsu-tabs button.on{background:rgba(255,255,255,.09);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.tsu-tabs button.on span{color:rgba(255,255,255,.5)}
.tsu-tabs button:focus-visible{outline:2px solid #C4B5FD;outline-offset:2px}
.tsu-pane[hidden]{display:none}

/* the cards */
.tsu-r{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tsu-r.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.tsu-c{display:flex;flex-direction:column;min-width:0;border-radius:18px;background:#0f1010;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);overflow:hidden;color:inherit;text-decoration:none;transition:box-shadow .18s,transform .18s}
.tsu-c:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.tsu-c:focus-visible{outline:2px solid #fff;outline-offset:2px}
.tsu-im{display:block;position:relative;aspect-ratio:16/10;background:#111}
.tsu-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tsu-im i{position:absolute;left:9px;top:9px;max-width:calc(100% - 18px);font:700 11px/1.6 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,sans-serif;font-style:normal;padding:1px 9px;border-radius:999px;background:rgba(0,0,0,.55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsu-tx{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;padding:12px 13px 13px}
.tsu-tx b{display:block;font:700 15px/1.3 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,sans-serif;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsu-rows{display:block;margin-bottom:10px}
.tsu-row{display:flex;justify-content:space-between;gap:10px;margin-top:6px;font:500 12.5px/1.5 Inter,-apple-system,sans-serif;color:#9AA39C}
.tsu-row span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsu-row em{flex:none;font-style:normal;color:#fff;font-weight:600}
.tsu-go{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.08);font:600 13px/1.4 -apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,sans-serif;color:#fff}
.tsu-go svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.tsu-c:hover .tsu-go svg{transform:translateX(2px)}

/* Nearby holds up to ten: a slider at every width, running to the box edge */
.tsu-r.tsu-many{display:flex;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 -22px;padding:0 22px 4px;scroll-snap-type:x mandatory;scroll-padding-left:22px}
.tsu-r.tsu-many::-webkit-scrollbar{display:none}
.tsu-r.tsu-many .tsu-c{flex:0 0 250px;scroll-snap-align:start}

/* every text link: bold white, green underline */
.tsu-more{margin:14px 0 0;font:500 14px/1.5 Inter,-apple-system,sans-serif}
.tsu-more a{color:#fff;font-weight:600;text-decoration:underline;text-decoration-color:#1FDF67;text-decoration-thickness:2px;text-underline-offset:3px}
.tsu-more a:hover{text-decoration-color:#42EB81}

/* phones: every row is a slider that runs to the box edge, like the page's other sliders */
@media (max-width:700px){
  .tsu{border-radius:20px;padding:18px 16px 20px}
  .tsu-r,.tsu-r.two,.tsu-r.tsu-many{display:flex;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 -16px;padding:0 16px 4px;scroll-snap-type:x mandatory;scroll-padding-left:16px}
  .tsu-r::-webkit-scrollbar{display:none}
  .tsu-c,.tsu-r.tsu-many .tsu-c{flex:0 0 232px;scroll-snap-align:start}
}
@media (prefers-reduced-motion:reduce){.tsu-c,.tsu-go svg,.tsu-tabs button{transition:none}}
