/* business casual: the header on every page (built by BIZ.chrome() in js/site.js) */
.topbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  align-self: stretch; width: 100%;
  position: sticky; top: 0; z-index: 50;   /* stays at the top while scrolling, like the player bar at the bottom */
  /* on wide screens the logo and menu sit at the edges of the page content (main: 975px wide, 1.5rem inside) */
  padding: 1rem calc(max(0px, (100% - 975px) / 2) + 1.5rem); border-bottom: 5px solid #2b9e9b;
  background: #fff; color: #000;
  font-family: Helvetica, Arial, sans-serif; text-transform: lowercase; line-height: 1.5;
}
.topbar a { color: #000; transition: color .2s; }
.topbar a:hover { color: #2b9e9b; }
.topbar .brand { color: #2b9e9b; }
.topbar .brand:hover { color: #000; }
.topbar .brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.1rem; }
/* the logo (assets/bizlogo.svg) is drawn in the link colour: teal, black on hover */
.bizlogo, .topbar .brand .logo { display: block; width: 40px; height: 40px; flex: none; background: currentColor;
  -webkit-mask: url(/assets/bizlogo.svg) center / contain no-repeat; mask: url(/assets/bizlogo.svg) center / contain no-repeat; }
.topbar nav { display: flex; gap: .4rem 1.25rem; flex-wrap: wrap; margin-left: auto; font-size: .85rem; }
.topbar nav a { text-decoration: none; }
.topbar nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: #2b9e9b; }

/* the player bar (BIZ.play in js/site.js): Bandcamp's standard player, fixed to the bottom, lined up with the content like the header */
.playbar { position: fixed; left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); bottom: 0; z-index: 50; background: #fff; color: #000; border-top: 5px solid #2b9e9b;
  padding: .5rem calc(max(0px, (100% - 975px) / 2) + 1.5rem);
  /* clear the iPhone home bar (0 everywhere else) */
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
  font-family: Helvetica, Arial, sans-serif; text-transform: lowercase; line-height: 1.5; }
.playbar-in { display: flex; align-items: center; gap: 1rem; }
/* only the controls row shows: the 120px player is shifted up so its title / artist line sits above the crop */
/* (and 1px off each side, where the player draws its border) */
.playbar-crop { flex: 1; min-width: 0; max-width: 698px; height: 60px; overflow: hidden; }
.playbar iframe { width: calc(100% + 2px); height: 120px; margin: -52px 0 0 -1px; border: 0; display: block; }
/* the cover: the release page link, the same size as Bandcamp's play button (46px, 9px down in the crop) */
.playbar-art { flex: none; align-self: flex-start; width: 46px; height: 46px; margin: 9px -.5rem 0 0; background: #e9f1f1; }
.playbar-art img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.playbar-art:hover img { opacity: .75; }
.playbar-close { flex: none; margin-left: auto; width: 34px; height: 34px; border: 2px solid #2b9e9b; background: transparent; color: #000;
  font: 1.2rem/1 Helvetica, Arial, sans-serif; cursor: pointer; }
.playbar-close:hover { background: #2b9e9b; color: #fff; }
body.has-player { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }   /* so the footer isn't hidden behind the bar */

@media (max-width: 420px) {
  .topbar { padding: .9rem 1rem; }      /* matches main's 1rem sides on phones */
  .topbar nav { gap: .4rem 1rem; }
  .playbar { padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom, 0px)); }
  .playbar-in { gap: .6rem; }
}
