/* EagleTagz demo: one top bar on every page, and a tab bar on phones (change #1, October 2026).
 * The bar itself is written into each page by _worker.js (current section marked); topbar.js
 * keeps the cart count and opens the More list.
 *
 * Before: three different top bars (the creator pages, the Store pages, Tracking) and none on the
 * Dashboard or a product page, so the Store had no way back to Micro, Camera or Load Media.
 * Now: the same six sections in the same order everywhere, the current one shown as a pill
 * (Mobbin: Artlist, Netflix), and the cart on the right. On phones the sections move to a bottom
 * tab bar of five tabs, Micro, Camera, Load, Market and More, with Copyright, Tracking and the
 * Dashboard under More (Mobbin: Garmin Connect, Air NZ, MyFitnessPal; Apple: one-word tab labels). */

/* each page's own top bar steps aside */
body > header:not(.etz-topbar) { display: none !important; }
body > nav.glassmorphism { display: none !important; } /* the product page's "Back to Marketplace" bar */

.etz-topbar {
  position: sticky;
  top: 0;
  z-index: 45; /* under the pages' own pop-ups (z-50) */
  background: rgba(11, 17, 23, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* the earlier logo rules for the old bars (header-logo.css, phone.css) also match this header */
html body header.etz-topbar { position: sticky; top: 0; z-index: 45; }
html body header.etz-topbar a.etz-tb-brand { margin: 0; padding: 0; min-width: 0; justify-content: flex-start; }

.etz-topbar, .etz-subtabs, .etz-tabbar, .etz-more {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.etz-tb-inner {
  max-width: 1440px;
  height: 56px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.etz-tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #f9fafb;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.etz-tb-brand img { width: 28px; height: 28px; object-fit: contain; } /* the emblem alone (#25) */
.etz-tb-brand .etz-tb-e { color: #f1c50e; } /* the name in the logo's two colors: Eagle gold, Tagz white */
.etz-tb-nav { flex: 1; display: flex; justify-content: center; gap: 4px; min-width: 0; }
.etz-tb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: #9ca3af;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.etz-tb-link:hover { color: #f9fafb; background: rgba(255, 255, 255, 0.06); }
.etz-tb-link[aria-current='page'] { color: #f9fafb; background: rgba(255, 255, 255, 0.1); }
.etz-tb-link[aria-current='page'] i { color: #f1c50e; }
.etz-tb-cart {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 18px;
  text-decoration: none;
}
.etz-tb-cart:hover, .etz-tb-cart[aria-current='page'] { background: rgba(255, 255, 255, 0.08); color: #fff; }
.etz-tb-badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #f1c50e;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.etz-tb-badge[hidden] { display: none; }
.etz-topbar a:focus-visible, .etz-subtabs a:focus-visible, .etz-tabbar .etz-tab:focus-visible, .etz-more a:focus-visible {
  outline: 2px solid #f1c50e;
  outline-offset: 2px;
}

/* a narrower computer or an iPad: smaller labels, no wordmark */
@media (max-width: 1023px) {
  .etz-tb-brand span { display: none; }
  .etz-tb-link { gap: 6px; padding: 0 10px; font-size: 13px; }
}
/* the Matrix (21 Oct), the production plan: a seventh section, in the bar from 1200 px, where all seven fit with
   Sign in and the cart; on narrower screens it is in the account menu, and on phones under More */
.etz-tb-link[href="/matrix"] { display: none; }
@media (min-width: 1200px) { .etz-tb-link[href="/matrix"] { display: inline-flex; } }
/* "Market" (the Store until 16 Oct) is a little longer: where the six sections, Sign in and the cart only
   just fit (an iPad held sideways, an iPad mini held upright), a little less room around each section */
@media (min-width: 1024px) and (max-width: 1099px) {
  .etz-tb-link { gap: 6px; padding: 0 10px; }
}
@media (min-width: 768px) and (max-width: 819px) {
  .etz-tb-link { gap: 4px; padding: 0 7px; }
}

/* ---------- a section's own pages: Market and Tracking ---------- */
.etz-subtabs {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 16px 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.etz-subtabs::-webkit-scrollbar { display: none; }
.etz-subtabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.etz-subtabs a:hover { color: #f9fafb; }
.etz-subtabs a[aria-current='page'] { color: #f9fafb; border-bottom-color: #f1c50e; }

/* ---------- phones: the tab bar ---------- */
.etz-tabbar { display: none; }
@media (max-width: 767px) {
  .etz-tb-inner { height: 52px; }
  .etz-tb-nav { display: none; }
  .etz-tb-brand { flex: 1; }
  .etz-tb-brand span { display: inline; }
  .etz-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 61; /* stays on top of the More list, so More closes it again */
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(11, 17, 23, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .etz-tab {
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #9ca3af;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  }
  .etz-tab i { font-size: 20px; }
  .etz-tab[aria-current='page'], .etz-tab.etz-on, .etz-tab[aria-expanded='true'] { color: #f1c50e; }
  /* while More is open, it is the only gold tab */
  .etz-tabbar:has(#etzMoreBtn[aria-expanded='true']) .etz-tab[aria-current='page'] { color: #9ca3af; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- More: the rest of the sections ---------- */
.etz-more { position: fixed; inset: 0; z-index: 60; }
.etz-more[hidden] { display: none; }
.etz-more-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.etz-more-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 80vh;
  overflow-y: auto;
  padding: 8px 8px calc(64px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: #121a22;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}
.etz-more-sheet h2 { margin: 0; padding: 12px 12px 8px; color: #f9fafb; font-size: 22px; font-weight: 700; }
.etz-more-sheet a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 10px;
  color: #f9fafb;
  font-size: 17px;
  text-decoration: none;
}
.etz-more-sheet a:hover { background: rgba(255, 255, 255, 0.05); }
.etz-more-sheet a[aria-current='page'] { background: rgba(255, 255, 255, 0.08); }
.etz-more-sheet .etz-ic { width: 24px; text-align: center; color: #9ca3af; font-size: 18px; }
.etz-more-sheet a[aria-current='page'] .etz-ic { color: #f1c50e; }
.etz-more-sheet .etz-chev { margin-left: auto; color: #6b7280; font-size: 13px; }

/* ---------- step bars: checkout (Cart, Review, Confirmed) and the creator path (Upload, Tag, Price,
   Publish); done steps in gold, the current one ringed (Mobbin: Etsy checkout, Linktree) ---------- */
.etz-steps { display: flex; max-width: 520px; margin: 0 auto 32px; padding: 0; list-style: none; }
.etz-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; }
.etz-step + .etz-step::before {
  content: '';
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.etz-step-done + .etz-step::before { background: #f1c50e; }
.etz-step a, .etz-step-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  color: inherit;
  text-decoration: none;
}
.etz-step-dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: #111827;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}
.etz-step-done .etz-step-dot { border-color: #f1c50e; background: #f1c50e; color: #111827; }
.etz-step-now .etz-step-dot { border-color: #f1c50e; color: #f9fafb; box-shadow: 0 0 0 4px rgba(241, 197, 14, 0.18); }
.etz-step-label { color: #9ca3af; font-size: 13px; font-weight: 600; }
.etz-step-now .etz-step-label, .etz-step-done .etz-step-label { color: #f9fafb; }
.etz-step a:hover .etz-step-label { text-decoration: underline; }
.etz-steps-creator { margin: 24px auto 0; padding: 0 16px; }
.etz-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.etz-steps a:focus-visible { outline: 2px solid #f1c50e; outline-offset: 2px; border-radius: 6px; }
