/* One Newsbee wordmark for site navigation, account pages and capture tools.
   Reuse the site's existing Newsreader / DM Sans font source so standalone
   pages render the same lettering without depending on an unrelated theme. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&display=swap');

body a.nb-brand {
  --nb-brand-size: 34px;
  --nb-brand-badge-size: 10px;
  --nb-brand-gap: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--nb-brand-gap);
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  color: #6157D2;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none !important;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle;
  writing-mode: horizontal-tb;
  transform: none;
}

/* Style the lettering itself: older skins use !important on the outer link,
   and their fonts and colors must not leak into this shared wordmark. */
body a.nb-brand > .nb-brand-wordmark {
  display: inline-block;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  color: #6157D2 !important;
  font: 600 var(--nb-brand-size)/1 'Newsreader', Georgia, serif !important;
  font-optical-sizing: auto;
  font-kerning: normal;
  letter-spacing: -.055em;
  text-decoration: none;
  text-transform: lowercase;
  white-space: nowrap;
}

body a.nb-brand > .nb-brand-wordmark > .nb-brand-dot {
  display: inline;
  padding: 0;
  margin: 0;
  color: #F29979 !important;
  font: inherit !important;
  letter-spacing: inherit;
}

body a.nb-brand > .nb-brand-beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #DDD6EE;
  border-radius: 999px;
  background: #F5F2FC;
  color: #4942B4 !important;
  font: 600 var(--nb-brand-badge-size)/1.3 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body a.nb-brand:hover,
body a.nb-brand:active {
  text-decoration: none !important;
  transform: none;
}

body a.nb-brand:focus-visible {
  outline: 3px solid #6157D2;
  outline-offset: 5px;
  border-radius: 4px;
}

body a.nb-brand.nb-brand--footer {
  --nb-brand-size: 28px;
  --nb-brand-badge-size: 9px;
  --nb-brand-gap: 8px;
}

/* The full desktop rail is narrower than the public navigation. Remove its
   legacy logo inset and scale the same mark to fit the available 147px. */
body.nb.living-functional .sidebar > a.nb-brand {
  --nb-brand-size: 28px;
  --nb-brand-badge-size: 9px;
  --nb-brand-gap: 8px;
  padding: 0;
  margin-inline: 0;
}

body.nb.living-functional .sidebar > a.nb-brand > .nb-brand-beta {
  padding: 3px 6px;
}

/* These copies sit in existing headers when the sidebar or login story is
   hidden. Keep the existing navigation and account controls in their place. */
body a.nb-brand.nb-brand--mobile {
  display: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1100px) {
  body .sidebar > a.nb-brand {
    display: none;
  }

  body .studio-top > a.nb-brand.nb-brand--mobile {
    --nb-brand-size: 29px;
    --nb-brand-badge-size: 9px;
    --nb-brand-gap: 8px;
    display: inline-flex;
  }

  body .studio-top:has(> a.nb-brand--mobile) {
    height: auto;
    min-height: 68px;
    padding-block: 10px;
    gap: 8px 14px;
    flex-wrap: wrap;
  }

  body .studio-top:has(> a.nb-brand--mobile) > .breadcrumb {
    flex: 1 1 180px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body .studio-top:has(> a.nb-brand--mobile) > .account-controls {
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  body .login-form-side > a.nb-brand.nb-brand--mobile {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 22px;
  }
}

@media (max-width: 700px) {
  body .studio-top > a.nb-brand.nb-brand--mobile {
    --nb-brand-size: 27px;
  }

  body .studio-top:has(> a.nb-brand--mobile) > .breadcrumb {
    display: none;
  }
}

@media (max-width: 480px) {
  body a.nb-brand {
    --nb-brand-size: 30px;
    --nb-brand-badge-size: 9px;
    --nb-brand-gap: 8px;
  }

  body a.nb-brand > .nb-brand-beta {
    padding: 3px 6px;
  }
}
