/* ShanePack app header for SpaceX Explorer.
   Values copied from engineering/veg-watch/assets/style.css (.topbar / .tb-*), prefixed sph- so they
   never collide with the Explorer bundle's Tailwind classes. Offsets only apply once the bar is mounted. */
.sph-bar{position:fixed;inset:0 0 auto 0;z-index:1000;height:52px;display:flex;align-items:center;gap:12px;padding:0 16px;
  background:#070708eb;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:inset 0 -1px 0 #e8e6e11f;
  color:#e8e6e1;font-family:"Barlow","Segoe UI",system-ui,sans-serif;letter-spacing:.01em;line-height:normal;-webkit-font-smoothing:antialiased}
.sph-bar a{color:inherit;text-decoration:none}
.sph-bar :focus-visible{outline:2px solid #e8e6e1;outline-offset:2px;border-radius:4px}
.sph-mono{font-family:"IBM Plex Mono",ui-monospace,monospace;text-transform:uppercase}
.sph-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sph-left{display:flex;align-items:center;gap:14px;min-width:0;flex:0 1 auto}
.sph-nav{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.28em;color:#6b6e73;white-space:nowrap}
.sph-nav a{color:#8a8c90;transition:color .15s}
.sph-nav a:hover{color:#e8e6e1}
.sph-title{margin:0;font-family:"Barlow Condensed","Arial Narrow",sans-serif;font-weight:500;font-size:22px;line-height:1;letter-spacing:.18em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sph-right{display:flex;align-items:center;gap:8px;flex:none;margin-left:auto}
.sph-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 10px;border-radius:8px;border:0;background:#121214;color:#8a8c90;
  font-size:10px;letter-spacing:.12em;white-space:nowrap;box-shadow:0 0 0 1px #ffffff14;transition:color .15s,background .15s}
.sph-btn:hover{color:#e8e6e1;background:#1c1c20}
.sph-back-sr{display:none}
@media (max-width:1180px) and (min-width:760px){.sph-nav{display:none}}
@media (max-width:980px) and (min-width:760px){
  .sph-title{font-size:19px;letter-spacing:.12em}
  .sph-long{display:none}
  .sph-right .sph-btn{width:32px;padding:0}
}
@media (max-width:759px){
  .sph-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto;align-content:center;column-gap:8px;row-gap:4px;padding:0 8px 0 12px}
  .sph-left{grid-column:1;grid-row:1}
  .sph-nav{display:none}
  .sph-title{font-size:17px;letter-spacing:.12em}
  .sph-right{grid-column:2;grid-row:1}
  .sph-long{display:none}
  .sph-right .sph-btn{width:32px;padding:0}
}
@media (max-width:360px){.sph-title{font-size:15px;letter-spacing:.08em}}

/* ---- Explorer layout under the bar ---- */
body:has(.sph-bar) main > .touch-none,
body:has(.sph-bar) main > .z-10{top:52px}
/* the ShanePack link moved into the breadcrumb */
body:has(.sph-bar) main header a[href="/"]{display:none}
body:has(.sph-bar) main header > div:first-child > p:first-of-type{margin-top:0}
/* existing Explorer buttons restyled to the same outlined button style */
body:has(.sph-bar) main header button.h-8{border-radius:8px;padding:0 10px;box-shadow:0 0 0 1px #ffffff14}
body:has(.sph-bar) main header button.size-11{width:32px;height:32px;border-radius:8px;box-shadow:0 0 0 1px #ffffff14}
body:has(.sph-bar) main header button.size-11 svg{width:16px;height:16px}
