@charset "UTF-8";

:root {
    --bg: #F8F8F8;
    --fg: #1C2B22;
    --card-bg:#ffffff;
    --card-alt:#F0F0F0;
    --card-fg:#1C2B22;
    --card-fg-alt:#5C6660;
    --hero-bg:#ffffff;
    --hero-fg:#1C2B22;
    --btn-bg:#0E7461;
    --btn-fg:#ffffff;
    --btn-fg-hover:#ffffff;
    --btn-bg-hover:#0B5C4D;
    --menu-btn-bg:#D5D9D1;
    --site-header-bg:var(--card-bg);
    --site-footer-bg:var(--card-bg);
    --site-nav-bg:var(--site-header-bg);
    --page-heading-bg:linear-gradient(60deg, var(--accent-dark), var(--accent-light));
    --page-heading-bg:#ffffff;
    --page-heading-fg:#1C2B22;
    --accent-dark:#0E7461;
    --accent-light:#0E7461;
    --accent-fg:#ffffff;
    --result-win:#009432;
    --result-loss:#EA2027;
    --result-draw:var(--bg);
    --result-fg:#ffffff;
    --input-bg:#ffffff;
    --input-fg:#1C2B22;
    --input-border:#CFD4CC;
    --input-border-hover:#A0A89F;
    --input-placeholder:#888888;
    --input-disabled-bg:#EEF0EA;
    --focus-ring:rgba(14, 116, 97, 0.35);
    --danger:#c62828;
    --danger-bg:#fdecea;
    --success:#1b7f3b;
    --success-bg:#e7f6ec;
    --warning:#a65c00;
    --warning-bg:#fff4e0;
    --info:#0b5cad;
    --info-bg:#e6f1fb;
}

/*
#1e0021*/

@media (prefers-color-scheme: dark) {
    :root {
        --bg:  #141a30;
        --fg: #f2f3f5;
        --card-bg:#1b2138;
        --card-alt:#161b2e;
        --card-fg:#ffffff;
        --card-fg-alt:#cccccc;
        --card-fg-alt:#9a9a9a;
        --hero-bg:#000000;
        --hero-fg:#f2f3f5;
        --btn-bg:#f2f3f5;
        --btn-fg:#000000;
        --btn-fg-hover:#ffffff;
        --menu-btn-bg:#fff;
        --page-heading-bg:var(--card-bg);
        --page-heading-fg:#f2f3f5;

        --bg:  #1e0021;
        --card-bg:#28002b;
        --card-alt:#41054b;

        --bg:  #121212;
        --card-bg:#1F1F1F;
        --card-alt:#39393B;

        --input-bg:#121212;
        --input-fg:#f2f3f5;
        --input-border:#444444;
        --input-border-hover:#666666;
        --input-placeholder:#888888;
        --input-disabled-bg:#2a2a2a;
        --focus-ring:rgba(29, 212, 96, 0.45);
        --danger:#ff6b6b;
        --danger-bg:#3a1a1a;
        --success:#4cd07d;
        --success-bg:#16301f;
        --warning:#ffb547;
        --warning-bg:#3a2a12;
        --info:#6db3f2;
        --info-bg:#14263a;
    }
}

/* Manual theme override (footer toggle, js/theme-toggle.js). Beats the prefers-color-scheme block above via specificity. */
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #F8F8F8;
    --fg: #1C2B22;
    --card-bg:#ffffff;
    --card-alt:#F0F0F0;
    --card-fg:#1C2B22;
    --card-fg-alt:#5C6660;
    --hero-bg:#ffffff;
    --hero-fg:#1C2B22;
    --btn-bg:#0E7461;
    --btn-fg:#ffffff;
    --btn-fg-hover:#ffffff;
    --btn-bg-hover:#0B5C4D;
    --menu-btn-bg:#D5D9D1;
    --page-heading-bg:#ffffff;
    --page-heading-fg:#1C2B22;
    --input-bg:#ffffff;
    --input-fg:#1C2B22;
    --input-border:#CFD4CC;
    --input-border-hover:#A0A89F;
    --input-placeholder:#888888;
    --input-disabled-bg:#EEF0EA;
    --focus-ring:rgba(14, 116, 97, 0.35);
    --danger:#c62828;
    --danger-bg:#fdecea;
    --success:#1b7f3b;
    --success-bg:#e7f6ec;
    --warning:#a65c00;
    --warning-bg:#fff4e0;
    --info:#0b5cad;
    --info-bg:#e6f1fb;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg:  #121212;
    --fg: #f2f3f5;
    --card-bg:#1F1F1F;
    --card-alt:#39393B;
    --card-fg:#ffffff;
    --card-fg-alt:#9a9a9a;
    --hero-bg:#000000;
    --hero-fg:#f2f3f5;
    --btn-bg:#f2f3f5;
    --btn-fg:#000000;
    --btn-fg-hover:#ffffff;
    --menu-btn-bg:#fff;
    --page-heading-bg:var(--card-bg);
    --page-heading-fg:#f2f3f5;
    --input-bg:#121212;
    --input-fg:#f2f3f5;
    --input-border:#444444;
    --input-border-hover:#666666;
    --input-placeholder:#888888;
    --input-disabled-bg:#2a2a2a;
    --focus-ring:rgba(29, 212, 96, 0.45);
    --danger:#ff6b6b;
    --danger-bg:#3a1a1a;
    --success:#4cd07d;
    --success-bg:#16301f;
    --warning:#ffb547;
    --warning-bg:#3a2a12;
    --info:#6db3f2;
    --info-bg:#14263a;
}

.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

/* Box sizing rules */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role=list],
ol[role=list] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  background:var(--bg);
  color:var(--fg);
  font-family: "Inter", serif;
  font-size:0.9em;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
            animation-duration: 0.01ms !important;
    -webkit-animation-iteration-count: 1 !important;
            animation-iteration-count: 1 !important;
    -webkit-transition-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  margin-bottom: 1em;
  font-weight: normal;
}

.home-title {
  font-family: "Inter", serif;
}

h1 {
  font-family: "Inter", serif;
  font-size: 2em;
  /*@include mq(l) {
      font-size: 4em;
  }*/
}
@media only screen and (min-width: 23em) {
  h1 {
    font-size: 3em;
  }
}

h2 {
  /*@include mq(l) {
      font-size: 3em;
  }*/
}
@media only screen and (min-width: 23em) {
  h2 {
    font-size: 2em;
  }
}

p {
  margin-bottom: 1em;
}

a {
  text-decoration: none;
  color: var(--fg);
}

a.reset {
  color: var(--fg);
}

.strikethrough {
  text-decoration: line-through;
}

.strong {
  font-weight: 700;
}

:root {
  --clr-primary-100: #e1c4f5;
  --clr-primary-400: #240b36;
  --clr-primary-600: #1b0729;
  --clr-secondary-400: #006600;
  --clr-secondary-500: #004400;
  --clr-neutral-100: #fff;
  --clr-neutral-200: #f2f2f2;
  --clr-neutral-300: #e1e2e1;
  --clr-neutral-400: #cccccc;
  --clr-neutral-500: #676767;
  --clr-neutral-600: #454545;
  --clr-neutral-700: #333333;
  --clr-neutral-800: #222222;
  --clr-neutral-900: #000000;
}

/* Shown above the header when viewing a non-current or hidden season */
.season-banner {
  padding:0.5em 1em;
  background:var(--info-bg);
  color:var(--info);
  font-size:0.9rem;
}

.season-banner.season-banner-hidden {
  background:var(--warning-bg);
  color:var(--warning);
}

.season-banner-inner {
  display:flex;
  flex-wrap:wrap;
  gap:0.25rem 1rem;
  align-items:center;
  max-width:100em;
  margin:0 auto;
}

.season-banner a {
  color:inherit;
  font-weight:700;
  text-decoration:underline;
}

header {
  padding: 0.5em;
  background: transparent;
  min-height: 3.5rem;
}
@media only screen and (min-width: 60em) {
  header {
    min-height: 0;
  }
}
header a {
}

.header-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  max-width: 100em;
  margin: 0 auto;
  padding: 0 0.5em;
}

/*.page-header {
  background-image: url("../darts-generic.jpg");
  background-position: center center;
  color: var(--clr-neutral-100);
  padding: 3em 1.5em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 2em;
}
.page-header .page-header-content h1 {
  margin-bottom: 0;
}*/

#menu-button {
  /*position: absolute;
  top: 50%;
  margin-top:-2.5rem;
  left: 0;*/
}
@media only screen and (min-width: 60em) {
  #menu-button {
    display: none;
  }
}
#menu-button {
  position: relative;
  align-self: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
#menu-button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
#menu-button:after {
  color: var(--accent-fg);
  content: "\f394";
  font-family: "Ionicons";
  font-size: 1.5rem;
  line-height: 1;
}

#close-menu-button {
  /*position: absolute;
  top: 50%;
  margin-top:-2.5rem;
  left: 0;*/
  display: block;
  width: 100%;
  height: 3em;
}
@media only screen and (min-width: 60em) {
  #close-menu-button {
    display: none;
  }
}
#close-menu-button:after {
  color: var(--fg);
  content: "\f12a";
  font-family: "Ionicons";
  position: absolute;
  top: 0;
  right: 0;
  width: 3rem;
  height: 3rem;
  font-size: 2em;
  text-align: center;
  line-height: 3rem;
}

.nav-open-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.6;
  z-index: 98;
  display: none;
}
@media only screen and (min-width: 60em) {
  .nav-open-overlay {
    display: none;
  }
}

nav#site-navigation {
  background: var(--site-nav-bg);
  width: 16em;
  height: 100vh;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  overflow-y: auto;
  position: fixed;
  top: 0;
  left: -16em;
  z-index: 99;
  /*// Styles for slide out side menu
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width:320px;
  z-index: 99;
  height:100vh;
  */
}
nav#site-navigation a {
  text-decoration: none;
  font-weight:700;
}
@media only screen and (min-width: 60em) {
  nav#site-navigation {
    position: relative;
    background: transparent;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow-y: visible;
  }
}

nav#site-navigation.open {
  left: 0;
}

ul.main-menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
@media only screen and (min-width: 60em) {
  ul.main-menu {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    width: 100%;
    max-width: 100em;
    margin: 0 auto;
    padding: 0 1em;
    height: 100%;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}
ul.main-menu > li > a {
  display: block;
  padding: 0.5em 1em;
  text-decoration: none;
  position: relative;
}
@media only screen and (min-width: 60em) {
  ul.main-menu > li > a {
    padding: 1em;
  }
}
ul.main-menu > li > a.has-child-menu:after {
  content: "\f3d0";
  font-family: "Ionicons";
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.5em;
  color: var(--fg);
}
@media only screen and (min-width: 60em) {
  ul.main-menu > li > a.has-child-menu:after {
    padding: 1em;
  }
}
@media only screen and (min-width: 60em) {
  ul.main-menu > li > a.has-child-menu {
    padding-right: 2em;
  }
}
ul.main-menu > li.child-menu-open > a:after {
  content: "\f3d8";
}
ul.main-menu li {
  position: relative;
}
ul.main-menu .main-menu-child-menu {
  display: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: var(--site-nav-bg);
}
ul.main-menu .main-menu-child-menu a {
  display: block;
  padding: 0.5em 1em 0.5em 2em;
}
@media only screen and (min-width: 60em) {
  ul.main-menu .main-menu-child-menu {
    background-color: var(--site-nav-bg);
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    z-index: 99;
  }
  ul.main-menu .main-menu-child-menu a {
    padding: 0.5em 1em;
  }
}

/*ul.dash-nav {
    list-style: none;
    padding:0;
    a {
        color:var(--clr-neutral-400);
        text-decoration: none;
        display: flex;
        align-items: center;
        padding:0.5em 1em;
        &:hover {
            color:white;
        }
    }
    li.active a {
        background-color:var(--clr-primary-600);
    }
    li.dropdown.open {
        background-color:var(--clr-primary-600);
    }
    ul.dropdown-menu {
        list-style: none;
        padding:0;
        font-size:0.8em;
        display: none;
        a {
            padding-left:3em;
        }
        &.open {
            display: block;
        }
    }
}*/
footer {
  padding: 0.5em;
  background: var(--site-footer-bg);
  color: var(--card-fg);
}
footer a {
}

.footer-logo {
  max-width: 200px;
}

/* Light/dark switch in the footer */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1em;
  cursor: pointer;
  font-size: 0.9em;
}
.theme-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-switch-track {
  position: relative;
  width: 2.8em;
  height: 1.5em;
  border-radius: 1em;
  background: var(--card-alt);
  border: 1px solid var(--input-border);
  transition: background 0.2s;
}
.theme-switch-track::after {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0.15em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: var(--card-fg);
  transition: transform 0.2s;
}
.theme-switch input:checked + .theme-switch-track {
  background: var(--accent-dark);
}
.theme-switch input:checked + .theme-switch-track::after {
  transform: translateX(1.3em);
}
.theme-switch input:focus-visible + .theme-switch-track {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.container {
  width: 100%;
  max-width: 100em;
  margin: 0 auto;
  padding: 0 0.5em;
}
@media only screen and (min-width: 23em) {
  .container {
    padding: 0 1em;
  }
}

.container-m {
  margin: 0 auto;
  max-width: 40em;
  padding: 0 1em;
}
@media only screen and (min-width: 23em) {
  .container-m {
    padding: 0 2em;
  }
}
@media only screen and (min-width: 40em) {
  .container-m {
    padding: 0 4em;
    max-width: 48em;
  }
}
@media only screen and (min-width: 60em) {
  .container-m {
    padding: 0 8em;
    max-width: 56em;
  }
}

.container-l {
  margin: 0 auto;
  max-width: 60em;
  max-width: 40em;
  padding: 0 1em;
}
@media only screen and (min-width: 23em) {
  /*.container-l {
    padding: 0 2em;
  }*/
}
@media only screen and (min-width: 40em) {
  /*.container-l {
    padding: 0 4em;
    max-width: 68em;
  }*/
}
@media only screen and (min-width: 60em) {
  .container-l {
    padding: 0 8em;
    max-width: 76em;
  }
}

/*
	Improved screen reader only CSS class
	@author Gaël Poupard
		@note Based on Yahoo!'s technique
		@author Thierry Koblentz
		@see https://developer.yahoo.com/blogs/ydn/clip-hidden-content-better-accessibility-53456.html
	* 1.
		@note `clip` is deprecated but works everywhere
		@see https://developer.mozilla.org/en-US/docs/Web/CSS/clip
	* 2.
		@note `clip-path` is the future-proof version, but not very well supported yet
		@see https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path
		@see http://caniuse.com/#search=clip-path
		@author Yvain Liechti
		@see https://twitter.com/ryuran78/status/778943389819604992
	* 3.
		@note preventing text to be condensed
		author J. Renée Beach
		@see https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
		@note Drupal 8 goes with word-wrap: normal instead
		@see https://www.drupal.org/node/2045151
		@see http://cgit.drupalcode.org/drupal/commit/?id=5b847ea
	* 4.
		@note !important is important
		@note Obviously you wanna hide something
		@author Harry Roberts
		@see https://csswizardry.com/2016/05/the-importance-of-important/
*/
.sr-only {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important; /* 1 */
  -webkit-clip-path: inset(50%) !important;
  clip-path: inset(50%) !important; /* 2 */
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important; /* 3 */
}

/*
	Use in conjunction with .sr-only to only display content when it's focused.
	@note Useful for skip links 
	@see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
	@note Based on a HTML5 Boilerplate technique, included in Bootstrap
	@note Fixed a bug with position: static on iOS 10.0.2 + VoiceOver
		@author Sylvain Pigeard
		@see https://github.com/twbs/bootstrap/issues/20732
*/
.sr-only-focusable:focus,
.sr-only-focusable:active {
  clip: auto !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  height: auto !important;
  margin: auto !important;
  overflow: visible !important;
  width: auto !important;
  white-space: normal !important;
}

.row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0 -1em;
}

div[class^=col-], div.col {
  padding: 1em;
  width: 100%;
}

.col-1 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 8.3333333333%;
          flex: 0 0 8.3333333333%;
}

.col-2 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 16.6666666667%;
          flex: 0 0 16.6666666667%;
}

.col-3 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 25%;
          flex: 0 0 25%;
}

.col-4 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 33.3333333333%;
          flex: 0 0 33.3333333333%;
}

.col-5 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 41.6666666667%;
          flex: 0 0 41.6666666667%;
}

.col-6 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 50%;
          flex: 0 0 50%;
}

.col-7 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 58.3333333333%;
          flex: 0 0 58.3333333333%;
}

.col-8 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 66.6666666667%;
          flex: 0 0 66.6666666667%;
}

.col-9 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 75%;
          flex: 0 0 75%;
}

.col-10 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 83.3333333333%;
          flex: 0 0 83.3333333333%;
}

.col-11 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 91.6666666667%;
          flex: 0 0 91.6666666667%;
}

.col-12 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100%;
          flex: 0 0 100%;
}

@media only screen and (min-width: 23em) {
  .col-s-1 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 8.3333333333%;
            flex: 0 0 8.3333333333%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-2 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 16.6666666667%;
            flex: 0 0 16.6666666667%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-3 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
            flex: 0 0 25%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-4 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 33.3333333333%;
            flex: 0 0 33.3333333333%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-5 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 41.6666666667%;
            flex: 0 0 41.6666666667%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-6 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
            flex: 0 0 50%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-7 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 58.3333333333%;
            flex: 0 0 58.3333333333%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-8 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 66.6666666667%;
            flex: 0 0 66.6666666667%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-9 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 75%;
            flex: 0 0 75%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-10 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 83.3333333333%;
            flex: 0 0 83.3333333333%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-11 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 91.6666666667%;
            flex: 0 0 91.6666666667%;
  }
}
@media only screen and (min-width: 23em) {
  .col-s-12 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-1 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 8.3333333333%;
            flex: 0 0 8.3333333333%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-2 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 16.6666666667%;
            flex: 0 0 16.6666666667%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-3 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
            flex: 0 0 25%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-4 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 33.3333333333%;
            flex: 0 0 33.3333333333%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-5 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 41.6666666667%;
            flex: 0 0 41.6666666667%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-6 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
            flex: 0 0 50%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-7 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 58.3333333333%;
            flex: 0 0 58.3333333333%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-8 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 66.6666666667%;
            flex: 0 0 66.6666666667%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-9 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 75%;
            flex: 0 0 75%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-10 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 83.3333333333%;
            flex: 0 0 83.3333333333%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-11 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 91.6666666667%;
            flex: 0 0 91.6666666667%;
  }
}
@media only screen and (min-width: 40em) {
  .col-m-12 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-1 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 8.3333333333%;
            flex: 0 0 8.3333333333%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-2 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 16.6666666667%;
            flex: 0 0 16.6666666667%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-3 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
            flex: 0 0 25%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-4 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 33.3333333333%;
            flex: 0 0 33.3333333333%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-5 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 41.6666666667%;
            flex: 0 0 41.6666666667%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-6 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
            flex: 0 0 50%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-7 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 58.3333333333%;
            flex: 0 0 58.3333333333%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-8 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 66.6666666667%;
            flex: 0 0 66.6666666667%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-9 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 75%;
            flex: 0 0 75%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-10 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 83.3333333333%;
            flex: 0 0 83.3333333333%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-11 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 91.6666666667%;
            flex: 0 0 91.6666666667%;
  }
}
@media only screen and (min-width: 60em) {
  .col-l-12 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-1 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 8.3333333333%;
            flex: 0 0 8.3333333333%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-2 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 16.6666666667%;
            flex: 0 0 16.6666666667%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-3 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
            flex: 0 0 25%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-4 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 33.3333333333%;
            flex: 0 0 33.3333333333%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-5 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 41.6666666667%;
            flex: 0 0 41.6666666667%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-6 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
            flex: 0 0 50%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-7 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 58.3333333333%;
            flex: 0 0 58.3333333333%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-8 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 66.6666666667%;
            flex: 0 0 66.6666666667%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-9 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 75%;
            flex: 0 0 75%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-10 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 83.3333333333%;
            flex: 0 0 83.3333333333%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-11 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 91.6666666667%;
            flex: 0 0 91.6666666667%;
  }
}
@media only screen and (min-width: 80em) {
  .col-xl-12 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-1 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 8.3333333333%;
            flex: 0 0 8.3333333333%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-2 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 16.6666666667%;
            flex: 0 0 16.6666666667%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-3 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
            flex: 0 0 25%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-4 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 33.3333333333%;
            flex: 0 0 33.3333333333%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-5 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 41.6666666667%;
            flex: 0 0 41.6666666667%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-6 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
            flex: 0 0 50%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-7 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 58.3333333333%;
            flex: 0 0 58.3333333333%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-8 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 66.6666666667%;
            flex: 0 0 66.6666666667%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-9 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 75%;
            flex: 0 0 75%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-10 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 83.3333333333%;
            flex: 0 0 83.3333333333%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-11 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 91.6666666667%;
            flex: 0 0 91.6666666667%;
  }
}
@media only screen and (min-width: 100em) {
  .col-xxl-12 {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 100%;
            flex: 0 0 100%;
  }
}
.icon-gray {
  color: var(--clr-neutral-400);
}

.icon-large {
  font-size: 2rem;
}

table {
  border: 0;
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 1em 0.5em;
}

th {
  background-color: var(--card-alt);
  color: var(--card-fg);
  text-align: left;
}

td {
  border-bottom: 1px solid var(--card-alt);

}

.table {
  display: table;
  table-layout: fixed;
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.table .table-column {
  display: table-cell;
  padding: 1em 0.5em;
  vertical-align: middle;
}

.table-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  border-top: 1px solid var(--card-alt);
}

.table-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  background-color: var(--card-alt);
}

.table-cell {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  padding: 0.5rem 1rem;
}

.panel {
  background: var(--card-bg);
  color: var(--card-fg);
  margin-bottom: 1em;
  border-radius: 1rem;
}

.panel-fill {
  height:100%;
}

.panel-header {
  background: var(--card-bg);
  color: var(--card-fg);
  padding: 1rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.panel-title {
  font-family: "Inter", sans-serif;
  margin: 0;
  font-weight:bold;
}

.panel-header .panel-title {
  font-size:1.4rem;
}

.panel-empty, .panel-content {
  padding: 1em;
}

.panel-footer {
  padding: 1em;
}

.panel-collapsible .panel-header {
  cursor: pointer;
  position: relative;
  padding-right: 3rem;
}

.panel-collapsible .panel-header::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 0.6em;
  height: 0.6em;
  margin-top: -0.3em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  transition: transform 0.2s ease;
}

.panel-collapsible.panel-collapsed .panel-header::after {
  transform: rotate(45deg);
  margin-top: -0.45em;
}

.panel-collapsible.panel-collapsed .panel-body {
  display: none;
}

.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-list-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1em 0;
  border-bottom: 1px solid var(--card-alt);
}

.detail-list-row:last-child {
  border-bottom: none;
}

.detail-list-row:first-child {
}

.detail-list-label {
  color: var(--card-fg-alt);
}

.detail-list-value {
  font-weight: bold;
  text-align: right;
}

.tns-nav {
  text-align: center;
  margin: 10px 0;
}

.tns-nav > [aria-controls] {
  width: 9px;
  height: 9px;
  padding: 0;
  margin: 0 5px;
  border-radius: 50%;
  background: #ddd;
  border: 0;
}

.tns-nav > .tns-nav-active {
  background: #999;
}

.fixture-date {
  /*background: var(--clr-neutral-700);
  color:white;
  padding:1rem;
  font-family: $display-font;

  text-align: center;
  h3 {
      margin:0;
  }

  @include mq(l) {
      font-size: 1.5em;
  }*/
  padding: 1rem;
}
.fixture-date h3 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}
@media only screen and (min-width: 60em) {
  .fixture-date {
    font-size: 1.2em;
  }
}

.fixtures-competition {
  background: var(--clr-neutral-200);
  padding: 1rem;
  font-family: "Inter", sans-serif;
  text-align: center;
}
.fixtures-competition h3 {
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
}
@media only screen and (min-width: 60em) {
  .fixtures-competition {
    font-size: 1.5em;
  }
}

.fixture-competition {
  background: var(--clr-neutral-500);
  color: white;
  padding: 1rem;
  text-align: center;
}
.fixture-competition p {
  margin: 0;
}
@media only screen and (min-width: 60em) {
  .fixture-competition {
    font-size: 1.2em;
  }
}

.fixtures-grid {
  margin:1rem 0;
  display:grid;
  grid-template-columns: 1fr;
  gap:1rem;
}

.fixtures-grid-3col {
}

@media (min-width: 768px) {
  .fixtures-grid-3col {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (min-width: 1024px) {
  .fixtures-grid-3col {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.fixture-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 1rem;
  border-top:1px solid var(--card-alt);
}

.fixture-item:hover {
  background:var(--card-alt);
}

.fixture-item__header, .fixture-item__footer {
  padding:0 0 0.25rem 0;
  font-size:0.8rem;
  display:block;
  text-align: center;
  color:var(--card-fg-alt);
}

.fixture-item__header__right {
  text-align:right;
}

.fixture-item__footer__item {
  display: flex;
  align-items: center;
}

.fixture-item__footer__item i {
  margin-right:0.5rem;
  font-size:1rem;
}

.fixture-item__link, .fixture-item__wrapper {
  /*padding:1rem;
  border-radius:1rem;*/
  display:block;
  width:100%;
}

/*.fixture-item__link:hover {
  background:var(--accent-light);
}*/

.fixture-item__teams {
  display:flex; flex-direction:column; flex-grow:1;
}

.fixture-item__team {
  padding:0.5rem 0;
  align-items: center;
  display:flex;
  flex-direction:row;
}

.fixture-item__team-name {
  flex-grow:1;
}

.fixture-item__score {
  background:var(--card-alt);
  padding:0.2rem 0.5rem;
  border-radius:0.5rem;
}

.fixture-item__score__winner {
  background:#20bf6b;
  color:#fff;
}

.fixture-item__score__loser {
  background:#eb3b5a;
  color:#fff;
}

.fixture-item .date, .fixture-item .home-team, .fixture-item .away-team, .fixture-item .result, .fixture-item .venue, .fixture-item .view, .fixture-item .type {
  padding: 0 0.5rem;
}
.fixture-item__body {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  gap:1rem;
}
.fixture-item .home-team, .fixture-item .away-team {
  display: block;
}
@media only screen and (min-width: 40em) {
  .fixture-item .home-team, .fixture-item .away-team {
  }
}
.fixture-item .result {
  display: block;
  text-align: center;
  font-weight: 700;
}
.fixture-item .type {
  line-height: 1;
  font-size: 24px;
  text-align: right;
  width: 10%;
}
@media only screen and (min-width: 60em) {
  .fixture-item .type {
    width: 4%;
  }
}
.fixture-item .home-team {
  text-align: right;
}

.fixture__header {
  
        background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
        background:var(--card-bg);
        margin-bottom:1rem;
  text-align: center;
}

.fixture__header__header, .fixture__header__footer {
  background:rgba(0,0,0,0.3);
  color:#fff;
  padding:1rem;
}

.fixture__header__header a, .fixture__header__footer a {
  color:#fff;
}

.fixture__header__header {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1rem;
  text-align: left;
}

.fixture__header__detail {
  margin:0.5rem 0;
  padding:1rem;
  display:grid;
  gap:1rem;
}
@media only screen and (min-width: 60em) {
  .fixture__header__detail {
    grid-template-columns:1fr 200px 1fr;
  }
}

.fixture__header__date, .fixture__header__competition, .fixture__header__venue {
  font-size:0.9rem;
}

.fixture__header__competition {
  text-align: right;
}

.fixture__header__time {
  background: var(--card-alt);
  padding:0.5rem 1rem;
  border-radius: 1rem;
}

.fixture__header__detail__result {
  font-weight:700;
  font-size:2.5rem;
}

.fixture__header__score {
  background:var(--card-alt);
  padding:0.4rem 1rem;
  border-radius:0.5rem;
}

.fixture__header__detail__team {
  font-weight:700;
  font-size:2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color:#fff;
}

.fixture__header__detail__team a {
  color:#fff;
}

.fixture__header__score__winner {
  background:#20bf6b;
  color:#fff;
}

.fixture__header__score__loser {
  background:#eb3b5a;
  color:#fff;
}

/*.fixture-item__footer {
  margin-top:0.5rem;
  display:block; font-size: 0.9em; text-transform: uppercase;
  text-align: center;
}*/

.btn {
  cursor: pointer;
  font-weight: 700;
  border-radius: 0.3em;
  padding: 0.5em 1em;
  border: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  display: inline-block;
  text-decoration: none;
}
.btn:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
}

.btn-lg {
  width: 100%;
}

.btn-block {
  display: block;
}

.btn-admin {
  background:#fc0;
  color:#000;
}

.btn-admin:hover {
  background:#f60;
  color:#000;
}

/*.btn-primary {
  background: var(--clr-primary-400);
  color: var(--clr-neutral-100);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg-hover);
}*/

.item-with-icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}

.item-icon {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: #ccc;
  margin-right: 10px;
  padding: 9px 0;
  font-size: 32px;
  color: #fff;
  text-align: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

a.full-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.match-detail-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  border-top: 1px solid var(--card-alt);
}
@media only screen and (min-width: 40em) {
  .match-detail-row {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
}
.match-detail-row.full-result {
  background: var(--card-alt);
}

.match-detail {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
@media only screen and (min-width: 40em) {
  .match-detail {
    width: 50%;
  }
}

.match-detail.home {
  border-bottom: 1px solid var(--clr-neutral-300);
}
@media only screen and (min-width: 40em) {
  .match-detail.home {
    border-bottom: 0;
  }
}

@media only screen and (min-width: 40em) {
  .match-detail.away {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
  }
}

.match-title {
  background: var(--clr-neutral-300);
  display: block;
  padding: 0.5rem;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}
@media only screen and (min-width: 40em) {
  .match-title {
    display: none;
  }
}

.match-player {
  display: block;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.player-name {
  display: block;
  padding: 0.5rem;
  width: 100%;
}

.match-score {
  width: 3.5rem;
  padding: 0.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/*@forward 'form';
@forward 'buttons';
@forward 'list_group';
@forward 'labels';
@forward 'alerts';
@forward 'menu_icon';
@forward 'dropdown';
@forward 'fixture_item_BU';
@forward 'item_icon';*/
/*.home-hero {
  background-image: url("../darts-generic.jpg");
  background-position: center center;
  color: var(--clr-neutral-100);
  padding: 3em 1.5em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.home-hero .home-hero-content h1 {
  margin-bottom: 0;
}*/

.home-section {
  padding-top: 1em;
}
@media only screen and (min-width: 60em) {
  .home-section {
    /*padding-top: 4em;*/
  }
}

.home-title {
  font-size: 1.5rem;
  position: relative;
  font-weight:700;
}
@media only screen and (min-width: 60em) {
  .home-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}
.article-wrapper a {
  border-bottom: 1px solid #dbdbdb;
  font-weight: 700;
  text-decoration: none;
  color: #121212;
}


.announcements a {
  text-decoration: underline;
}

td.team-name {
  font-weight:700;
}

/* League table (template_output_table). Columns with a breakpoint class (lt-sm, lt-md, lt-lg) are hidden
   below that width, so extra stat columns can be added in the PHP column list and revealed at any size. */
.league-table th,
.league-table td {
  padding: 0.9em 0.4em;
}
.league-table th {
  background: transparent;
  color: var(--card-fg-alt);
  font-weight: 400;
  font-size: 0.85em;
  border-bottom: 1px solid var(--card-alt);
}
.league-table td {
  border-bottom: 1px solid var(--card-alt);
  font-variant-numeric: tabular-nums;
}
.league-table tbody tr:last-child td {
  border-bottom: 0;
}
.league-table .lt-pos {
  width: 2.75em;
  padding-left: 1em;
  text-align: left;
}
.league-table td.lt-pos {
  font-weight: 700;
}
.league-table .lt-team {
  text-align: left;
}
.league-table td.lt-team {
  font-weight: 700;
}
.league-table .lt-stat {
  width: 2.75em;
  text-align: center;
}
.league-table .lt-avg {
  width: 4.5em;
  padding-left: 0.8em;
  padding-right: 0.8em;
}
.league-table td.lt-points {
  font-weight: 700;
}
/* Position zone bar (show_extras) and movement arrow (show_extras or show_movement) */
.league-table .lt-zone {
  box-shadow: inset 4px 0 0 transparent;
}
.league-table .lt-zone-promotion {
  box-shadow: inset 4px 0 0 #2ea44f;
}
.league-table .lt-zone-relegation {
  box-shadow: inset 4px 0 0 #e5484d;
}
.league-table .lt-move {
  width: 2.5em;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  font-size: 0.6em;
}
.league-table .lt-move-up { color: #2ea44f; }
.league-table .lt-move-down { color: #e5484d; }
.league-table .lt-move-none { color: var(--card-fg-alt); }
.league-table .lt-move-num {
  margin-left: 0.15em;
}
.league-table--extras .lt-pos {
  width: 1.5em;
}
.league-table .lt-sm,
.league-table .lt-md,
.league-table .lt-lg {
  display: none;
}
@media (min-width: 576px) {
  .league-table .lt-sm { display: table-cell; }
}
@media (min-width: 768px) {
  .league-table .lt-md { display: table-cell; }
}
@media (min-width: 992px) {
  .league-table .lt-lg { display: table-cell; }
}

.page-heading {
        /*background: linear-gradient(90deg, #4807BA, #7F4BAA);
        background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
        background:var(--card-bg);*/
        color:var(--page-heading-fg);
        padding:2rem 0;
    }
    .page-heading h1 {
        font-size:2rem;
    }
    .header-tabs-container {
        margin-bottom:1rem;
        /*background:var(--card-bg);*/
    }
    .header-tabs {
        list-style-type: none;
        margin:0;
        padding:0;
        display:flex;
        overflow-x: auto;
        scroll-snap-type: none;
        gap: 1.6rem;
        /* Same look as .tabs: inset shadow so the active underline sits on top of the line */
        box-shadow: inset 0 -1px 0 rgba(128,128,128,0.3);
    }
    .header-tab {
        padding:0.5rem 0;
        border-bottom:2px solid transparent;
        white-space: nowrap;
        font-size:1.1rem;
        font-weight:600;
    }
    .header-tab a {
        color:var(--card-fg-alt);
        text-decoration:none;
    }
    .header-tab a:hover {
        color:var(--card-fg);
    }
    .header-tab.active {
        border-bottom-color:var(--card-fg);
    }
    .header-tab.active a {
        color:var(--card-fg);
        font-weight:700;
    }
    .stat_wins {
        font-weight:700;
        font-size:1.5rem;
    }

    /* Player page: season stats */
    .player-stats {
        display:grid;
        grid-template-columns:1fr 1fr 1fr;
    }
    .player-stats--wrap {
        grid-template-columns:repeat(auto-fit, minmax(7rem, 1fr));
    }
    .player-stat {
        text-align:center;
        padding:1rem;
    }
    .player-stat p {
        margin:0;
    }
    .player-stat__label {
        font-size:0.9rem;
        color:var(--card-fg-alt);
    }
    .player-stat__value {
        font-size:1.2rem;
        font-weight:700;
    }
    .player-stat__percent,
    .player-stat__breakdown {
        font-size:0.8rem;
    }

    /* Player page: match list */
    .player-match {
        margin-bottom:0.5rem;
        display:flex;
        gap:1rem;
        padding:1rem;
        border-top:1px solid var(--bg);
    }
    .player-match__outcome {
        display:flex;
        align-items:center;
    }
    .player-match__details {
        flex-grow:1;
    }
    .player-match__date {
        font-size:0.8rem;
        color:var(--card-fg-alt);
    }
    .player-match__score {
        display:flex;
        align-items:center;
        gap:1px;
    }
    .player-match__score-home,
    .player-match__score-away {
        background:var(--card-alt);
        padding:0.25rem 0.5rem;
        text-align:center;
        font-weight:700;
        width:100%;
    }
    .player-match__score-home {
        border-top-left-radius:0.5rem;
        border-bottom-left-radius:0.5rem;
    }
    .player-match__score-away {
        border-top-right-radius:0.5rem;
        border-bottom-right-radius:0.5rem;
    }

    .outcome-badge {
        display:inline-block;
        text-align:center;
        line-height:32px;
        font-weight:700;
        color:var(--result-fg);
        width:32px;
        height:32px;
    }
    .outcome-badge--win {
        background:var(--result-win);
        color:#fff;
    }
    .outcome-badge--loss {
        background:var(--result-loss);
        color:#fff;
    }
    .outcome-badge--draw {
        background:var(--result-draw);
    }

    /* Fixture page: result rows (overall result + each game) */
    .fixture-result {
        display:grid;
        grid-template-columns:minmax(0, 1fr) 4rem minmax(0, 1fr);
        gap:1rem;
        padding:0.5rem 0;
        border-bottom:1px solid var(--card-alt);
    }
    .fixture-result--overall {
        padding:1rem 0;
        font-size:1.4rem;
        font-weight:700;
    }
    .fixture-result__home,
    .fixture-result__away {
        display:flex;
        align-items:center;
        font-weight:700;
    }
    .fixture-result__home {
        justify-content:right;
        text-align:right;
    }
    .fixture-result__away {
        justify-content:left;
    }
    .fixture-result__walkover-loser {
      color:var(--card-fg-alt);
      text-decoration: line-through;
    }
    .fixture-result__home--players,
    .fixture-result__away--players {
        flex-direction:column;
    }
    .fixture-result__home a {
        display:block;
    }
    .fixture-result__score {
        display:flex;
        align-items:center;
        gap:0.2rem;
    }
    .fixture-result__score-home,
    .fixture-result__score-away {
        padding:0.25rem 0.5rem;
        text-align:center;
        font-weight:700;
        width:100%;
    }
    .fixture-result__score-home {
        border-top-left-radius:0.5rem;
        border-bottom-left-radius:0.5rem;
    }
    .fixture-result__score-away {
        border-top-right-radius:0.5rem;
        border-bottom-right-radius:0.5rem;
    }
    /* White text on the green / red backgrounds in both light and dark mode */
    .fixture-result__score--win {
        background:var(--result-win);
        color:#fff;
    }
    .fixture-result__score--loss {
        background:var(--result-loss);
        color:#fff;
    }
    .fixture-result__score--draw {
        background:var(--result-draw);
    }
    .fixture-result__score-vs {
        width:100%;
        text-align:center;
        font-weight:400;
        font-size:0.8rem;
        background:var(--accent-dark);
        color:var(--accent-fg);
        padding:0.25rem 0.5rem;
        border-radius:4px;
    }

    /* Fixture list items reuse the fixture-result layout */
    .fixture-item .fixture-result {
        width:100%;
        padding:0;
        border-bottom:0;
    }


    .tabs {
        list-style-type: none;
        margin:0;
        padding:0;
        display:flex;
        overflow-x: auto;
        scroll-snap-type: none;
        gap: 1.6rem;
        /* Inset shadow rather than border so the active tab's underline sits on top of the line */
        box-shadow: inset 0 -1px 0 rgba(128,128,128,0.3);
    }
    .tabs-container {
        margin-bottom:1rem;
    }
    .tab {
        padding:0.5rem 0;
        border-bottom:2px solid transparent;
        white-space: nowrap;
        font-size:1.1rem;
        font-weight:600;
    }
    .tab a {
        color:var(--card-fg-alt);
        text-decoration:none;
    }
    .tab a:hover {
        color:var(--card-fg);
    }
    .tab.active {
        border-bottom-color:var(--card-fg);
    }
    .tab.active a {
        color:var(--card-fg);
        font-weight:700;
    }

    .date-row {
      padding:1rem;
    }

    .date-box {
      display:flex;
      flex-direction: row;
      background:var(--card-alt);
      padding:1rem;
      text-align: center;
      font-weight: 700;
    }

    .date-box__day {
      font-size:2rem;
    }

    .date-box__month, .date-box__year {
      text-transform: uppercase;
      font-size:0.9rem;
      writing-mode: vertical-lr;
      text-orientation: upright;
    }

/* Forms: markup comes from Form::display_admin_field() / render_form() in core26/utilities/form.class.php */
div.form_item {
  padding:0 0 1rem;
}

div.form_item:last-child {
  padding-bottom:0;
}

div.form_item label,
.form-label {
  display:block;
  font-weight:600;
  margin-bottom:0.35rem;
  color:var(--card-fg);
}

.form_item .required {
  color:var(--danger);
}

.form-control,
div.form_item input[type="text"],
div.form_item input[type="email"],
div.form_item input[type="password"],
div.form_item input[type="number"],
div.form_item input[type="date"],
div.form_item input[type="tel"],
div.form_item input[type="url"],
div.form_item select,
div.form_item textarea {
  display:block;
  width:100%;
  max-width:100%;
  padding:0.55rem 0.75rem;
  background:var(--input-bg);
  color:var(--input-fg);
  border:1px solid var(--input-border);
  border-radius:0.4rem;
  line-height:1.4;
  transition:border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:hover,
div.form_item input:hover,
div.form_item select:hover,
div.form_item textarea:hover {
  border-color:var(--input-border-hover);
}

.form-control:focus,
div.form_item input:focus,
div.form_item select:focus,
div.form_item textarea:focus {
  outline:none;
  border-color:var(--accent-dark);
  box-shadow:0 0 0 3px var(--focus-ring);
}

.form-control::placeholder,
div.form_item input::placeholder,
div.form_item textarea::placeholder {
  color:var(--input-placeholder);
}

.form-control:disabled,
div.form_item input:disabled,
div.form_item select:disabled,
div.form_item textarea:disabled {
  background:var(--input-disabled-bg);
  cursor:not-allowed;
}

div.form_item select {
  cursor:pointer;
}

div.form_item textarea {
  min-height:8rem;
  resize:vertical;
}

/* Lets native date pickers, select arrows and scrollbars follow the theme */
.form-control,
div.form_item input,
div.form_item select,
div.form_item textarea {
  color-scheme:light dark;
}

div.form_item input[type="checkbox"],
div.form_item input[type="radio"] {
  width:1.1rem;
  height:1.1rem;
  margin:0 0.5rem 0 0;
  vertical-align:middle;
  accent-color:var(--accent-dark);
  cursor:pointer;
}

div.form_item input[type="checkbox"] + label {
  display:inline;
  font-weight:normal;
  vertical-align:middle;
  cursor:pointer;
}

div.form_item input[type="file"] {
  margin-top:0.5rem;
  color:var(--input-fg);
}

.field-invalid input,
.field-invalid select,
.field-invalid textarea {
  border-color:var(--danger);
}

.field-error {
  color:var(--danger);
  font-size:0.875rem;
  margin:0.35rem 0 0;
}

.d-none {
  display:none !important;
}

/* Form submit sits under the last fieldset panel */
form > .btn {
  margin-top:0.5rem;
}

/* Messages from MessageHandler (shown at the top of render_form()) */
.alert {
  padding:0.75rem 1rem;
  margin-bottom:1em;
  border-radius:0.4rem;
  border-left:4px solid currentColor;
}

.alert p {
  margin:0;
}

.alert p + p {
  margin-top:0.35rem;
}

.alert.alert-danger {
  background:var(--danger-bg);
  color:var(--danger);
}

.alert.alert-success {
  background:var(--success-bg);
  color:var(--success);
}

.alert.alert-warning {
  background:var(--warning-bg);
  color:var(--warning);
}

.alert.alert-info {
  background:var(--info-bg);
  color:var(--info);
}

fieldset {
  border:0;
  padding:0;
}

/* Reusable admin menu: add .has-admin-menu to any parent and put an
   .admin-menu-button and .admin-menu (ul) inside it. js/admin-menu.js toggles it. */
.has-admin-menu {
  position:relative;
}

.admin-menu-button {
  position:absolute;
  top:0;
  right:0;
  z-index:2;
  width:1.75rem;
  height:1.75rem;
  line-height:1.75rem;
  text-align:center;
  background:#fc0;
  color:#000;
  font-size:1.1rem;
  text-decoration:none;
}

.admin-menu-button:hover {
  color:#000;
  background:#e6b800;
}

.admin-menu {
  display:none;
  position:absolute;
  top:1.75rem;
  right:0;
  z-index:10; /* above every .admin-menu-button (z-index 2) so it isn't covered by later menus' buttons */
  min-width:10rem;
  margin:0;
  padding:0;
  list-style:none;
  background:#fc0;
}

.has-admin-menu.admin-menu-open > .admin-menu {
  display:block;
}

.admin-menu li a {
  display:block;
  padding:.5rem .75rem;
  color:#000;
  text-decoration:none;
}

.admin-menu li a:hover {
  background:#e6b800;
}
.show-achievement-row {
  display:block;
  margin:.5rem 0 1rem;
  padding:.5rem;
  border:2px dotted var(--input-border);
  text-align:center;
  text-decoration:none;
}

.show-achievement-row:hover {
  border-color:var(--input-border-hover);
  background:var(--card-alt);
}

.remove-achievement-row {
  display:block;
  padding:.25rem 0;
  font-size:1.5rem;
  line-height:1;
  text-align:center;
  text-decoration:none;
}

.achievement-row {
  display:flex;
  align-items:center;
  gap:.25rem;
  margin-top:.25rem;
}

.achievement-row div.form_item {
  padding:0;
}

.achievement-row .achievement-category {
  flex:1;
  min-width:0;
}

.achievement-row .achievement-value {
  width:4.5rem;
  flex:none;
}

.achievement-row .form-control,
.achievement-row div.form_item select,
.achievement-row div.form_item input[type="number"] {
  padding:.3rem .5rem;
}

.achievement-row .remove-achievement-row {
  flex:none;
  padding:0 .25rem;
}

.fixture-result__achievements {
  display:flex;
  flex-wrap:wrap;
  align-self:stretch;
  gap:.25rem;
  padding:0 .5rem .5rem;
  font-weight:400;
}

.fixture-result__home .fixture-result__achievements {
  justify-content:flex-end;
}

.fixture-result__away .fixture-result__achievements {
  justify-content:flex-start;
}

.achievement-badge {
  display:inline-block;
  padding:.1rem .5rem;
  border-radius:1rem;
  background:var(--card-alt);
  font-size:.8rem;
  white-space:nowrap;
}

/* ---- Game details (leg-by-leg match summary on a game's own page; fixture page games link to it) ---- */

.game-item--link > .fixture-result {
  position:relative;
  cursor:pointer;
}

.game-item--link > .fixture-result::after {
  content:"";
  position:absolute;
  right:.5rem;
  bottom:.4rem;
  width:.45rem;
  height:.45rem;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  opacity:.5;
  transform:rotate(-45deg);
}

.game-details {
  padding:1rem .5rem;
  background:var(--card-bg);
  color:var(--card-fg);
  border-top:1px dashed var(--card-alt);
  text-align:center;
}

.game-details__round {
  margin-bottom:1rem;
  font-weight:600;
}

.game-summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) 4rem minmax(0,1fr);
  align-items:center;
  row-gap:.4rem;
  margin-bottom:1.5rem;
}

.game-summary__player {
  font-weight:600;
  padding-bottom:.5rem;
}

.game-summary__label {
  font-size:.85rem;
  opacity:.6;
}

.game-summary__value {
  font-size:1.1rem;
}

.game-summary__value--legs {
  font-size:1.8rem;
  font-weight:700;
}

.game-summary__value--win {
  color:var(--result-win);
}

.game-summary__value--loss {
  color:var(--result-loss);
}

.game-leg {
  margin-top:1.25rem;
}

.game-leg__title {
  margin:0 0 .5rem;
  font-size:.95rem;
}

.leg-table {
  margin:0 auto;
  border-collapse:collapse;
}

.leg-table__score,
.leg-table__number {
  width:4.5rem;
  padding:.4rem .5rem;
  border:1px solid var(--card-alt);
  font-weight:600;
  font-variant-numeric:tabular-nums;
}

.leg-table__score {
  background:#111;
  color:#fff;
}

.leg-table__number {
  background:var(--card-alt);
  font-weight:400;
}

.leg-table__score--checkout {
  background:#00e85a;
  color:#000;
}

.leg-table__aux {
  width:3.5rem;
  padding:0 .4rem;
  white-space:nowrap;
}

.leg-table__aux--home {
  text-align:right;
}

.leg-table__aux--away {
  text-align:left;
}

.leg-table__finish,
.leg-table__darts {
  display:inline-block;
  font-size:.8rem;
  font-weight:600;
  line-height:1.6rem;
  text-align:center;
}

.leg-table__finish {
  min-width:2.2rem;
  padding:0 .4rem;
  background:var(--result-loss);
  color:#fff;
}

.leg-table__darts {
  min-width:1.6rem;
  border-radius:50%;
  background:var(--card-alt);
}


/* ---- Admin (pages ported from the old dashboard) ---- */

/* Destructive admin actions (delete, remove) */
.btn-danger {
  background:var(--danger);
  color:#fff;
}

.btn-danger:hover {
  background:var(--danger);
  color:#fff;
  opacity:.85;
}

/* Gear menu next to the page heading (header.php, filled by add_page_admin_link()) */
.page-heading-title {
  padding-right:2.5rem;
}

/* Edit icon next to the page H1 (set by the first "Edit ..." page admin link) */
.page-edit-icon {
  display:inline-block;
  margin-left:0.5rem;
  width:1.75rem;
  height:1.75rem;
  line-height:1.75rem;
  text-align:center;
  vertical-align:middle;
  font-size:1.1rem;
  font-weight:400;
  background:#fc0;
  color:#000;
  text-decoration:none;
}
.page-edit-icon:hover {
  background:#e6b800;
  color:#000;
}

/* Wide admin tables scroll sideways instead of widening the page */
.table-responsive {
  overflow-x:auto;
}

.admin-buttons .btn,
.admin-buttons form {
  margin:0 .25rem .25rem 0;
}

.admin-table-actions {
  margin-top:.25rem;
  font-size:.875rem;
}

/* POST buttons from admin_post_button() sit inline like links */
.admin-post-form {
  display:inline-block;
  margin:0;
}

.pagination {
  display:flex;
  flex-wrap:wrap;
  gap:.25rem;
  margin:0 0 .5rem;
  padding:0;
  list-style:none;
}

.pagination li a {
  display:block;
  padding:.25rem .6rem;
  border-radius:.3rem;
  background:var(--card-alt);
}

.pagination li.current-page a {
  background:var(--btn-bg);
  color:var(--btn-fg);
}

/* Reusable modal (js/admin-modal.js); #nav-open-overlay is the backdrop */
.admin-modal {
  display:none;
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  z-index:100;
  width:calc(100% - 2rem);
  max-width:32rem;
  max-height:calc(100vh - 2rem);
  overflow-y:auto;
}

.admin-modal.admin-modal-open {
  display:block;
}

.admin-modal-dialog {
  margin:0;
  box-shadow:0 .5rem 2rem rgba(0,0,0,.4);
}

.admin-modal-dialog .panel-header {
  position:relative;
  padding-right:3rem;
}

.admin-modal-close {
  position:absolute;
  top:.75rem;
  right:1rem;
  font-size:1.75rem;
  line-height:1;
  text-decoration:none;
}

.admin-modal-error .panel-title {
  color:var(--danger);
}

/* select2 (admin pages only) matched to .form-control */
body .select2-container--default .select2-selection--single,
body .select2-container--default .select2-selection--multiple {
  min-height:2.5rem;
  background:var(--input-bg);
  border:1px solid var(--input-border);
}

body .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height:2.4rem;
  color:var(--input-fg);
}

body .select2-container--default .select2-selection--single .select2-selection__arrow {
  height:2.4rem;
}

body .select2-dropdown {
  background:var(--input-bg);
  color:var(--input-fg);
  border-color:var(--input-border);
}

body .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color:var(--input-fg) transparent transparent transparent;
}

body .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color:transparent transparent var(--input-fg) transparent;
}

body .select2-container--default .select2-selection--single .select2-selection__placeholder,
body .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color:var(--input-placeholder);
}

body .select2-container--default .select2-selection--single .select2-selection__clear {
  color:var(--input-fg);
}

body .select2-container--default.select2-container--focus .select2-selection--multiple,
body .select2-container--default.select2-container--open .select2-selection--single,
body .select2-container--default .select2-selection--single:hover,
body .select2-container--default .select2-selection--multiple:hover {
  border-color:var(--input-border-hover);
}

body .select2-container--default.select2-container--disabled .select2-selection--single,
body .select2-container--default.select2-container--disabled .select2-selection--multiple {
  background:var(--input-disabled-bg);
}

body .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background:var(--input-disabled-bg);
  color:var(--input-fg);
  border-color:var(--input-border);
}

body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color:var(--input-fg);
}

body .select2-container--default .select2-search--dropdown .select2-search__field,
body .select2-container--default .select2-search--inline .select2-search__field {
  background:var(--input-bg);
  color:var(--input-fg);
  border-color:var(--input-border);
}

body .select2-container--default .select2-results__option--selected {
  background:var(--input-disabled-bg);
}

body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background:var(--accent-dark);
  color:var(--accent-fg);
}

body .select2-container--default .select2-results__option[aria-selected=true] {
  background:var(--input-disabled-bg);
}

body .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background:var(--accent-dark);
  color:var(--accent-fg);
}

/* Admin home tiles (admin/views/admin_home.php) */
.admin-tile {
  display:block;
  margin:0;
  padding:1.5rem 1rem;
  text-align:center;
  font-weight:700;
}

.admin-tile i {
  display:block;
  font-size:2.5rem;
  margin-bottom:.5rem;
}

.admin-tile:hover {
  background:var(--card-alt);
}

/* POST actions (admin_post_button()) inside a gear menu look like the menu's links */
.admin-menu .admin-post-form {
  display:block;
}

.admin-menu .admin-menu-post-button {
  display:block;
  width:100%;
  padding:.5rem .75rem;
  border:0;
  background:none;
  color:#000;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.admin-menu .admin-menu-post-button:hover {
  background:#e6b800;
}

/* Generated images on admin pages (league table / draw sheet images) */
.admin-generated-image {
  display: block;
  max-width: 100%;
  height: auto;
}

/* One fixture's home/away selects on the knockout draw editor */
.admin-draw-fixture {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.3);
}
.admin-draw-fixture > div {
  flex: 1 1 14rem;
}
.admin-draw-fixture > span {
  padding-bottom: 1.5rem;
}

/* Knockout bracket editor (<competition url>/admin/bracket) */
.bracket-admin-fixtures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}
.bracket-admin-fixture {
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 0.5rem;
  padding: 0.75rem;
}
.bracket-admin-slot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.bracket-admin-slot select,
.bracket-admin-name {
  flex: 1 1 auto;
  min-width: 0;
}
.bracket-admin-score {
  flex: 0 0 auto;
  min-width: 2.5rem;
  text-align: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--card-alt, rgba(128, 128, 128, 0.15));
}
.bracket-status {
  font-size: 0.8em;
  opacity: 0.7;
}

/* Live heats draw (<competition url>/admin/heats/draw) */
.heats-draw-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.heats-draw-pool li {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 0.5rem;
}
.heats-draw-pool li.heats-draw-highlight {
  background: #ffd84d;
  color: #000;
}
.heats-draw-heats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}
.heats-draw-name {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
}

/* Division fixture grid (<division url>/admin/fixture-grid) */
.fixture-grid th,
.fixture-grid td {
  text-align: center;
  white-space: nowrap;
  font-size: 0.85em;
}
.fixture-grid tbody th {
  text-align: left;
}
.fixture-grid-self {
  background: rgba(128, 128, 128, 0.25);
}

/* Scorecard image editor on the fixture page (js/img-editor.js) */
.scorecard-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}
.scorecard-image {
  display: block;
  max-width: 100%;
  height: auto;
}
.scorecard-crop-box {
  display: none;
  position: absolute;
  border: 2px dashed #2f80ed;
  background: rgba(47, 128, 237, 0.15);
  pointer-events: none;
}
[data-scorecard-upload].uploading {
  opacity: 0.6;
  pointer-events: none;
}

/* Home page division switcher (js/division-tabs.js) */
.division-pane { display: none; }
.division-pane.active { display: block; }

/* Keep the division tabs pinned to the top while scrolling */
.division-switcher > .tabs-container {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 0.5rem;
}
/* Transparent in place; solid only while stuck to the top (js/division-tabs.js adds .is-stuck) */
.division-switcher > .tabs-container.is-stuck {
  background: var(--bg);
}

/* Result form auto-fill from scorecard (js/fixture-result.js) */
.ai-fill-panel .panel-content { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.ai-fill-note { flex-basis: 100%; margin: 0; font-size: 0.875rem; opacity: 0.75; }
.ai-fill-scorecard.ai-loading { opacity: 0.6; pointer-events: none; }
.full-result-form .ai-filled { outline: 2px solid #2f80ed; outline-offset: 1px; }

/* Scorecard pinned bottom right while adding a result (js/fixture-result.js) */
.scorecard-overlay {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  padding: 0.25rem;
}
.scorecard-overlay-tools {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  display: flex;
  gap: 0.25rem;
}
.scorecard-rotate {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.25rem;
  line-height: 2rem;
  cursor: pointer;
}
.scorecard-rotate:hover { background: rgba(0, 0, 0, 0.85); }
.scorecard-open {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fc0;
  color: #000;
  font-size: 1.5rem;
  line-height: 3rem;
  cursor: pointer;
}
.scorecard-open:hover { background: #e6b800; }
.scorecard-overlay.scorecard-collapsed { background: none; box-shadow: none; padding: 0; }
.scorecard-overlay.scorecard-collapsed .scorecard-open { display: block; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); }
.scorecard-overlay.scorecard-collapsed .scorecard-overlay-tools,
.scorecard-overlay.scorecard-collapsed .scorecard-overlay-stage { display: none; }
.scorecard-crop-apply, .scorecard-crop-cancel { display: none; }
.scorecard-rotate:disabled { opacity: 0.4; cursor: default; }
.scorecard-cropping .scorecard-crop-apply, .scorecard-cropping .scorecard-crop-cancel { display: block; }
.scorecard-cropping .scorecard-overlay-tools > :not(.scorecard-crop-apply):not(.scorecard-crop-cancel) { display: none; }
.scorecard-cropping .scorecard-overlay-stage { cursor: crosshair; touch-action: none; user-select: none; }
.scorecard-overlay-stage { position: relative; overflow: hidden; }
.scorecard-overlay-image { position: absolute; display: block; max-width: none; transform-origin: center center; transition: transform 0.2s ease; }
@media (max-width: 600px) {
  .scorecard-overlay { right: 0.5rem; bottom: 0.5rem; }
}

/* Competitions schedule list (competitions/views/competitions_schedule.php) */
.schedule-item { overflow: hidden; transition: background 0.15s ease; }
.schedule-item:hover { background: var(--card-alt); }
.schedule-item-link { display: block; padding: 1rem; color: inherit; text-decoration: none; }
.schedule-item-body { flex: 1; min-width: 0; }
.schedule-item-when { margin: 0 0 0.2rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-dark); }
.schedule-item-title { margin: 0 0 0.35rem; font-size: 1.15rem; font-weight: 700; }
.schedule-item-meta { margin: 0 0 0.15rem; font-size: 0.9rem; color: var(--card-fg-alt); }
.schedule-item-label { font-weight: 600; color: var(--card-fg); margin-right: 0.25rem; }
.schedule-item-label::after { content: ":"; }
.schedule-item .detail-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.schedule-item .detail-tab { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--card-alt); color: var(--card-fg); font-size: 0.8rem; font-weight: 600; }
.schedule-item .detail-tab-closed,
.detail-tab-closed { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; background: rgba(220, 53, 69, 0.15); color: #dc3545; font-size: 0.8rem; font-weight: 600; }
.detail-tab-icon { vertical-align: -0.15em; margin-right: 0.35em; }
@media (max-width: 480px) {
  .schedule-item-link { padding: 0.75rem; }
}

/* Generic tab panes, switched by js/tabs.js */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.menu-flag {
    display: inline-block;
    margin-left: 0.4em;
    padding: 0 0.5em;
    border-radius: 3px;
    background: #c0392b;
    color: #fff;
    font-size: 0.7em;
    line-height: 1.6;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Competition entries: numbered list and admin-only status tag */
.entry-numbered-list { padding-left: 1.5em; }
.entry-numbered-list li { padding: 0.25em 0; }
.entry-withdrawn { opacity: 0.6; text-decoration: line-through; }
.entry-status { display: inline-block; margin-left: 0.5em; padding: 0.1em 0.6em; border-radius: 999px; font-size: 0.75em; font-weight: 600; text-decoration: none; background: rgba(128, 128, 128, 0.2); }
.player-role-tag { display: inline-block; margin-left: 0.5em; padding: 0.1em 0.6em; border-radius: 999px; font-size: 0.75em; font-weight: 600; text-decoration: none; background: rgba(128, 128, 128, 0.2); }
.player-role-tag:hover { background: rgba(128, 128, 128, 0.35); }
.player-status-tag { display: inline-block; margin-left: 0.5em; padding: 0.1em 0.6em; border-radius: 999px; font-size: 0.75em; font-weight: 600; }
a.player-status-tag { text-decoration: none; }
a.player-status-tag:hover { filter: brightness(1.2); }
/* Two-way view switch: the active option is solid yellow, the other is outlined */
.view-switch { display: inline-flex; margin-bottom: 1em; }
.view-switch a { padding: 0.4em 1.2em; border: 2px solid #fc0; background: transparent; color: inherit; font-weight: 600; text-decoration: none; }
.view-switch a:first-child { border-radius: 999px 0 0 999px; }
.view-switch a:last-child { border-radius: 0 999px 999px 0; margin-left: -2px; }
.view-switch a.active { background: #fc0; color: #000; }
.table-row.has-admin-menu > .table-cell { padding-right: 2.5rem; }
.player-eligible-tag { display: inline-block; margin-left: 0.5em; padding: 0.1em 0.6em; border-radius: 999px; font-size: 0.75em; font-weight: 600; background: rgba(255, 193, 7, 0.25); }
.player-status-active { background: rgba(76, 175, 80, 0.25); }
.player-status-inactive { background: rgba(244, 67, 54, 0.25); }
.entry-status-paid { background: rgba(33, 150, 243, 0.2); }
.entry-status-withdrawn { background: rgba(244, 67, 54, 0.25); }

/* Bulk scorecard upload (/admin/scorecards) */
.scorecard-dropzone { display: block; margin-top: 1rem; padding: 2rem 1rem; border: 2px dashed var(--card-alt); border-radius: 8px; text-align: center; cursor: pointer; }
.scorecard-dropzone input { display: none; }
.scorecard-dropzone:hover, .scorecard-dropzone-over { border-color: #fc0; }
.scorecard-summary { margin: 0; }
.scorecard-summary-warning { color: #f44336; font-weight: 600; }
.scorecard-card { margin: 0; border-radius: 0; border-top: 1px solid var(--card-alt); }
.scorecard-card-body { display: flex; gap: 1rem; align-items: flex-start; }
.scorecard-card-image { flex: 0 0 180px; }
.scorecard-card-image img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; border-radius: 4px; }
.scorecard-card-details { flex: 1 1 auto; min-width: 0; }
.scorecard-card-details label { display: block; margin: 0.5rem 0; font-weight: 600; }
.scorecard-card-details label .select2-container { font-weight: 400; }
.scorecard-fixture-name { font-weight: 600; }
.scorecard-fixture-meta, .scorecard-fixture-reasons, .scorecard-read, .scorecard-card-note { color: var(--card-fg-alt); font-size: 0.9em; }
.scorecard-read { margin: 0.5rem 0; }
.scorecard-card-actions { margin-top: 0.5rem; }
.scorecard-status { display: inline-block; padding: 0.1em 0.6em; border-radius: 999px; font-size: 0.75em; font-weight: 600; background: rgba(128, 128, 128, 0.2); }
.scorecard-status-matched { background: rgba(76, 175, 80, 0.25); }
.scorecard-status-needs { background: rgba(255, 193, 7, 0.25); }
.scorecard-status-chosen { background: rgba(33, 150, 243, 0.2); }
.scorecard-status-rejected { background: rgba(244, 67, 54, 0.25); }
.scorecard-rejected .scorecard-card-image, .scorecard-rejected .scorecard-read { opacity: 0.4; }
.scorecard-duplicate { box-shadow: inset 4px 0 0 #f44336; }
@media (max-width: 575px) {
    .scorecard-card-body { flex-direction: column; }
    .scorecard-card-image { flex-basis: auto; width: 100%; }
}

/* Competition results podium */
.results-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem; }
.results-place { --medal: #b87333; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.2rem; padding: 1rem 0.75rem; border-radius: 8px; border: 1px solid var(--medal); border-top-width: 4px; background: linear-gradient(160deg, color-mix(in srgb, var(--medal) 22%, transparent), color-mix(in srgb, var(--medal) 4%, transparent)); }
.results-gold { --medal: #e0a800; grid-column: 1 / -1; padding: 1.5rem 1rem; background: linear-gradient(160deg, color-mix(in srgb, #ffd54a 40%, transparent), color-mix(in srgb, #e0a800 8%, transparent)); box-shadow: 0 0 18px color-mix(in srgb, #e0a800 35%, transparent); }
.results-silver { --medal: #9aa3ad; }
.results-bronze { --medal: #b87333; }
.results-medal { font-size: 2rem; line-height: 1; color: var(--medal); }
.results-gold .results-medal { font-size: 3rem; filter: drop-shadow(0 0 6px color-mix(in srgb, #ffd54a 70%, transparent)); }
.results-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--medal); }
.results-name { font-size: 1.1rem; font-weight: 700; }
.results-gold .results-name { font-size: 1.6rem; }

/* Dark mode theme: charcoal with lime accent (palette from lime.webp) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
    --bg: #111211;
    --card-bg: #1b1c1b;
    --card-alt: #2b2c2b;
    --card-fg-alt: #a2a5a0;
    --btn-bg: #A3E635;
    --btn-fg: #111211;
    --btn-fg-hover: #111211;
    --btn-bg-hover: #BEF264;
    --accent-dark: #A3E635;
    --accent-light: #A3E635;
    --accent-fg: #111211;
    --focus-ring: rgba(163, 230, 53, 0.45);
    --input-bg: #121312;
    --input-border: #3a3c39;
    --input-border-hover: #5a5d58;
    --input-disabled-bg: #1f201f;
    }
    :root:not([data-theme="light"]) body { background: #111211 linear-gradient(to bottom, #0a0b0a 0%, #111211 45%, #181a17 100%) fixed; }
}
:root[data-theme="dark"] {
    --bg: #111211;
    --card-bg: #1b1c1b;
    --card-alt: #2b2c2b;
    --card-fg-alt: #a2a5a0;
    --btn-bg: #A3E635;
    --btn-fg: #111211;
    --btn-fg-hover: #111211;
    --btn-bg-hover: #BEF264;
    --accent-dark: #A3E635;
    --accent-light: #A3E635;
    --accent-fg: #111211;
    --focus-ring: rgba(163, 230, 53, 0.45);
    --input-bg: #121312;
    --input-border: #3a3c39;
    --input-border-hover: #5a5d58;
    --input-disabled-bg: #1f201f;
}
:root[data-theme="dark"] body { background: #111211 linear-gradient(to bottom, #0a0b0a 0%, #111211 45%, #181a17 100%) fixed; }

/* Panels: depth, faint accent-tinted gradient, accent title bar, hover lift on clickable panels */
.panel {
  background: var(--card-bg);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.panel-header { background: transparent; }
.panel-header .panel-title {
  border-left: 3px solid var(--accent-dark);
  padding-left: 0.6rem;
}
a.panel:hover, .schedule-item:hover, .panel-collapsible:hover {
  border-color: var(--accent-dark);
}
a.panel:hover, .schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 26px rgba(0, 0, 0, 0.18);
}
@media (prefers-reduced-motion: reduce) {
  .panel { transition: none; }
  a.panel:hover, .schedule-item:hover { transform: none; }
}

/* Dark mode: glass panels over the page background */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .panel {
    background: color-mix(in srgb, var(--card-bg) 72%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] .panel {
  background: color-mix(in srgb, var(--card-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Glass panels (backdrop-filter) are their own stacking contexts, so lift the one with an open admin menu above its neighbours */
.has-admin-menu.admin-menu-open { z-index: 20; }
/* Same for a menu on an item inside a panel (e.g. fixtures grouped by gameweek): lift the whole panel */
.panel:has(.admin-menu-open) { position: relative; z-index: 20; }

/* Admin button: always visible at the right of the header (admins go to /admin, others to the login page) */
.header-admin-btn {
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1.2em;
  border-radius: 999px;
  background: var(--accent-dark);
  color: var(--accent-fg);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.header-admin-btn:hover {
  color: var(--accent-fg);
  filter: brightness(1.1);
}
@media only screen and (min-width: 60em) {
  nav#site-navigation { flex: 1 1 auto; width: auto; }
}
@media only screen and (max-width: 59.99em) {
  #menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .page-heading {
    padding: 1rem 0;
  }
}

/* Player stats table: standings style, count with a small percentage pill */
.player-stats-table .lt-wl {
  width: auto;
  white-space: nowrap;
}
.player-stats-table .lt-pct {
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  background: var(--card-alt);
  color: var(--card-fg-alt);
  font-size: 0.7em;
  font-weight: 400;
}
.player-stats-table td.lt-team .player-role-tag,
.player-stats-table td.lt-team .player-eligible-tag,
.player-stats-table td.lt-team .player-status-tag {
  margin-left: 0.4em;
}

/* Wide player stats tables scroll sideways with the player name column pinned */
.player-stats-scroll {
  overflow-x: auto;
}
.player-stats-table th.lt-team,
.player-stats-table td.lt-team {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--card-bg);
}
.player-stats-table .lt-stat {
  white-space: nowrap;
  width: 3.5em;
  min-width: 3.5em;
}

/* Player stats Singles / Pairs / Combined toggle: one group is shown at a time, on every screen size. */
.stat-toggle {
  display: flex;
  margin: 1rem;
  border-radius: 999px;
  background: var(--card-alt);
  padding: 0.2rem;
}
.stat-toggle a {
  flex: 1;
  padding: 0.5em 0.75em;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9em;
  color: var(--card-fg-alt);
  text-decoration: none;
}
.stat-toggle a.active {
  background: var(--accent-dark);
  color: var(--accent-fg);
}
.player-stats-table .pst-group-row { display: none; }
.player-stats-table[data-view="singles"] .pst-pairs,
.player-stats-table[data-view="singles"] .pst-combined,
.player-stats-table[data-view="pairs"] .pst-singles,
.player-stats-table[data-view="pairs"] .pst-combined,
.player-stats-table[data-view="combined"] .pst-singles,
.player-stats-table[data-view="combined"] .pst-pairs {
  display: none;
}

/* Progress bar shown in the admin modal while a batch runs (e.g. bulk scorecard save) */
.admin-progress {
  height: 12px;
  margin: 12px 0 8px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-alt);
}
.admin-progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent-dark);
  transition: width 0.3s ease;
}
.admin-progress-text {
  margin: 0;
  text-align: center;
}

/* Fixture Generator wizard (admin/views/fixture_wizard.php) */
.fw-steps {
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-bottom:1.5rem;
}

.fw-pair {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:.5rem 0;
  border-bottom:1px solid var(--card-alt);
}

.fw-table .fw-no-slot td {
  background:rgba(220, 53, 69, .18);
}

.fw-table .fw-tick {
  color:#2e9e4f;
  font-weight:bold;
}

.fw-table .fw-warn {
  color:#c0392b;
  font-weight:bold;
}

.fw-table .admin-post-form {
  margin:0;
}

/* Quick Results (admin/views/quick_results.php) */
.qr-table .qr-score {
  width:5.5rem;
  text-align:center;
}

.qr-table .qr-score input {
  width:4.5rem;
  text-align:center;
}

.qr-table th.qr-team,
.qr-table td.qr-team {
  text-align:left;
}

.qr-table tr.qr-imported td {
  background:rgba(255, 204, 0, .18);
}

/* Live indicator (fixture page while a game is in play) */
.live-badge { display:inline-flex; align-items:center; gap:.35rem; background:#d62d20; color:#fff; font-size:.7rem; font-weight:700; letter-spacing:.08em; padding:.15rem .5rem; border-radius:3px; margin-right:.4rem; vertical-align:middle; }
.live-badge__dot { width:.5rem; height:.5rem; border-radius:50%; background:#fff; animation:live-pulse 1.2s ease-in-out infinite; }
@keyframes live-pulse { 0%,100% { opacity:1; } 50% { opacity:.25; } }
.live-panel__link { text-align:center; }
