/**
 * South End Pickleball: the one page-level sign-in prompt (SOA9a).
 *
 * A signed-out visitor sees this once per page, never on a card or a row. It
 * is meant to stand apart from the page, not to match it: a deep green panel
 * with a gold edge, cream words and a gold button, where every card around it
 * is white or cream with a thin grey rule.
 *
 * Self-contained on purpose. Every color below comes from a --se-signin-*
 * token declared here, and nothing reads south-end-tokens.css, so the prompt
 * looks the same on a page that does not load those tokens.
 *
 * Markup:
 *   <div class="se-signin-prompt">
 *     <p class="se-signin-prompt__text">Sign in to ...</p>
 *     <a class="se-signin-prompt__cta" href="/account?...">Sign in</a>
 *   </div>
 *
 * Pinned by testing/unit/test-signin-prompt.js.
 */
:root {
  --se-signin-bg: #0f3f22;
  --se-signin-border: #e8a020;
  --se-signin-text: #fafaf5;
  --se-signin-shadow: rgba(15, 63, 34, 0.3);
  --se-signin-cta-bg: #e8a020;
  --se-signin-cta-bg-hover: #ffd166;
  --se-signin-cta-text: #111810;
  --se-signin-focus: #ffffff;
}

/* The panel: centered on the page, never wider than 560px. Inside a card grid
   (League Schedule) it takes the whole row and centers within it. */
.se-signin-prompt {
  box-sizing: border-box;
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 560px;
  margin-block: 8px 20px;
  margin-inline: auto;
  padding: 32px 28px;
  border: 2px solid var(--se-signin-border);
  border-radius: 16px;
  background: var(--se-signin-bg);
  box-shadow: 0 12px 28px var(--se-signin-shadow);
  color: var(--se-signin-text);
  text-align: center;
}
/* A page hides the prompt with the hidden attribute (League Scores does). The
   display rule above would otherwise beat the browser's own [hidden] rule. */
.se-signin-prompt[hidden] {
  display: none;
}

.se-signin-prompt__text {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--se-signin-text);
  overflow-wrap: anywhere;
}

/* The button: sized to its words, 44px tall for a thumb, never full width.
   Two classes and the element name so a page's own link color cannot win. */
.se-signin-prompt a.se-signin-prompt__cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  margin-top: 18px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--se-signin-cta-bg);
  color: var(--se-signin-cta-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.se-signin-prompt a.se-signin-prompt__cta:focus-visible {
  outline: 3px solid var(--se-signin-focus);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .se-signin-prompt {
    padding: 26px 20px;
  }
  .se-signin-prompt__text {
    font-size: 18px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .se-signin-prompt a.se-signin-prompt__cta:hover {
    background: var(--se-signin-cta-bg-hover);
    color: var(--se-signin-cta-text);
  }
}

@media (prefers-reduced-motion: reduce) {
  .se-signin-prompt a.se-signin-prompt__cta {
    transition: none;
  }
}
