/* Club Player Manager documentation — theme colours and small refinements.
   Material is configured with `primary: custom` / `accent: custom`, so the
   palette lives here rather than in mkdocs.yml. */

[data-md-color-primary="custom"] {
  --md-primary-fg-color:        #1a5c38;
  --md-primary-fg-color--light: #2e7d52;
  --md-primary-fg-color--dark:  #10402a;
  --md-primary-bg-color:        #ffffff;
  --md-primary-bg-color--light: #ffffffb3;
}

[data-md-color-accent="custom"] {
  --md-accent-fg-color:             #2e7d52;
  --md-accent-fg-color--transparent:#2e7d521a;
  --md-accent-bg-color:             #ffffff;
  --md-accent-bg-color--light:      #ffffffb3;
}

/* Link colour has to be set per scheme: the primary green is legible on a
   light background but too dark on the slate one. */
[data-md-color-scheme="default"][data-md-color-primary="custom"] {
  --md-typeset-a-color: #1a5c38;
}

[data-md-color-scheme="slate"][data-md-color-primary="custom"] {
  --md-typeset-a-color: #6dd39b;
}

/* The guides lean on tables for status and email reference. Keep them readable
   at width, and let a wide one scroll inside itself rather than pushing the
   page sideways. */
.md-typeset table:not([class]) {
  font-size: 0.72rem;
}

.md-typeset .md-typeset__table {
  overflow-x: auto;
}

/* Menu paths ("Club Management → Settings") open most sections of the guide.
   Give the bold run a touch more presence without shouting. */
.md-typeset strong {
  font-weight: 600;
}

/* Grid cards on the landing pages. */
.md-typeset .grid.cards > ul > li {
  border-radius: 0.3rem;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0 0.2rem #0000001a;
}
