/* Drill-down page additions: app links beside the section tabs */
.brand-link{text-decoration:none; color:inherit}
.applinks{display:flex; gap:2px; background:var(--sunken); border:1px solid var(--line); border-radius:7px; padding:2px}
.applinks a{padding:5px 12px; border-radius:5px; font-size:13px; font-weight:500; color:var(--muted); text-decoration:none; white-space:nowrap}
.applinks a:hover{color:var(--text); background:var(--surface)}
/* until the page's data is in and its tables are drawn, the space under the header stays empty, so nothing below
   the header jumps (tools/sync.py DATA_JS adds wi-wait, assets/bridge.js takes it off) */
html.wi-wait body > .wrap{visibility:hidden; min-height:100vh}
/* flying rows (bridge.js): a row that leaves fades out over the list, clipped to it */
.tablewrap{position:relative; overflow-y:hidden}
.flyghost{position:absolute; min-width:0; margin:0; table-layout:fixed; pointer-events:none; z-index:0}
/* phones (assets/core/screen.js SCREEN.phone): the drill-down's category tabs and filter rows wrap, and the two strips
   of app links slide sideways inside themselves, so the page itself never runs off the side */
@media (max-width:640px){
  .seg, .row, .tagwrap{flex-wrap:wrap}
  .controls > *, .row > *, .kwwrap > *, .tagwrap > *{min-width:0}
  .applinks, .navgrp{overflow-x:auto; max-width:100%; min-width:0; scrollbar-width:none; flex-wrap:nowrap}
  .applinks::-webkit-scrollbar, .navgrp::-webkit-scrollbar{display:none}
  .navgrp > .applinks{overflow:visible; max-width:none}   /* the whole group slides, not each part of it */
}
.ggg-note{max-width:1200px; margin:24px auto 32px; padding:0 16px; text-align:center; font-size:12px; color:var(--faint)}
.ggg-note a{color:var(--muted)}
/* the second nav group: Craft, Currency, then the page's own Passive tree, Uniques, Gems, then Atlas, as one pill */
.navgrp{display:flex; align-items:center; gap:2px}
.navgrp > .applinks, .navgrp > .nav{border:0; background:none; box-shadow:none; padding:0; margin:0}
#nav{display:flex}
#nav button[data-k="tree"]{order:1} #nav button[data-k="uniques"]{order:2} #nav button[data-k="gems"]{order:3}
.applinks + .navgrp{margin-left:8px}
/* the respec calculator under the passive tree (explore.html respec) */
.respec{margin:16px 0 0; padding:14px 16px; max-width:640px; border:1px solid var(--line); border-radius:10px; background:var(--surface)}
.respec h3{display:inline; font-family:var(--disp); font-size:15px; margin:0}
.respec summary{cursor:pointer; display:flex; align-items:center; gap:10px; list-style:none}
.respec summary::-webkit-details-marker{display:none}
.respec summary::before{content:"\25B8"; color:var(--accent); font-size:12px; transition:transform var(--dur-1, 120ms)}
.respec[open] summary::before{transform:rotate(90deg)}
.respec[open] summary{margin-bottom:10px}
.respec-in{display:flex; flex-wrap:wrap; gap:10px 18px; font-size:13px; color:var(--muted)}
.respec-in label{display:flex; align-items:center; gap:8px}
.respec-in input{width:78px; padding:5px 8px; border:1px solid var(--line); border-radius:6px; background:var(--sunken); color:var(--text); font:inherit}
.respec-out{margin:10px 0 4px; font-size:14px}

