/* Additions of the generated guide (on top of style.css) */
.table-wrap { width: 100%; overflow-x: auto; margin: 0 0 1.2rem; }
.table-wrap table { margin: 0; }
.data-table td.num, .data-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table td.price { color: var(--teal-mid, #5fd3cb); font-family: 'Courier New', monospace; }
.data-table td.small { font-size: .8rem; color: var(--text-dim); }
.data-table th.sort { cursor: pointer; user-select: none; }
.data-table th.sort::after { content: ' ⇅'; opacity: .35; font-size: .75em; }
.data-table th[data-dir="asc"]::after { content: ' ▲'; opacity: .9; }
.data-table th[data-dir="desc"]::after { content: ' ▼'; opacity: .9; }
.data-table td small { color: var(--text-dim); }

.filter-bar { display: flex; gap: .75rem; margin: .5rem 0 .8rem; }
.filter-search-wrap { display: flex; align-items: center; gap: .5rem; flex: 1; max-width: 460px;
  background: var(--bg-deep, #060b14); border: 1px solid rgba(170,255,252,.2); padding: .4rem .7rem; }
.filter-search-wrap i { color: var(--text-dim); font-size: .8rem; }
.filter-search-wrap input, .page-search { background: none; border: none; outline: none; color: var(--text-primary); font: inherit; font-size: .88rem; width: 100%; }
.page-search { display: block; max-width: 460px; margin: .4rem 0 1rem; padding: .45rem .7rem; border: 1px solid rgba(170,255,252,.2); background: var(--bg-deep, #060b14); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: 1rem 0 1.4rem; }
.stat { border: 1px solid rgba(170,255,252,.14); background: var(--bg-panel, rgba(10,20,32,.8)); padding: .6rem .8rem; }
.stat-v { font-size: 1.15rem; font-weight: 700; color: var(--teal-bright, #aafffc); }
.stat-l { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }

.infocard { border-left: 3px solid rgba(170,255,252,.35); padding: .2rem 0 .2rem 1rem; margin: 1rem 0 1.4rem; color: var(--text-secondary, #b8c4d4); }
.infocard p { margin: .3rem 0; }
.hero-img { width: 100%; max-height: 360px; object-fit: cover; border: 1px solid rgba(170,255,252,.14); margin: .4rem 0 1rem; }
.note { font-size: .8rem; color: var(--text-dim); }
.tag { display: inline-block; padding: 0 .4rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; border: 1px solid; }
.tag-sell { color: #7be0a0; border-color: rgba(123,224,160,.4); }
.tag-buy { color: #f2c14e; border-color: rgba(242,193,78,.4); }
.live small.up { color: #ff8a7a; } .live small.down { color: #7be0a0; }
body:not(.has-live) th.price:last-child::after { content: ''; }
.dealers { border-bottom: 1px dotted var(--text-dim); cursor: help; }
.btn-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .82rem; font-weight: 700; }
.hero { padding: 1.4rem 1.6rem; margin-bottom: 1.4rem; position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem; font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid; }
.btn-primary { background: rgba(0,210,200,.16); color: var(--teal-bright, #aafffc); border-color: rgba(0,210,200,.5); }
.btn-secondary { color: var(--text-primary); border-color: rgba(170,255,252,.2); }
.btn-primary:hover, .btn-secondary:hover { background: rgba(0,210,200,.26); }
.faction { padding: .8rem 1.1rem; margin: 0 0 .9rem; position: relative; }
.faction h3 { margin-top: 0; }
.faction .ally { color: #7be0a0; font-size: .85rem; } .faction .enemy { color: #ff8a7a; font-size: .85rem; }
.faq { padding: .7rem 1rem; margin-bottom: .6rem; position: relative; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text-primary); }
.faq p { margin: .6rem 0 .2rem; }
.code-block { white-space: pre; overflow-x: auto; }

/* ── navmap ── */
.navmap { display: grid; grid-template-columns: 1fr 300px; grid-template-rows: auto 1fr; gap: 0;
  height: calc(100vh - 210px); min-height: 520px; border: 1px solid rgba(170,255,252,.18); background: #04070d; }
.nm-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .5rem .7rem; border-bottom: 1px solid rgba(170,255,252,.12); }
.nm-btn { background: rgba(0,210,200,.1); color: var(--teal-bright, #aafffc); border: 1px solid rgba(0,210,200,.35); padding: .3rem .7rem; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.nm-search { position: relative; flex: 1; min-width: 200px; max-width: 380px; display: flex; align-items: center; gap: .4rem; border: 1px solid rgba(170,255,252,.2); padding: .25rem .55rem; }
.nm-search input { background: none; border: none; outline: none; color: var(--text-primary); font: inherit; font-size: .85rem; width: 100%; }
.nm-results { display: none; position: absolute; left: -1px; right: -1px; top: 100%; z-index: 20; background: #08111c; border: 1px solid rgba(170,255,252,.25); max-height: 340px; overflow-y: auto; }
.nm-results a { display: block; padding: .35rem .6rem; text-decoration: none; border-bottom: 1px solid rgba(170,255,252,.06); }
.nm-results a small { display: block; color: var(--text-dim); font-size: .72rem; }
.nm-results a:hover { background: rgba(0,210,200,.1); }
.nm-toggle { font-size: .8rem; color: var(--text-dim); display: inline-flex; gap: .3rem; align-items: center; cursor: pointer; }
.nm-stage { position: relative; overflow: hidden; }
.nm-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; background: radial-gradient(ellipse at center, #0a1424 0%, #04070d 70%); }
.nm-svg:active { cursor: grabbing; }
.nm-svg .lbl { fill: #c8d4e4; paint-order: stroke; stroke: #04070d; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; font-family: 'Titillium Web', sans-serif; }
.nm-svg .lbl.u-lbl { fill: #dfe8f4; font-weight: 700; pointer-events: auto; cursor: pointer; }
.nm-svg .lbl.u-lbl:hover { fill: #aafffc; }
.nm-svg .lbl.lbl-base { fill: #aafffc; }
.nm-svg .lbl.lbl-gate { fill: #f2c14e; }
.nm-svg .lbl.grid-lbl { fill: #3d5b78; text-anchor: middle; }
.nm-svg .u-sys { cursor: pointer; stroke: #04070d; }
.nm-svg .u-sys:hover { stroke: #fff; }
.nm-tip { display: none; position: absolute; z-index: 10; pointer-events: none; max-width: 250px; background: rgba(6,12,22,.95); border: 1px solid rgba(170,255,252,.3); padding: .45rem .6rem; font-size: .8rem; line-height: 1.35; color: var(--text-primary); }
.nm-tip small { color: var(--text-dim); }
.nm-info { border-left: 1px solid rgba(170,255,252,.12); padding: .7rem .9rem; overflow-y: auto; font-size: .85rem; }
.nm-info h3 { margin: 0 0 .3rem; } .nm-info h4 { margin: .9rem 0 .3rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.nm-info ul { list-style: none; padding: 0; margin: 0; } .nm-info li { padding: .12rem 0; }
.nm-info small, .nm-info .muted { color: var(--text-dim); }
.nm-legend li { display: flex; align-items: center; gap: .45rem; }
.nm-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.nm-legend span.sq { border-radius: 0; } .nm-legend span.ring { background: none; border: 2px solid; width: 8px; height: 8px; }
.nm-legend span.ln { border-radius: 0; height: 3px; width: 14px; background: #3fa0d0; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7be0a0; margin-right: .35rem; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.sysmap-wrap { margin: .6rem 0 1.4rem; }
.sysmap { position: relative; height: 520px; border: 1px solid rgba(170,255,252,.18); background: #04070d; }
.model-view { height: 440px; border: 1px solid rgba(170,255,252,.18); background: radial-gradient(ellipse at center, #0e1b2c, #04070d 75%); margin: .4rem 0 1rem; position: relative; }

.nav-toggle { display: none; background: none; border: 1px solid rgba(170,255,252,.25); color: var(--text-primary); padding: .3rem .55rem; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; margin-left: auto; margin-right: .6rem; }
  body.side-open .sidebar { display: block; position: fixed; z-index: 50; top: 56px; left: 0; bottom: 0; width: 270px; overflow-y: auto; background: var(--bg-deep, #060b14); }
  .navmap { grid-template-columns: 1fr; grid-template-rows: auto 60vh auto; height: auto; }
  .nm-info { border-left: none; border-top: 1px solid rgba(170,255,252,.12); }
  .sysmap { height: 380px; }
}
.model-hint { position: absolute; left: .7rem; bottom: .5rem; font-size: .72rem; color: var(--text-dim); pointer-events: none; }
