/* League site theme.
 *
 * This is the stylesheet for a league that brings its own domain. It is deliberately NOT
 * site.css: the Darts.Pub front door is a dark marketing skin, and a league site is a light,
 * plain, readable notice board - fixtures, tables, who is playing who on Friday. Keeping them
 * in separate files means a change to the platform's marketing look cannot restyle someone
 * else's league overnight.
 *
 * It is also deliberately PLAIN. The temptation with a multi-tenant platform is to paint every
 * link and button in the league's colour, but mumblesdarts.co.uk was stock Bootstrap - black
 * brand, blue links, plain table - and its players have read it that way for years. Recognition
 * beats decoration. The league's identity comes from its badge, its name and its fixtures.
 *
 * --league-accent is set per-request by _LeagueLayout from the league's ThemePrimaryColor and is
 * used for exactly one thing: marking the current page in the nav, which the old site had no way
 * of showing at all.
 */

:root,
body.league-body {
  --league-accent: #0f766e;
  --league-ink: #1f2937;
  --league-muted: #64748b;
  --league-border: #d9e2ec;
  --league-surface: #f8fafc;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body.league-body {
  margin: 0;
  background: #ffffff;
}

/* ---------- nav ---------- */

.league-brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.league-navbar .nav-link.active {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--league-accent);
}

/* The logout control is a button so it can post, but it sits in a nav list and must not look
   like one - strip the button chrome rather than fight Bootstrap's defaults. */
.league-navbar .btn-link {
  padding: 0.5rem;
  border: 0;
  text-decoration: none;
}

/* ---------- home ---------- */

.league-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.league-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.league-season-name {
  color: var(--league-muted);
}

.league-fixture-teams {
  font-weight: 600;
}

/* ---------- footer ---------- */

.league-footer {
  margin-top: 2rem;
  padding: 1rem 0;
}

/* Darts.Pub's wordmark is white, so it needs a dark plate to sit on in a light footer. */
body.league-body a.league-poweredby {
  background: #111;
  border-radius: 6px;
  padding: 3px 10px;
  color: #bbb;
}

.league-poweredby img {
  height: 18px;
  width: auto;
}
