/* The shared header (assets/shellnav.js) on Matches, Stats, Collection and
   Decks. The page's own .topnav rule places the bar (absolute over a hero, or
   in the flow) and sets its padding and ground; this file is everything inside
   it, the same on all three pages. */

.shellnav { display: flex; align-items: center; gap: 26px; height: var(--nav, 56px); }
.shellnav a { text-decoration: none; }

.shellnav .sn-brand { display: flex; flex: none; align-items: center; gap: 10px; font: 700 18px/1 var(--f-title, "Barlow Condensed", sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light, #F0E6D2); }
.shellnav .sn-brand img { width: 28px; height: 28px; border-radius: 7px; }
.shellnav .sn-brand span, .shellnav .sn-tabs a span { padding-top: 3px; }

.shellnav .sn-tabs { display: flex; gap: 26px; align-items: center; }
.shellnav .sn-tabs[hidden] { display: none; }
.shellnav .sn-tabs a { position: relative; display: flex; flex: none; align-items: center; height: 40px; font: 700 20px/1 var(--f-title, "Barlow Condensed", sans-serif); color: var(--tab-rest, #7D7A72); white-space: nowrap; }
.shellnav .sn-tabs a:hover { color: var(--ink2, #CFC8B8); }
.shellnav .sn-tabs a[aria-current] { color: var(--gold-light, #F0E6D2); }
.shellnav .sn-tabs a[aria-current]::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 2px; background: linear-gradient(90deg, #785A28, #F0E6D2, #785A28); }
.shellnav .sn-tabs a[aria-current]::before { content: ""; position: absolute; left: 50%; bottom: -2.5px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: var(--gold-light, #F0E6D2); }

.shellnav .sn-who { margin-left: auto; display: flex; align-items: center; gap: 18px; min-width: 0; font: 700 13px/1 var(--f-read, "Nunito", sans-serif); color: var(--mute, #A09B8C); }
.shellnav .sn-who[hidden] { display: none; }
.shellnav #who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.shellnav .sn-live { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.shellnav .sn-live i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--arcane, #0AC8B9); }
.shellnav .sn-out, .shellnav .sn-get { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font: 700 15px/1 var(--f-read, "Nunito", sans-serif); color: var(--control, #B9B3A6); cursor: pointer; white-space: nowrap; }
.shellnav .sn-out:hover, .shellnav .sn-get:hover { color: var(--ink, #F0E6D2); }
.shellnav .sn-get { margin-left: auto; }
.shellnav .sn-get[hidden] { display: none; }

/* Guests (?demo): the corner says Guest, and Sign in is a gold word; on a
   phone it replaces the avatar menu. */
.shellnav.sn-guest .sn-live i { background: var(--gold, #C8AA6E); }
.shellnav.sn-guest .sn-live { color: var(--gold-light, #F0E6D2); }
.shellnav.sn-guest #who-name { display: none; }
.shellnav.sn-guest .sn-out { color: var(--gold, #C8AA6E); }
.shellnav.sn-guest .sn-out:hover { color: var(--gold-light, #F0E6D2); }
.shellnav .sn-in { display: none; margin: 0; padding: 9px 14px; border: 1px solid rgba(200,170,110,.55); border-radius: 0; background: none;
  font: 700 15px/1 var(--f-read, "Nunito", sans-serif); color: var(--gold-light, #F0E6D2); cursor: pointer; white-space: nowrap; }
/* The way in for guests, under the sign-in buttons. */
.guest-try { display: block; margin: 14px auto 0; width: fit-content; font: 700 15px/1.3 var(--f-read, "Nunito", sans-serif); color: var(--gold, #C8AA6E);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(200,170,110,.45); }
.guest-try:hover { color: var(--gold-light, #F0E6D2); }

/* The account menu (phones): Account and the email, Workbench, Sign out. */
.shellnav .sn-acct { display: none; position: relative; }
.shellnav .sn-acct > summary { list-style: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(200,170,110,.28); color: var(--control, #B9B3A6); cursor: pointer; }
.shellnav .sn-acct > summary::-webkit-details-marker { display: none; }
.shellnav .sn-acct[open] > summary { color: var(--gold-light, #F0E6D2); border-color: rgba(200,170,110,.7); }
.shellnav .sn-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; display: flex; flex-direction: column; gap: 12px; min-width: 200px; max-width: calc(100vw - 32px);
  padding: 14px 16px; background: linear-gradient(180deg, #0c1a33, #050c18); border: 1px solid rgba(200,170,110,.28); box-shadow: 0 18px 40px -18px #000; }
.shellnav .sn-menu-h { font: 700 20px/1 var(--f-title, "Barlow Condensed", sans-serif); padding-top: 2px; color: var(--ink, #F0E6D2); }
.shellnav .sn-menu span { display: block; margin-top: -6px; font: 700 13px/1.2 var(--f-read, "Nunito", sans-serif); color: var(--mute, #A09B8C); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shellnav .sn-menu a, .shellnav .sn-menu button { display: block; width: 100%; margin: 0; padding: 10px 0 0; border: 0; border-top: 1px solid rgba(240,230,210,.09); border-radius: 0; background: none;
  text-align: left; font: 700 15px/1 var(--f-read, "Nunito", sans-serif); color: var(--control, #B9B3A6); cursor: pointer; }
.shellnav .sn-menu a:hover, .shellnav .sn-menu button:hover { color: var(--ink, #F0E6D2); }

@media (max-width: 899px) {
  .shellnav { gap: 18px; }
  .shellnav .sn-brand span, .shellnav .sn-live, .shellnav #who-name { display: none; }
}
/* Phone: the icon at full size, the tabs scroll with a fade on the right
   while more hide there, and the account is one avatar button. */
@media (max-width: 599px) {
  .shellnav { gap: 12px; }
  .shellnav .sn-tabs { flex: 1 1 auto; min-width: 0; gap: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; padding: 0 2px 4px; margin-bottom: -4px; }
  .shellnav .sn-tabs::-webkit-scrollbar { display: none; }
  .shellnav .sn-tabs.more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .shellnav .sn-tabs a { font-size: 18px; }
  .shellnav .sn-who { flex: none; margin-left: 0; gap: 0; }
  .shellnav .sn-out { display: none; }
  .shellnav .sn-acct { display: block; }
  .shellnav.sn-guest .sn-acct { display: none; }
  .shellnav.sn-guest .sn-in { display: block; }
}
/* Under 480 px Workbench lives in the account menu, so the four tabs fit. */
@media (max-width: 479px) {
  .shellnav .sn-tabs { gap: 14px; }
  .shellnav .sn-tabs a { font-size: 17px; }
  .shellnav .sn-tabs .tab-wb:not([aria-current]) { display: none; }
}
