/*
  Start Strong 2027 announcement bar (shown above the header on site pages).

  The markup is the <div class="ssn" data-start-strong-notice> placed just before
  <header> on each page. It must stay a direct child of <body>, outside <main>,
  <header> and <footer>, so React hydration leaves it alone.

  To retire the bar everywhere, uncomment the RETIRE block at the end of this file.
*/

:root { --ssn-h: 44px; }

.ssn {
  position: relative;
  z-index: 51;
  flex: none;
  height: var(--ssn-h);
  overflow: hidden;
  background: linear-gradient(100deg, #14211e 0%, #1c3a4a 45%, #2c5f88 100%);
  color: #faf7f1;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  animation: ssn-in .7s cubic-bezier(.16,1,.3,1) both;
}

/* Light sweep across the bar every few seconds */
.ssn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(220,233,242,.16), transparent);
  transform: skewX(-20deg);
  animation: ssn-sweep 7s cubic-bezier(.16,1,.3,1) 1.2s infinite;
  pointer-events: none;
}

.ssn__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 0 52px 0 16px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.ssn__link:focus-visible { outline: 2px solid #faf7f1; outline-offset: -4px; }

.ssn__dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f9fdc;
}
.ssn__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4f9fdc;
  animation: ssn-pulse 2s cubic-bezier(.16,1,.3,1) infinite;
}

.ssn__title {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.01em;
}
.ssn__long { color: #dce9f2; }

.ssn__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #faf7f1;
  color: #14211e;
  font-weight: 600;
  font-size: 13px;
  transition: background-color .3s, color .3s;
}
.ssn__arrow { display: inline-block; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.ssn__link:hover .ssn__cta,
.ssn__link:focus-visible .ssn__cta { background: #dce9f2; }
.ssn__link:hover .ssn__arrow,
.ssn__link:focus-visible .ssn__arrow { transform: translateX(3px); }

.ssn__close {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #dce9f2;
  cursor: pointer;
}
.ssn__close:hover { background: rgba(250,247,241,.12); color: #faf7f1; }
.ssn__close:focus-visible { outline: 2px solid #faf7f1; outline-offset: -2px; }
.ssn__close svg { width: 16px; height: 16px; }

/* Push the site's fixed header below the bar. site-notice.js slides it up as the bar scrolls away. */
.ssn:not([hidden]) ~ header {
  top: var(--ssn-top, var(--ssn-h)) !important;
  transition-property: all, top !important;
  transition-duration: .5s, 0s !important;
}

@media (max-width: 640px) {
  .ssn { font-size: 13px; }
  .ssn__long { display: none; }
  .ssn__link { gap: 8px; padding-right: 46px; }
  .ssn__close { right: 2px; }
}

@keyframes ssn-in {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes ssn-pulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(3); opacity: 0; }
}
@keyframes ssn-sweep {
  0% { left: -40%; }
  30%, 100% { left: 120%; }
}

@media (prefers-reduced-motion: reduce) {
  .ssn, .ssn::before, .ssn__dot::after { animation: none; }
  .ssn::before { display: none; }
  .ssn__arrow { transition: none; }
}

/* RETIRE: uncomment these two lines to remove the bar from every page.
:root { --ssn-h: 0px !important; }
.ssn { display: none !important; }
*/
