/* Barlow and Barlow Condensed, self-hosted (SIL OFL, see vendor/fonts/LICENSE-*), from @fontsource 5.3.0. */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../vendor/fonts/barlow-latin-ext-400-normal.30fe91f5bb42.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../vendor/fonts/barlow-latin-400-normal.81419bf5abb5.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../vendor/fonts/barlow-latin-ext-500-normal.eaf61d05880b.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../vendor/fonts/barlow-latin-500-normal.8e986e86d57e.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../vendor/fonts/barlow-latin-ext-600-normal.7befe7b24353.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../vendor/fonts/barlow-latin-600-normal.a1e2a2d7d4c0.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../vendor/fonts/barlow-condensed-latin-ext-500-normal.8c35f80d9e5a.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../vendor/fonts/barlow-condensed-latin-500-normal.24f826a7cf9c.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../vendor/fonts/barlow-condensed-latin-ext-600-normal.ee77e8f678d5.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../vendor/fonts/barlow-condensed-latin-600-normal.ba4513495282.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../vendor/fonts/barlow-condensed-latin-ext-700-normal.a4fc62d81f8b.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../vendor/fonts/barlow-condensed-latin-700-normal.e1180918b873.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ice: #edf1f4;
  --sheet: #ffffff;
  --ink: #14233a;
  --muted: #5b6b80;
  --rule: #d5dde5;
  --blue: #2f5fa7;
  --red: #c62f3b;
  --gold: #e3b23c;
  /* the screens' strips and timeline: play, stoppage, the neutral zone, the penalty kill; the video's stage */
  --crease: #9ccbe8;
  --stop: #b9c2cc;
  --neutral: #cbd5de;
  --plum: #7a5aa6;
  --stage: #0e1a2b;
  --num: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--ice);
  color: var(--ink);
  font: 15px / 1.45 var(--text);
}
a {
  color: var(--blue);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 40px;
}
h1 {
  margin: 0 0 12px;
  font-family: var(--num);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
}
[x-cloak] {
  display: none !important;
}
h2 {
  margin: 0 0 8px;
  font-family: var(--num);
  font-size: 22px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}
.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.usermenu {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.pop {
  position: absolute;
  z-index: 10;
  top: 100%;
  right: 0;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgb(20 35 58 / 15%);
}
.pop > a,
.pop > button {
  text-align: left;
  padding: 6px 8px;
  color: var(--ink);
  text-decoration: none;
}
.pop > a:hover,
.pop > button:hover {
  background: var(--ice);
}
button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--sheet);
  color: var(--ink);
  padding: 5px 10px;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
button.danger {
  color: var(--red);
}
button.link {
  border: 0;
  background: none;
  padding: 5px 4px;
}
.badge {
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--ice);
}
.badge.plain {
  display: inline-block;
  cursor: default;
}
.panel {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}
.row:first-child {
  border-top: 0;
}
.row .who {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.menu {
  position: relative;
  display: inline-block;
}
.empty {
  display: none;
  margin: 0;
  color: var(--muted);
}
.rows:not(:has(li)) + .empty {
  display: block;
}
.invite {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}
.invite button {
  margin-top: 21px;
}
.invite label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
  font-size: 13px;
}
.invite input,
.invite select {
  font: inherit;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  min-width: 200px;
}
.invite .ok,
.invite .error {
  flex-basis: 100%;
  margin: 0;
}
.import {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.import:first-child {
  border-top: 0;
}
.import .head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 8px;
}
.import p {
  margin: 0;
}
.import .result {
  margin: 4px 0 0;
  padding-left: 18px;
}
.invite label.check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 21px;
}
.invite label.check input {
  min-width: 0;
}
.panelhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.filter select {
  font: inherit;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 5px;
}
.ok {
  color: #1e7a46;
}
.error {
  color: var(--red);
  font-weight: 400;
}
.crumbs {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.scroll {
  overflow-x: auto;
}
table.stats {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.stats th,
.stats td {
  padding: 5px 8px;
  text-align: right;
  white-space: nowrap;
}
.stats th {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}
.stats td {
  border-bottom: 1px solid var(--ice);
}
.stats td.num {
  font-family: var(--num);
  font-size: 17px;
  font-weight: 600;
}
.stats td.time {
  font-family: var(--num);
  font-size: 16px;
}
.stats td.name,
.stats th.name {
  text-align: left;
}
.stats td.pos,
.stats th.pos {
  text-align: center;
  color: var(--muted);
}
.stats td.zero {
  color: #b5c0cc;
}
.stats td.pm-pos {
  color: var(--blue);
}
.stats td.pm-neg {
  color: var(--red);
}
.stats td.status-failed {
  color: var(--red);
}
.stats td.status-importing {
  color: var(--muted);
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 24px;
  margin: 0;
}
.facts dt {
  color: var(--muted);
  font-size: 13px;
}
.facts dd {
  margin: 0;
}

/* the app header: breadcrumbs on the left, the user menu on the right */
.apphead {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.apphead:not(:has(*)) {
  display: none;
}
.apphead .usermenu {
  margin-left: auto;
}
/* the video screens (review, Coach) use the whole width; the app header is a slim strip above their own */
.screen {
  --apphead: 36px;
}
.screen > .apphead {
  height: var(--apphead);
  margin: 0;
  padding: 0 20px;
  white-space: nowrap;
}
.screen > .apphead .crumbs {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the match card's way to its screens */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.screens a {
  display: block;
  padding: 12px 14px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.screens a:hover {
  border-color: var(--blue);
}
.screens b {
  display: block;
  font-family: var(--num);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
}
.screens span {
  color: var(--muted);
  font-size: 13px;
}

/* allauth's forms (sign in, password, email, two-factor): labels above full-width inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 14px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
}
.field input:not([type="checkbox"], [type="radio"]),
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 10px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
}
.field.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.field.check label {
  font-weight: 400;
}
.field .help {
  color: var(--muted);
  font-size: 13px;
}
.field .help ul {
  margin: 2px 0 0;
  padding-left: 18px;
}
.field .error,
.formerrors {
  color: var(--red);
  font-size: 13px;
}
.field.invalid input {
  border-color: var(--red);
}
.formerrors {
  margin: 0 0 14px;
  padding: 8px 12px;
  background: rgb(198 47 59 / 7%);
  border-left: 3px solid var(--red);
  border-radius: 4px;
}
.formerrors p {
  margin: 0;
}
a.button {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--sheet);
  color: var(--ink);
  text-decoration: none;
}
a.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* the signed-out pages: one card at centre ice, on the red centre line, between the blue lines */
body.rink {
  --circle: min(300px, 47vw);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(
      circle at 50% 50%,
      transparent calc(var(--circle) - 2px),
      rgb(198 47 59 / 30%) calc(var(--circle) - 2px) var(--circle),
      transparent var(--circle)
    ),
    linear-gradient(
      to right,
      transparent calc(50% - 3px),
      rgb(198 47 59 / 30%) calc(50% - 3px) calc(50% + 3px),
      transparent calc(50% + 3px)
    ),
    linear-gradient(
      to right,
      transparent calc(18% - 8px),
      rgb(47 95 167 / 22%) calc(18% - 8px) calc(18% + 8px),
      transparent calc(18% + 8px) calc(82% - 8px),
      rgb(47 95 167 / 22%) calc(82% - 8px) calc(82% + 8px),
      transparent calc(82% + 8px)
    ),
    var(--ice);
}
/* one grid cell for every child, so the debug toolbar or a script tag never pushes the card off centre */
body.rink > * {
  grid-area: 1 / 1;
}
.entrance {
  width: 100%;
  max-width: 360px;
  padding: 26px 26px 22px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgb(20 35 58 / 12%);
}
.entrance > .apphead {
  margin: 0;
}
.entrance h1 {
  margin-bottom: 6px;
}
.entrance h1 + p {
  margin: 0 0 20px;
  color: var(--muted);
}
/* the form's one submit is the page's action, whatever allauth's template tagged it */
.entrance form button[type="submit"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  width: 100%;
  margin-top: 4px;
  padding: 9px 12px;
  font-weight: 600;
}
.entrance .messages li {
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--ice);
  border-radius: 4px;
}
