/* The same cover holds the fixed bar and the trip photograph. */
.cover {
  position: relative;
  padding-top: 72px;
  background: var(--gradient-cover);
  color: white;
}
.cover__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cover > .mast { position: relative; }
.cover > .top-bar {
  position: fixed;
  z-index: 100;
}
.top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
}
.top-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  flex: none;
  border-radius: var(--radius-control);
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
}
.top-bar__brand:hover { color: white; }
.top-bar__actions {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: auto;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-bar__actions button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex: none;
  padding: 0 6px;
  border-bottom: 3px solid transparent;
  color: white;
  font-weight: 600;
  white-space: nowrap;
}
.top-bar__actions button[aria-selected=true] { border-bottom-color: currentColor; }
.top-bar__actions button:hover { background: rgb(255 255 255 / .1); }
.top-bar :focus-visible { outline: 2px solid white; outline-offset: -3px; }
@media (max-width: 640px) {
  .cover { padding-top: 64px; }
  .top-bar { gap: 8px; }
  .top-bar__brand span, .top-bar__actions .ico { display: none; }
  .top-bar__actions { gap: 4px; }
  .top-bar__actions button { padding-inline: 4px; font-size: var(--fs-body); }
}

/* Byrite research home, option C. Each value follows the same scroll progress. */
:root {
  --top-bar-width: 1400px;
}

.top-bar {
  --island: 0;

  --island-inset: max(24px, round(down, calc((100% - var(--top-bar-width)) / 2), 1px));
  top: calc(12px * var(--island));
  left: calc(var(--island-inset) * var(--island));
  right: calc(var(--island-inset) * var(--island));
  height: calc(72px - 12px * var(--island));
  padding: 0 calc(40px - 32px * var(--island)) 0 calc(40px - 16px * var(--island));
  border: 1px solid rgb(255 255 255 / calc(0.14 * var(--island)));

  border-radius: calc(30px * var(--island));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / calc(0.12 * var(--island))),
    0 8px 24px rgb(from var(--accent-900) r g b / calc(0.28 * var(--island)));
  backdrop-filter: saturate(calc(1 + 0.8 * var(--island))) blur(calc(10px * var(--island)));
}

.top-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent-700) 62%, transparent),
    color-mix(in srgb, var(--accent-900) 66%, transparent)
  );
  opacity: var(--island);
}

.top-bar__logo {
  width: calc(32px - 4px * var(--island));
  height: calc(32px - 4px * var(--island));
  filter:
    drop-shadow(0 0 1px rgb(40 10 20 / calc(0.6 * var(--island))))
    drop-shadow(0 1px 6px rgb(40 10 20 / calc(0.55 * var(--island))));
}

@media (max-width: 640px) {
  .top-bar {
    --island-inset: 12px;
    top: calc(8px * var(--island));
    height: calc(64px - 8px * var(--island));
    padding: 0 calc(16px - 10px * var(--island)) 0 calc(16px + 2px * var(--island));
    border-radius: calc(28px * var(--island));
  }

  .top-bar__logo {
    width: calc(32px - 6px * var(--island));
    height: calc(32px - 6px * var(--island));
  }

}

.top-bar__actions .tab-short { display: none; }
@media(max-width:640px){
  .top-bar__actions .tab-name { display: none; }
  .top-bar__actions .tab-short { display: inline; }
}
