:root{--bg:#0f172a;--panel:#0b1220;--line:#1f2937;--fg:#e5e7eb;--mut:#9ca3af;--pill:#0b1220;--green:#22c55e;--card:#111827;--link:#60a5fa;color-scheme:dark}
*{box-sizing:border-box} html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--fg);font:14px/1.5 system-ui,Segoe UI,Arial,sans-serif}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Header: left-justified logo above banner; banner capped by height */
.header{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:16px;border-bottom:1px solid var(--line)}
.header img.brand{height:128px;width:auto;display:block}
.banner-wrap{width:100%;height:180px}
.header img.banner{width:100%;height:100%;object-fit:contain;object-position:left center;display:block}
@media (max-width:1199px){ .banner-wrap{height:150px} }
@media (max-width:767px){ .banner-wrap{height:110px} }

/* Social one-liner in a box */
.infobar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;background:var(--card);border:1px solid var(--line);border-left:4px solid #2563eb;border-radius:10px;margin:0 16px 8px 16px;padding:8px 12px;color:var(--fg);font-size:13px}
.infobar a{color:var(--link);text-decoration:none}
.infobar a:hover{text-decoration:underline}
.sep{opacity:.5}

.top{padding:16px;border-bottom:1px solid var(--line)}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px}
.card h3{margin:0 0 8px 0;font-size:15px}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.chip{display:inline-flex;align-items:center;gap:6px;background:#0a1220;border:1px solid var(--line);border-radius:10px;padding:6px 10px;color:var(--fg)}
.chip select,.chip input{background:transparent;border:0;outline:0;color:var(--fg);font:inherit;padding:0;margin:0;min-width:90px}
.chip select option{background:#111827;color:#e5e7eb}
.inline-hint{margin-left:8px;color:var(--mut);font-size:12px}

.toolbar{display:flex;gap:12px;align-items:center;padding:12px 16px}
.search{flex:1;display:flex}
.search input{width:100%;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:8px 10px;color:var(--fg)}

/* Scrollable list + helper slider */
.table-wrap{padding:0 12px 8px;overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;min-width:1000px;border-collapse:separate;border-spacing:0 10px}
thead th{font-weight:600;text-align:left;color:var(--mut);padding:0 12px;white-space:nowrap}
tbody tr{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}
tbody td{padding:12px;vertical-align:middle;white-space:nowrap}

.scrollbar-wrap{padding:0 12px 16px}
.scrollbar{width:100%;height:14px;appearance:none;background:transparent}
.scrollbar::-webkit-slider-runnable-track{height:8px;background:#1f2937;border-radius:999px}
.scrollbar::-webkit-slider-thumb{appearance:none;width:36px;height:14px;border-radius:8px;background:#374151;margin-top:-3px}
.scrollbar::-moz-range-track{height:8px;background:#1f2937;border-radius:999px}
.scrollbar::-moz-range-thumb{width:36px;height:14px;border-radius:8px;background:#374151;border:0}

.pill{background:var(--pill);border:1px solid var(--line);border-radius:999px;padding:2px 8px;font-size:12px;color:var(--fg)}
.status{display:inline-flex;align-items:center;gap:6px;color:var(--green);font-weight:600}
.dot{width:8px;height:8px;background:var(--green);border-radius:50%}
.btn{display:inline-block;padding:8px 12px;border-radius:10px;border:1px solid var(--line);text-decoration:none;color:var(--fg);background:var(--pill)}

.node{display:flex;align-items:center;gap:8px}
.logo-badge{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);display:block;object-fit:cover}
.node-info{display:flex;flex-direction:column;max-width:220px}
.node-title{font-weight:600}
.node-sub{margin-top:2px}
.node-link{color:var(--link);text-decoration:none}
.node-link:hover{text-decoration:underline}
/* Shrink "Node runner" column to content */
table th:first-child,
table td:first-child { width: 1%; }
/* Shrink "Fee/month per 100K alg(o)" column (8th) */
table th:nth-child(8),
table td:nth-child(8) { width: 1%; }
/* Logo row with Algorand wordmark to the right of our logo */
.logo-row{display:flex;align-items:center;gap:12px}
.header img.brand-algo{height:128px;width:auto;display:block}
/* Ensure both logos fit side-by-side on phones */
.logo-row{width:100%}
@media (max-width:767px){
  .header img.brand{height:64px}
  .header img.brand-algo{
    height:64px;
    max-width:calc(100% - 80px); /* space left after the round logo */
    object-fit:contain;          /* shrink to fit, no crop */
    flex:1;
  }
}
/* Availability colors */
.avail-ok{ color: var(--green); }
.avail-full{ color: #ef4444; } /* red */
