/* Quantum website: the one header and tab bar every page uses (home, the data pages, account, privacy, terms).
   Made by quantum's server (accounts.py site_header / site_subtabs / site_tabbar); index.html has the same markup written out.
   The sections are the app's rail (same order, same icons). Desktop: logo, the sections, Search, your account, and under
   them the section's sub-tabs (the app's tabs). Phones and small tablets: logo, Search and account on top, the sections
   in a bar at the bottom of the screen, where thumbs reach. Everything is scoped to .qtop / .qbar / .qsub / .qs so the
   pages' own styles can't change it. Search (www/search.js) is styled at the end. */
.qtop{position:sticky;top:0;z-index:50;background:#070b14eb;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid #1d2a44;padding-top:env(safe-area-inset-top);font-family:"Segoe UI",Inter,system-ui,sans-serif}
.qtop *,.qbar *,.qsub *,.qs *{box-sizing:border-box}
.qtop svg.ofc,.qbar svg.ofc,.qsub svg.ofc,.qs svg.ofc{fill:currentColor;stroke:none}
.qtop .qin{max-width:1560px;margin:0 auto;padding:0 20px;height:60px;display:flex;align-items:center;gap:14px}
.qtop .qbrand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none}
.qtop .qbrand .word{height:15px;width:auto;display:block}
.qtop .qtabs{display:flex;align-items:stretch;gap:0;margin-left:auto;height:100%}
.qtop .qtabs a{position:relative;display:flex;align-items:center;gap:7px;padding:0 10px;color:#a9b8d0;text-decoration:none;font-size:14px;font-weight:500;
  white-space:nowrap;transition:color .15s}
.qtop .qtabs a svg{width:17px;height:17px;flex:none;opacity:.75;transition:opacity .15s,color .15s}
.qtop .qtabs a:hover{color:#fff}
.qtop .qtabs a:hover svg{opacity:1}
.qtop .qtabs a::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:2px;border-radius:2px;background:transparent;transition:background .15s}
.qtop .qtabs a:hover::after{background:#2a3a57}
.qtop .qtabs a.on{color:#fff}
.qtop .qtabs a.on svg{opacity:1;color:#5aa8ff}
.qtop .qtabs a.on::after{background:linear-gradient(90deg,#8fe3ff,#2f86ff)}
.qtop .qtabs a:focus-visible{outline:2px solid #2f86ff;outline-offset:-4px;border-radius:8px}

/* Search: looks like a box on desktop, an icon on phones */
.qtop .qfind{flex:none;display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 8px 0 11px;border-radius:999px;border:1px solid #2a3a57;
  background:#0c1322;color:#8ea0bf;font:inherit;font-size:13.5px;cursor:pointer;white-space:nowrap;box-shadow:none;margin:0;width:auto}
.qtop .qfind svg{width:16px;height:16px;flex:none}
.qtop .qfind kbd{font:600 11px/1 "Segoe UI",system-ui,sans-serif;padding:3px 6px;border-radius:5px;border:1px solid #2a3a57;color:#8ea0bf;background:#0f1a30}
.qtop .qfind:hover,.qtop .qfind:focus-visible{border-color:#2f86ff;color:#e6edf7;outline:none}

/* your wish list: a heart with how many things are on it */
.qtop .qwish{flex:none;position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid #2a3a57;background:#0c1322;color:#8ea0bf}
.qtop .qwish svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
.qtop .qwish:hover,.qtop .qwish:focus-visible,.qtop .qwish.on{border-color:#ff6b9a;color:#ff8fb3;outline:none}
.qtop .qwish.on svg{fill:currentColor}
.qtop .qwish b{position:absolute;top:-5px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#ff4f87;color:#fff;font:700 10.5px/18px "Segoe UI",system-ui,sans-serif;text-align:center}
.qtop .qwish b[hidden]{display:none}

/* your account, in the corner */
.qtop .qme-slot{flex:none;display:flex;align-items:center}
.qtop .qme-slot:empty{display:none}
.qtop .qme{flex:none;position:relative}
.qtop .qsignin{display:inline-flex;align-items:center;padding:7px 15px;border-radius:999px;border:1px solid #2a3a57;color:#e6edf7;
  text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
.qtop .qsignin:hover{border-color:#2f86ff;background:#121d33}
.qtop .qme>summary{list-style:none;cursor:pointer;user-select:none;display:flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;
  border:1px solid #2a3a57;border-radius:999px;background:#0f1a30;color:#e6edf7;font-size:14px}
.qtop .qme>summary::-webkit-details-marker{display:none}
.qtop .qme>summary:hover,.qtop .qme[open]>summary{border-color:#2f86ff}
.qtop .qme .qnm{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qtop .qme .car{width:12px;height:12px;opacity:.7}
.qtop .qav{width:28px;height:28px;border-radius:50%;flex:none;overflow:hidden;display:grid;place-items:center;font-size:11.5px;font-weight:700;
  background:linear-gradient(135deg,#13254a,#1d3b74);border:1px solid #2f5fa8;color:#9cc8ff}
.qtop .qav img{width:100%;height:100%;object-fit:cover;display:block}
.qtop .qpop{position:absolute;right:0;top:calc(100% + 10px);width:260px;max-height:calc(100vh - 90px);overflow-y:auto;background:#0d1628;
  border:1px solid #2a3a57;border-radius:14px;box-shadow:0 18px 40px #000b;padding:6px;text-align:left}
.qtop .qwho{display:flex;gap:10px;align-items:center;padding:10px 10px 12px;border-bottom:1px solid #1d2a44;margin-bottom:6px}
.qtop .qwho .qav{width:40px;height:40px;font-size:14px}
.qtop .qwho div{min-width:0}
.qtop .qwho b{display:block;font-size:14px;color:#e6edf7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qtop .qwho div span{display:block;color:#8ea0bf;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qtop .qpop a,.qtop .qpop button{all:unset;box-sizing:border-box;display:flex;width:100%;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;
  color:#c3d0e4;font-size:14px;cursor:pointer}
.qtop .qpop a:hover,.qtop .qpop button:hover,.qtop .qpop a:focus-visible,.qtop .qpop button:focus-visible{background:#121d33;color:#fff}
.qtop .qpop svg{width:16px;height:16px;flex:none;opacity:.8}
.qtop .qpop form{margin:6px 0 0;padding-top:6px;border-top:1px solid #1d2a44}

/* sub-tabs: the pages of the section you're in (the app's tabs) */
.qsub{max-width:1100px;margin:14px auto 0;padding:0 20px;width:100%}
.qsub .qsin{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px}
.qsub .qsin::-webkit-scrollbar{display:none}
.qsub a{flex:none;display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border-radius:999px;border:1px solid #1d2a44;background:#0c1322;
  color:#a9b8d0;text-decoration:none;font-size:14px;white-space:nowrap;transition:border-color .15s,color .15s,background .15s}
.qsub a svg{width:16px;height:16px;flex:none;opacity:.85}
.qsub a:hover{border-color:#2a3a57;color:#fff}
.qsub a.on{border-color:#2f86ff;background:#13254a;color:#fff}
.qsub a.on svg{color:#7fb6ff;opacity:1}
.qsub a:focus-visible{outline:2px solid #2f86ff;outline-offset:2px}

/* the bottom tab bar (phones and small tablets) */
.qbar{display:none}
.qbar .qb{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:58px;color:#8ea0bf;
  text-decoration:none;font-size:11px;font-weight:600;letter-spacing:.01em;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.qbar .qb svg{width:22px;height:22px}
.qbar .qb.on{color:#fff}
.qbar .qb.on svg{color:#5aa8ff;filter:drop-shadow(0 0 6px #2f86ff88)}
.qbar details{flex:1;min-width:0;display:flex}
.qbar details>summary{width:100%}
.qbar details>summary::-webkit-details-marker{display:none}
.qbar details[open]>summary{color:#fff}
.qbar .qsheet{position:fixed;left:10px;right:10px;bottom:calc(68px + env(safe-area-inset-bottom));max-height:calc(100vh - 150px);overflow-y:auto;
  background:#0d1628;border:1px solid #2a3a57;border-radius:16px;box-shadow:0 -10px 40px #000c;padding:8px 10px 10px;display:grid;gap:12px}
.qbar .qsg>b{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#7f93b5;padding:6px 4px 6px}
.qbar .qsg>b svg{width:15px;height:15px;color:#5aa8ff}
.qbar .qsg>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.qbar .qsheet a{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;background:#0f1a30;border:1px solid #1d2a44;color:#dbe6f7;
  text-decoration:none;font-size:14.5px;min-width:0}
.qbar .qsheet a svg{width:18px;height:18px;flex:none;color:#7fb6ff}
.qbar .qsheet a.on{border-color:#2f86ff;background:#13254a}

@media (max-width:1559px){
  .qtop .qtabs a svg{display:none}
  .qtop .qtabs a{padding:0 9px}
  .qtop .qtabs a::after{left:9px;right:9px}
  .qtop .qme .qnm,.qtop .qme .car{display:none}.qtop .qme>summary{padding:3px}
}
@media (max-width:1359px){
  .qtop .qfind .qft,.qtop .qfind kbd{display:none}
  .qtop .qfind{width:36px;padding:0;justify-content:center}
  .qtop .qin{gap:10px}
  .qtop .qtabs a{padding:0 7px;font-size:13.5px}
  .qtop .qtabs a::after{left:7px;right:7px}
}
@media (max-width:1239px){
  .qtop .qbrand .word{display:none}
  .qtop .qtabs a{padding:0 6px;font-size:13px}
  .qtop .qtabs a::after{left:6px;right:6px}
}
@media (max-width:1059px){
  .qtop .qtabs{display:none}
  .qtop .qbrand .word{display:block}
  .qtop .qfind{margin-left:auto}
  .qsub{margin-top:10px;padding:0 14px}
  .qbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#0a1020f2;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-top:1px solid #1d2a44;padding:0 4px env(safe-area-inset-bottom);font-family:"Segoe UI",Inter,system-ui,sans-serif}
  body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
  #q-toast{bottom:calc(80px + env(safe-area-inset-bottom))!important}
}
@media (max-width:420px){.qtop .qin{padding:0 14px;gap:10px}.qtop .qbrand .word{height:12px}}

/* Search (www/search.js): one box for every ship, part, commodity, piece of gear and page */
.qs{position:fixed;inset:0;z-index:100;display:flex;justify-content:center;align-items:flex-start;padding:min(12vh,90px) 12px 12px;
  background:#03060dcc;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);font-family:"Segoe UI",Inter,system-ui,sans-serif}
.qs[hidden]{display:none}
.qs .qsp{width:min(640px,100%);max-height:100%;display:flex;flex-direction:column;background:#0d1628;border:1px solid #2a3a57;border-radius:16px;
  box-shadow:0 24px 60px #000d;overflow:hidden}
.qs .qsf{display:flex;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid #1d2a44}
.qs .qsf svg{width:19px;height:19px;color:#5aa8ff;flex:none}
.qs input{flex:1;min-width:0;height:54px;border:0;outline:0;background:transparent;color:#e6edf7;font:inherit;font-size:17px}
.qs input::placeholder{color:#5e7194}
.qs .qsx{all:unset;cursor:pointer;font-size:12px;color:#8ea0bf;padding:5px 8px;border:1px solid #2a3a57;border-radius:6px}
.qs .qsx:hover{color:#fff;border-color:#2f86ff}
.qs .qsr{overflow-y:auto;padding:6px;min-height:60px}
.qs .qsh{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#5e7194;padding:10px 10px 4px}
.qs .qsr a{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:10px;color:#dbe6f7;text-decoration:none;font-size:14.5px}
.qs .qsr a .qi{width:32px;height:32px;flex:none;border-radius:8px;display:grid;place-items:center;background:#0f1a30;border:1px solid #1d2a44;color:#7fb6ff}
.qs .qsr a .qi svg{width:17px;height:17px}
.qs .qsr a .qt{min-width:0;flex:1}
.qs .qsr a b{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qs .qsr a small{display:block;color:#8ea0bf;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qs .qsr a mark{background:none;color:#8fe3ff}
.qs .qsr a.on,.qs .qsr a:hover{background:#13254a}
.qs .qsr a.on .qi{border-color:#2f86ff}
.qs .qsr .qsc{display:flex;flex-wrap:wrap;gap:6px;padding:4px 8px 8px}
.qs .qsr .qsc a{display:inline-flex;gap:7px;padding:6px 11px;border-radius:999px;border:1px solid #1d2a44;background:#0f1a30;font-size:13.5px}
.qs .qsr .qsc a svg{width:15px;height:15px;color:#7fb6ff}
.qs .qsr .qsc a.on,.qs .qsr .qsc a:hover{border-color:#2f86ff;background:#13254a}
.qs .qse{padding:22px 14px;color:#8ea0bf;font-size:14px;text-align:center}
.qs .qsk{display:flex;gap:14px;padding:9px 14px;border-top:1px solid #1d2a44;color:#5e7194;font-size:12px}
.qs .qsk kbd{font:600 11px/1 "Segoe UI",system-ui,sans-serif;padding:2px 5px;border-radius:4px;border:1px solid #2a3a57;color:#8ea0bf}
@media (max-width:640px){.qs{padding:0}.qs .qsp{border-radius:0;height:100%;width:100%;border:0}.qs .qsk{display:none}}
