body {   font-family: Arial, sans-serif;
  margin: 2em;  background-color: #c0c0c0;  }
    .row { display: flex; gap: 16px; flex-direction: column; align-items: flex-start; }
    /* Past lists: class-based styling only (no inline styles injected by JS) */
    .list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
 /*   .card { border: 1px solid #ddd; border-radius: 8px; padding: 12px 14px; min-width: 260px; } */
    .muted { color: #666; }
.card > .muted { margin-bottom: 8px; }

    .bad { color: #b00; }
    code { background: #f7f7f7; padding: 2px 4px; border-radius: 4px; }
    pre { margin: 0; }
    a { color: inherit; }
    .small { font-size: 12px; }
    .games { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; max-width: 1100px; }
    .game { border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; }
    .game .top { display:flex; justify-content:space-between; gap: 4px; flex-wrap:wrap; }
    .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
    .chartwrap { margin-top: 10px; }
    canvas { width: 100% !important; height: 225px !important; }
    .list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
    .list > li { border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; display: block; }
    .list > li > a { display: block; text-decoration: none; }
    .list > li > a:hover { text-decoration: underline; }
.game-link { display: block; text-decoration: none; }
.game-link:hover { text-decoration: underline; }
/* Tournament lists (current & past) */
/* Tournament lists: make them more compact + clickable-looking without affecting live games */
.games.tournaments { gap: 8px; }

/* Make the tournament rows visibly different even without hover */
.games.tournaments .game {
}

.games.tournaments .game:hover {
}

/* Override the 'muted' look inside tournament lists */
.games.tournaments a.game-link {
}

.games.tournaments a.game-link:hover {
}

/* Clickable tournament rows */
.game-link {
  cursor: pointer;
}

.game-link:hover {
  background: #f0f4f0;
}

/* Compact tournament rows */
.game > .top {
  padding: 4px 6px;
}

.game:has(> .top > .game-link) {
  padding: 6px 8px;
}

.tournament-heading {
  margin-bottom: 4px;
}

.tournament-item {
  margin-bottom: 4px;
}

#topbar {
    background: linear-gradient(90deg, #4a90e2, #357ABD);
    padding: 0.7em 0.7em 0.7em 2em;   /* top, right, bottom, left */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2em;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 
        1px 1px 0 rgba(0,0,0,0.2), 
        2px 2px 0 rgba(0,0,0,0.1);
    border: 1px solid black;
    border-radius: 10px;
    background-clip: padding-box;
    text-align: left;   /* ensures the text respects padding */

}

.card {
  border: none;
  border-radius: 12px;
  padding: 1.5em;
  margin-top: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background-color: #ffffff;
}

.card-wide { width:100%; max-width:1100px;   background-color: #f9f9f9; }

/* BADGRAPH_TOURNAMENTS_V1_BEGIN */

/* Add breathing room under headings */
.card .muted + .games.tournaments { margin-top: 6px; }

/* Tournament list layout */
.games.tournaments { gap: 4px; }

/* Tournament row styling */
.games.tournaments .game {
  padding: 3px 10px;
  background: #f3f3f3;
  border: 1px solid #ddd;
  border-left: 4px solid transparent;
  border-radius: 8px;
  transition: box-shadow 120ms ease, background 120ms ease, border-left-color 120ms ease;
}

/* Tournament name */
.games.tournaments .game-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: #111;
  font-weight: 600;
}

/* Hover affordance */
.games.tournaments .game:hover,
.games.tournaments .game:focus-within {
  background: #f7f7f7;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  border-left-color: seagreen;
}

/* Compact internal spacing */
.games.tournaments .game .top { gap: 6px; }

/* BADGRAPH_TOURNAMENTS_V1_END */


/* BADGRAPH_UI_V2_BEGIN */

/* Page background */
body {
  background: #f2f5f9;
}

/* Centered main column */
.container, main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}





header > *, .topbar > * {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 14px;
}

header h1, .topbar h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 4px;
}

header p, .topbar p, .topbar .subtitle {
  font-size: 13px;
  color: #555;
  margin: 0;
}


header > *, .topbar > * {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 14px;
}

header h1, .topbar h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 4px;
}

header p, .topbar p, .topbar .subtitle {
  font-size: 13px;
  color: #555;
  margin: 0;
}

.card.card-wide > #topbar .subtitle {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}

/* Page header block (two-shade fix) */
.card.card-wide:first-of-type {
  background: #dde6f0;
  border-bottom: 1px solid #cfd6e2;
  padding: 16px 20px;
}
.card.card-wide:first-of-type > #topbar {
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.card.card-wide:first-of-type > #topbar .subtitle {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}
/* BADGRAPH_UI_V2_END */
\n
/* HEADER MINIMAL CLEAN START */
#site-header {
  margin: 16px 0 12px 0;
  padding: 0;
}
#site-header .header-brand {
  font-size: 24px;
  font-weight: 700;
  color: #111;
}
#site-header .header-tagline {
  font-size: 14px;
  color: #444;
  margin-top: 2px;
}
/* Forest-green borders for tournament cards */
.card-wide:has(#current_tournaments),
.card-wide:has(#games),
.card-wide:has(#past_tournaments) {
  border: 1px solid forestgreen;
}

/* HEADER MINIMAL CLEAN END */
\n
