/* Top Builders on the homepage (founder 2026-11-05: show the top 4 on the leaderboard with their best
   website). Pairs with top-builders-line.js. Dark, matches the .vt-card showcase language; all classes are
   prefixed tbx- so nothing collides with the rest of the page. Reuses .vt-sec / .section-head / .eyebrow for
   the section frame. */
#top-builders { --tbx-gold:#fbbf24; --tbx-silver:#cbd5e1; --tbx-bronze:#d08b5b; --tbx-up:#34d399; --tbx-down:#fb7185; }
/* full container width (founder 2026-11-06) */
.tbx-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px; margin:0 auto; }
.tbx-c { position:relative; background:#05080f; border:1px solid color-mix(in srgb,var(--accent,#3b82f6) 45%,transparent);
  border-radius:12px; overflow:hidden; box-shadow:0 30px 70px rgba(0,0,0,.45); display:flex; flex-direction:column;
  transition:box-shadow .25s, transform .25s; }
.tbx-c:hover { box-shadow:0 40px 90px rgba(0,0,0,.55),0 0 0 1px #22d3ee; transform:translateY(-3px); }
.tbx-c.tbx-r1 { border-color:color-mix(in srgb,var(--tbx-gold) 55%,transparent); box-shadow:0 30px 70px rgba(0,0,0,.5),0 0 46px rgba(251,191,36,.13); }

.tbx-who { display:grid; grid-template-columns:auto auto 1fr auto; align-items:start; gap:13px; padding:16px 16px 13px; }
.tbx-rank { display:flex; flex-direction:column; align-items:center; gap:5px; padding-top:4px; }
.tbx-medal { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; font:800 .9rem/1 var(--font-head,system-ui); color:#06121f; }
.tbx-r1 .tbx-medal{ background:linear-gradient(150deg,#ffe08a,#f6a609); }
.tbx-r2 .tbx-medal{ background:linear-gradient(150deg,#eef2f7,#aab4c4); }
.tbx-r3 .tbx-medal{ background:linear-gradient(150deg,#e8b48a,#b9743f); }
.tbx-r4 .tbx-medal{ background:linear-gradient(150deg,#5b6b86,#39465c); color:#dce6f5; }
.tbx-move { display:inline-flex; align-items:center; gap:2px; font:800 .64rem/1 var(--font-head,system-ui); border-radius:999px;
  height:0; padding:0 6px; opacity:0; overflow:hidden; transition:opacity .3s, height .3s; }
.tbx-move svg{ width:11px; height:11px; }
.tbx-move.tbx-show{ opacity:1; height:auto; padding:2px 6px; }
.tbx-move.tbx-u{ color:#062e22; background:var(--tbx-up); } .tbx-move.tbx-d{ color:#2e0a12; background:var(--tbx-down); }
.tbx-move.tbx-d svg{ transform:rotate(180deg); } .tbx-move.tbx-n{ color:#06223a; background:#7cc4ff; }

.tbx-av { width:54px; height:54px; border-radius:50%; overflow:hidden; flex:none; display:grid; place-items:center;
  font:800 .95rem/1 var(--font-head,system-ui); color:#eaf2ff; background:linear-gradient(150deg,#1e40af,#0e7490);
  box-shadow:0 0 0 2px #05080f,0 0 0 4px rgba(148,163,184,.5); }
.tbx-r1 .tbx-av{ box-shadow:0 0 0 2px #05080f,0 0 0 4px var(--tbx-gold),0 0 18px rgba(251,191,36,.4); }
.tbx-r2 .tbx-av{ box-shadow:0 0 0 2px #05080f,0 0 0 4px var(--tbx-silver); }
.tbx-r3 .tbx-av{ box-shadow:0 0 0 2px #05080f,0 0 0 4px var(--tbx-bronze); }
.tbx-av img{ width:100%; height:100%; object-fit:cover; }
.tbx-idn{ min-width:0; }
.tbx-nm{ display:flex; align-items:center; gap:7px; font:800 1.1rem/1.15 var(--font-head,system-ui); letter-spacing:-.015em; color:#fff; }
.tbx-nm .tbx-fl{ font-size:1.05rem; }   /* an <img.taa-flag> from flags.js: 1.333em wide, 1em tall */
.tbx-sub{ display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin-top:6px; color:#94a3b8; font-size:.86rem; }
.tbx-sub b{ color:#fff; font-weight:700; font-variant-numeric:tabular-nums; }
/* Each separator belongs to the item it precedes. A " · " text node between two flex items is a flex
   item itself, and on a phone it wrapped onto a line of its own, leaving an orphan dot under the name. */
.tbx-sub .tbx-dot::before{ content:"\00b7"; margin-right:5px; color:#64748b; font-weight:700; }
.tbx-crown{ display:inline-flex; align-items:center; gap:4px; color:#ffd98a; font-weight:700; }
.tbx-crown svg{ width:13px; height:13px; }
.tbx-hire{ color:#8ff0cb; font-weight:700; }
.tbx-pts{ text-align:right; line-height:1; flex:none; }
.tbx-pts b{ display:block; font:800 1.34rem/1 var(--font-head,system-ui); letter-spacing:-.02em; color:#fff; font-variant-numeric:tabular-nums; }
.tbx-pts small{ font-size:.62rem; letter-spacing:.2em; text-transform:uppercase; color:#94a3b8; font-weight:700; }

.tbx-site{ margin:2px 14px 0; border:1px solid rgba(255,255,255,.08); border-radius:9px; overflow:hidden; background:#05080f; }
.tbx-vbar{ display:flex; align-items:center; gap:10px; padding:10px 12px; background:#070b14; border-bottom:1px solid rgba(255,255,255,.06); }
.tbx-dots{ display:flex; gap:5px; } .tbx-dots i{ width:9px; height:9px; border-radius:50%; background:#ef4444; }
.tbx-dots i:nth-child(2){ background:#f59e0b; } .tbx-dots i:nth-child(3){ background:#22c55e; }
.tbx-url{ flex:1; min-width:0; font:600 .74rem ui-monospace,Menlo,monospace; color:#cbd5e1; background:#0b1220;
  border:1px solid rgba(255,255,255,.08); border-radius:4px; padding:6px 9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tbx-lv{ font:800 .62rem/1 var(--font-head,system-ui); letter-spacing:.12em; color:#22c55e; border:1px solid #166534;
  background:rgba(34,197,94,.1); padding:6px 8px; border-radius:4px; }
.tbx-lv::before{ content:"\25CF "; }
.tbx-shot{ display:block; width:100%; aspect-ratio:1200/630; object-fit:cover; background:#0b1220; }
.tbx-stats{ display:grid; grid-template-columns:repeat(3,1fr); background:#000; }
.tbx-stats div{ text-align:center; padding:13px 6px; border-left:1px solid rgba(255,255,255,.1); }
.tbx-stats div:first-child{ border-left:0; }
.tbx-stats b{ display:block; color:#fff; font:800 1.16rem/1.1 var(--font-head,system-ui); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.tbx-stats .tbx-v b::before{ content:""; display:inline-block; width:7px; height:7px; border-radius:50%; background:#22c55e; margin-right:7px; vertical-align:middle; }
.tbx-stats small{ display:block; margin-top:3px; color:#94a3b8; font-size:.6rem; letter-spacing:.18em; text-transform:uppercase; font-weight:700; }

.tbx-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px 16px; }
.tbx-snm{ font:800 1.05rem/1.2 var(--font-head,system-ui); letter-spacing:-.02em; color:#fff; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tbx-go{ display:inline-flex; align-items:center; gap:6px; font:700 .9rem/1 var(--font-head,system-ui); color:#7cc4ff; text-decoration:none; border-bottom:1px solid currentColor; padding-bottom:1px; flex:none; }
.tbx-go:hover{ color:#a9dcff; }
.tbx-c:focus-visible,.tbx-go:focus-visible{ outline:2px solid #22d3ee; outline-offset:2px; }

/* section controls: platform stat, tabs, live pill */
.tbx-stat{ text-align:center; color:#94a3b8; margin:12px 0 0; font-size:.95rem; }
.tbx-stat b{ color:#fff; }
.tbx-bar{ display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; margin:20px 0 34px; }
.tbx-tabs{ display:inline-flex; gap:4px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:999px; padding:4px; }
.tbx-tab{ font:700 .84rem/1 var(--font-head,system-ui); color:#9fb0c8; background:transparent; border:0; border-radius:999px; padding:9px 17px; cursor:pointer; }
.tbx-tab.is-on{ color:#06223a; background:linear-gradient(180deg,#5cc6ff,#2b9bff); }
.tbx-tab:focus-visible{ outline:2px solid #22d3ee; outline-offset:2px; }
.tbx-live{ display:inline-flex; align-items:center; gap:7px; font:700 .8rem/1 var(--font-head,system-ui); letter-spacing:.04em; color:#cfe4ff; }
.tbx-live i{ width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 0 rgba(34,197,94,.6); animation:tbxpulse 2.4s infinite; }
@keyframes tbxpulse{ 0%{ box-shadow:0 0 0 0 rgba(34,197,94,.5); } 70%{ box-shadow:0 0 0 7px rgba(34,197,94,0); } 100%{ box-shadow:0 0 0 0 rgba(34,197,94,0); } }
/* momentum in the sub line */
.tbx-momo{ color:#34d399; font-weight:700; display:inline-flex; align-items:center; gap:2px; }
.tbx-momo svg{ width:12px; height:12px; }
/* footer actions: love + visit */
.tbx-acts{ display:inline-flex; align-items:center; gap:12px; flex:none; }
.tbx-love{ display:inline-flex; align-items:center; gap:5px; font:700 .86rem/1 var(--font-head,system-ui); color:#f3a9c4; background:transparent; border:1px solid rgba(243,169,196,.32); border-radius:999px; padding:6px 10px; cursor:pointer; }
.tbx-love svg{ width:14px; height:14px; fill:none; stroke:currentColor; }
.tbx-love.is-on{ color:#fff; background:rgba(244,63,94,.9); border-color:transparent; }
.tbx-love.is-on svg{ fill:currentColor; }
.tbx-love:focus-visible{ outline:2px solid #22d3ee; outline-offset:2px; }
/* peek-inside overlay on the cover */
.tbx-peek{ display:block; width:100%; padding:0; border:0; background:none; cursor:pointer; position:relative; }
.tbx-peek::after{ content:"\2922  Peek inside"; position:absolute; right:10px; bottom:10px; font:700 .72rem var(--font-head,system-ui); color:#fff; background:rgba(5,8,15,.72); border:1px solid rgba(255,255,255,.22); border-radius:999px; padding:6px 11px; opacity:0; transition:opacity .2s; pointer-events:none; }
.tbx-peek:hover::after,.tbx-peek:focus-visible::after{ opacity:1; }
.tbx-peek:focus-visible{ outline:2px solid #22d3ee; outline-offset:-2px; }
/* CTA */
.tbx-cta{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; margin:46px auto 0; }
.tbx-btn{ font:700 .98rem/1 var(--font-head,system-ui); color:#06223a; background:linear-gradient(180deg,#5cc6ff,#2b9bff); border-radius:8px; padding:16px 28px; text-decoration:none; box-shadow:0 12px 30px rgba(43,155,255,.28); }
.tbx-btn.ghost{ color:#cfe4ff; background:transparent; border:1px solid color-mix(in srgb,var(--accent,#3b82f6) 45%,transparent); box-shadow:none; }
.tbx-btn:hover{ filter:brightness(1.06); }
.tbx-btn:focus-visible{ outline:2px solid #22d3ee; outline-offset:2px; }
/* peek lightbox */
.tbx-modal{ position:fixed; inset:0; z-index:9999; display:grid; place-items:center; background:rgba(2,6,23,.82); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); padding:22px; }
.tbx-modal[hidden]{ display:none; }
.tbx-modal-box{ width:min(1000px,100%); height:min(80vh,780px); background:#05080f; border:1px solid rgba(255,255,255,.14); border-radius:14px; overflow:hidden; box-shadow:0 40px 120px rgba(0,0,0,.6); display:flex; flex-direction:column; }
.tbx-modal-hd{ display:flex; align-items:center; gap:12px; padding:11px 15px; border-bottom:1px solid rgba(255,255,255,.08); }
.tbx-modal-t{ flex:1; min-width:0; color:#fff; font:800 1rem var(--font-head,system-ui); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tbx-modal-open{ color:#7cc4ff; font:700 .86rem var(--font-head,system-ui); text-decoration:none; white-space:nowrap; }
.tbx-modal-x{ background:transparent; border:0; color:#cbd5e1; font-size:1.1rem; cursor:pointer; line-height:1; padding:4px 6px; }
.tbx-frame{ flex:1; display:flex; }
.tbx-frame iframe{ flex:1; width:100%; border:0; background:#fff; }

@media (max-width:720px){ .tbx-grid{ grid-template-columns:1fr; } .tbx-cta{ flex-direction:column; } .tbx-btn{ text-align:center; } }
/* Phone (README: check every change at 360-390px). The header row is four columns, and on a narrow screen
   the name/meta column was squeezed to ~70px: "mary onyi" ran into "14,595" and "The 400 · 402 websites"
   wrapped over seven lines. Give that column a real minimum, shrink what sits either side of it, and let a
   long name end in an ellipsis rather than stack up. */
@media (max-width:560px){
  .tbx-who{ grid-template-columns:auto auto minmax(0,1fr) auto; gap:10px; padding:14px 12px 12px; }
  .tbx-rank{ padding-top:2px; }
  .tbx-medal{ width:28px; height:28px; font-size:.8rem; border-radius:8px; }
  .tbx-av{ width:44px; height:44px; font-size:.85rem; }
  .tbx-nm{ display:block; font-size:1rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .tbx-nm .tbx-fl{ margin-right:5px; }
  /* At this width the meta always takes two lines, so the separator would lead the second one like a
     bullet. Drop it and let the gap do the separating. */
  .tbx-sub{ margin-top:5px; font-size:.78rem; row-gap:2px; column-gap:9px; }
  .tbx-sub .tbx-dot::before{ content:none; }
  .tbx-crown svg{ width:12px; height:12px; }
  .tbx-pts b{ font-size:1.1rem; }
  .tbx-pts small{ font-size:.56rem; letter-spacing:.14em; }
}
@media (prefers-reduced-motion:reduce){ .tbx-c,.tbx-move{ transition:none; } }
