/* The carousel masthead, shared by the standalone site pages. */
header.site-masthead {
  display: grid;
  grid-template-columns: clamp(80px, 8vw, 120px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px 35px;
  padding: 20px clamp(25px, 4vw, 70px);
  max-width: none;
  box-sizing: border-box;
  font: 400 16px/normal "Myriad Pro", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: #dbe6ec;
  border: 0;
}
html[data-theme] header.site-masthead.ns-head, header.site-masthead {
  background: #071721;
  box-shadow: none;
}
header.site-masthead.fs-header {
  background: linear-gradient(to bottom, #071721e6, transparent);
}
html[data-theme] .mercury-page header.site-masthead { background: #160b12; }
html[data-theme="dark"] .mercury-page header.site-masthead { background: #10080d; }
.site-masthead > .fs-brand {
  grid-area: 1 / 1 / 3 / 2;
  justify-self: start;
  z-index: 1;
}
.site-masthead .fs-brand img { display: block; width: 55px; height: 64px; object-fit: contain; }
.site-masthead > nav, .site-masthead .fs-header-actions {
  display: flex;
  grid-column: 2 / -1;
  justify-self: start;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 0;
  width: max-content;
  max-width: 100%;
}
.site-masthead > nav { grid-row: 2; gap: clamp(18px, 2vw, 34px); }
.site-masthead .fs-header-actions { grid-area: 1 / 2; gap: 25px; }
.site-masthead a, .site-masthead button { box-sizing: border-box; }
.site-masthead a { text-decoration: none; }
.site-masthead > nav > a, .site-masthead .fs-header-actions > a {
  display: block;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .015em;
  white-space: nowrap;
  color: #dbe6ec;
  transition: color .2s;
}
.site-masthead .fs-header-actions > a { font-size: 11px; color: #a6bcc9; }
.site-masthead > nav > .fs-mercury-nav {
  color: #e4a4bb;
  text-align: center;
  line-height: 1.05;
  letter-spacing: .09em;
  font-size: 14px;
  background: none;
  border: 0;
  border-left: 1px solid #ffffff26;
  border-radius: 0;
  padding: 0 0 0 25px;
}
.site-masthead .fs-mercury-nav small { display: block; font-size: 9px; font-weight: 400; margin-top: 4px; }
.site-masthead nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-masthead a:hover, .site-masthead button:hover { color: white; }
.site-masthead :is(a, button):focus-visible { outline: 2px solid #51b4da; outline-offset: 4px; }
.site-masthead .fs-search, .site-masthead #fs-theme {
  display: grid;
  place-items: center;
  cursor: pointer;
  background: none;
  color: #bbcfda;
  padding: 3px;
  border: 0;
  font-family: inherit;
}
.site-masthead .fs-search svg { display: block; width: 18px; height: 18px; }
.site-masthead #fs-theme {
  grid-area: 1 / 3;
  justify-self: end;
  border: 1px solid #7398ae66;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  padding: 0;
}
header #fs-theme {
  position: relative;
  padding: 0;
  font-size: 0;
  line-height: 1;
}
header #fs-theme::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(to right, currentColor 50%, transparent 50%);
  pointer-events: none;
}
/* Standalone STREAM demos reuse site.js for the pending menu actions. */
header.site-masthead:not(.ns-head):not(.fs-header) ~ .catalogue-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
}
@media (max-width: 1100px) {
  header.site-masthead { padding-inline: 28px; column-gap: 20px; }
  .site-masthead > nav { gap: 17px; }
  .site-masthead > nav > a { font-size: 10px; }
  .site-masthead > nav > .fs-mercury-nav { font-size: 12px; padding-left: 17px; }
}
@media (max-width: 760px) {
  header.site-masthead { grid-template-columns: clamp(48px, 15vw, 64px) minmax(0, 1fr) auto; gap: 10px 15px; padding: 16px 22px; }
  .site-masthead > .fs-brand { grid-row: 1; }
  .site-masthead .fs-brand img { width: 36px; height: 44px; }
  .site-masthead .fs-header-actions { gap: 8px 16px; }
  .site-masthead .fs-header-actions > a, .site-masthead > nav > a { font-size: 9px; }
  .site-masthead .fs-search svg { width: 15px; height: 15px; }
  .site-masthead #fs-theme { width: 25px; height: 25px; }
  header #fs-theme::before { inset: 5px; }
  .site-masthead > nav {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    flex-wrap: wrap;
    gap: 9px 17px;
    padding-top: 8px;
    border-top: 1px solid #b5cdd522;
  }
  .site-masthead > nav > .fs-mercury-nav {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 10px;
    letter-spacing: .06em;
    border: 0;
    padding: 0;
  }
  .site-masthead .fs-mercury-nav small { margin: 0; font-size: 7px; }
}
