/* ========================================================================
   cross-entity-topbar-soft — Soft Soft KEEP DRAFT · HOLD LIVE · HOLD --prod
   Clay HARD 2026-09-16 PT · Crest 1b656128 · navy #243090 · orange #F05424
   Site-wide mobile top bar / cross-entity ribbon hierarchy (BOTH hosts).
   Merge onto Institute Soft Soft site CSS (site-6e25051a / site-6c51e099)
   and www clinic Soft Soft site CSS (site-56a78e30). Or link this file.
   ======================================================================== */

/* Primary host mark = BOLD + LARGER. Cross-entity __x = smaller + thinner. */
.site-ribbon__mark {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
  color: #fff;
}
.site-ribbon__x {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: .72;
  border-bottom-color: rgba(255, 255, 255, .28);
  white-space: normal;
  max-width: 48ch;
  line-height: 1.3;
}
.site-ribbon__x:hover,
.site-ribbon__x:focus-visible {
  opacity: 1;
  border-bottom-color: #fff;
}
.site-ribbon__tag {
  font-size: .75rem;
  font-weight: 400;
  opacity: .88;
}

/* Phone-first (~390px / ≤760px): stacked hierarchy unmistakable */
@media (max-width: 760px) {
  .site-ribbon__in {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 0;
  }
  .site-ribbon__sep,
  .site-ribbon__tag {
    display: none;
  }
  .site-ribbon__mark {
    font-size: 1.05rem;
    font-weight: 800;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    line-height: 1.2;
  }
  .site-ribbon__x {
    font-size: .625rem;
    font-weight: 400;
    margin-left: 0;
    max-width: 100%;
    opacity: .65;
    border-bottom-width: 1px;
  }
}

@media (max-width: 420px) {
  .site-ribbon__mark {
    font-size: 1.02rem;
    font-weight: 800;
  }
  .site-ribbon__x {
    font-size: .6rem;
    font-weight: 400;
    opacity: .62;
  }
}

/* ---- Clay HARD Soft Soft #3: Login top-right phone Soft Soft (www + .org) ----
   LIVE hides .nav-cta .btn--outline under 560px; Login is outline → buried.
   Soft Soft: Login always visible Soft Soft banner top-right; Sites FAIL if missing. */
@media (max-width: 760px) {
  .site-header .nav-cta {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
  }
  .site-header .nav-cta #header-login,
  .site-header .nav-cta a#header-login,
  .site-header .nav-cta .btn--outline#header-login {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .site-header .nav-cta .btn--outline#header-login,
  .site-header .nav-cta #header-login {
    display: inline-flex !important;
  }
}

/* ---- Clay punch 04:44 PT: no orphan phone banner row ----
   Login + Sign up stay on the SAME row as logo + hamburger.
   Search / Patient education / Donate leave the phone header. */
@media (max-width: 760px) {
  .site-header .nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 52px;
    max-height: 56px;
    overflow: hidden;
  }
  .site-header .brand { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .site-header .nav-toggle { order: 2; flex: 0 0 auto; }
  .site-header .nav-cta {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto;
    margin-left: auto;
    order: 3;
    overflow: hidden;
  }
  .site-header .nav-cta .nav-search,
  .site-header .nav-cta a[href="/teach-me"],
  .site-header .nav-cta a[href="/philanthropy"],
  .site-header .nav-cta a[href*="teach-me"],
  .site-header .nav-cta a[href*="philanthropy"] {
    display: none !important;
  }
  .site-header .nav-cta #header-login,
  .site-header .nav-cta #header-signup {
    display: inline-flex !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: .82rem !important;
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .site-header .nav-cta .btn--outline#header-login,
  .site-header .nav-cta #header-login {
    display: inline-flex !important;
  }
  .site-header .nav { max-height: 56px; overflow: hidden; }
}
