/* Scorekeeping announcement banner. Shared by index.html, baseball.html and
   softball.html; see assets/sk-banner.js. Pinned to the top of the viewport,
   always one line. Fixed height, with the same height reserved on <body>
   from first paint, so nothing below it ever shifts. */
:root { --sk-banner-h: 40px; }

body { padding-top: var(--sk-banner-h); }

.sk-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--sk-banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #071E33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}

.sk-banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  width: 100%;
  max-width: 100%;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.86);
  /* "Free scorekeeping · Jan 2027 · Join the waitlist →" is ~23.5x its font
     size wide: full 13.5px from ~360px up, a touch smaller on tiny phones. */
  font-size: clamp(11px, calc((100vw - 32px) / 24.2), 13.5px);
  font-weight: 500;
  /* Room for descenders: the message clips overflow (for its ellipsis), so
     a line-height of 1 would cut off the bottom of letters like "g". */
  line-height: 1.4;
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-decoration: none;
}
/* On the narrowest phones the message gives way (with an ellipsis) before
   the call to action does. */
.sk-banner-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sk-banner-cta { flex: 0 0 auto; color: #00B7FF; font-weight: 600; }
.sk-banner-link:hover .sk-banner-cta,
.sk-banner-link:focus-visible .sk-banner-cta { text-decoration: underline; text-underline-offset: 3px; }
.sk-banner-link:focus-visible { outline: 2px solid #00B7FF; outline-offset: -4px; border-radius: 6px; }

@media (max-width: 400px) {
  .sk-banner-link { padding: 0 12px; gap: 5px; letter-spacing: 0; }
}
