/* Common imports for all CSS modules */
/*
 * This source is generated by bin/gen/licon.py. Run licon.py after changing public/font/lichess.sfd
 *
 * Constant names and values are pulled from private use characters defined in the sfd file.
 *
 * Character names can be edited in fontforge's "glyph info" dialog, or by editing the StartChar: line that
 * begins each character chunk in lichess.sfd
 *
 * To make these characters visible in your editor, install the lichess.ttf font (which is also generated by
 * licon.py) and then add it to your editor's font list.
 */
/* Uniboard: keep the same page layout across pages */
#insight .tab, .slist thead {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

/* text printed directly on the page background deserves special treatment (transp theme) */
#insight .box .top, .slist thead {
  box-shadow: inset 0 2px 3px -2px hsl(0, 0%, 45%), inset 0 -4px 6px -3px var(--m-body-gradient--lighten-3);
}
html.light #insight .box .top, #insight .box html.light .top, html.light .slist thead, .slist html.light thead {
  box-shadow: inset 0 3px 3px -2px #fff, inset 0 -4px 6px -3px var(--m-body-gradient--lighten-5);
}
#insight .box .top, .slist thead {
  background-image: linear-gradient(to bottom, var(--c-metal-top), var(--c-metal-bottom));
}

#insight .boards .vstext, .ms-choice {
  white-space: nowrap;
  overflow: hidden;
}

.ms-drop ul > li.multiple label, .ms-choice > span {
  white-space: nowrap;
}

#insight .boards .vstext__pl, #insight .boards .vstext__op, .ms-drop ul > li.multiple label, .ms-choice > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

#insight .loading .spinner {
  position: absolute;
  width: 100%;
  height: 100%;
}

#insight .tutor-link, #insight .loading .spinner {
  /* extends %flex-wrap */
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

#insight .panel-tabs, #insight .view-tabs {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

#insight header {
  /* extends %flex-center */
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
}

#insight .boards .vstext {
  /* extends %flex-center */
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
}

#insight .tutor-link > span {
  display: flex;
  flex-flow: column;
}

#insight .boards a, #insight .boards .vstext, #insight .tutor-link, #insight .presets, .ms-drop {
  border-radius: 7px;
}

/* helps with clipping background into border-radius */
.ms-drop {
  overflow: hidden;
}

#insight .box .top, #insight header {
  border-radius: 7px 7px 0 0;
}

#insight .box {
  border-radius: 0 0 7px 7px;
}

.ms-drop, #insight .boards .vstext, #insight .tutor-link, #insight .presets {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.18), 0 1px 5px 0 rgba(0, 0, 0, 0.1);
}

html.transp #insight .boards .vstext, #insight .boards html.transp .vstext, html.transp #insight .tutor-link, #insight html.transp .tutor-link, html.transp #insight .presets, #insight html.transp .presets {
  backdrop-filter: blur(6px);
}

html.transp .ms-drop {
  backdrop-filter: blur(6px);
}

.slist {
  width: 100%;
  border-bottom: 1px solid var(--c-border);
}
.slist thead th {
  border-bottom: 1px solid var(--c-border);
  padding: 0.5rem 0.8rem;
}
html.light .slist thead th {
  border-top: 1px solid var(--c-border);
}
.slist thead th.large {
  font-size: 1.2rem;
}
.slist td {
  padding: 1rem;
}
.slist td .label {
  font-family: monospace;
  font-size: 0.8rem;
}
.slist tbody tr:nth-child(even) {
  background: var(--c-bg-zebra);
}
.slist td:first-child,
.slist th:first-child {
  padding-inline-start: 1.5rem;
}
.slist-pad td:first-child,
.slist-pad th:first-child {
  padding-inline-start: var(---box-padding);
}
.slist-pad td:last-child,
.slist-pad th:last-child {
  padding-inline-end: var(---box-padding);
}
.slist-invert tbody tr:nth-child(odd) {
  background: var(--c-bg-zebra);
}
.slist-invert tbody tr:nth-child(even) {
  background: none;
}

.slist-wrapper {
  overflow-x: auto;
  max-width: calc(100vw - var(---box-padding) * 2);
}
@media (max-width: 649.29px) {
  .slist-wrapper .slist {
    min-width: calc(650px - var(---box-padding) * 2);
  }
}

/* requires each td to have a data-label attribute */
@media (max-width: 649.29px) {
  .slist.slist-resp {
    border-collapse: collapse;
    table-layout: fixed;
  }
  .slist.slist-resp thead {
    border: none;
    clip-path: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  .slist.slist-resp tr {
    display: block;
    border-top: 1px solid var(--c-border);
  }
  .slist.slist-resp td {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem var(---box-padding);
    border-top: 1px solid var(--c-border);
  }
  .slist.slist-resp td::before {
    /* aria-label has no advantage, it won't be read inside a table
       content: attr(aria-label); */
    content: attr(data-label);
  }
}

@media (max-width: 499.29px) {
  .stack-row {
    display: flex;
    flex-direction: column;
  }
  .stack-row td {
    width: 100%;
    padding-inline-start: var(---box-padding);
    padding-inline-end: var(---box-padding);
  }
}
.ms-parent {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}

.ms-choice {
  display: block;
  width: 100%;
  height: 26px;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--c-border);
  text-align: left;
  line-height: 26px;
  text-decoration: none;
  border-radius: 2px;
  background-color: var(--c-bg-box);
}

.ms-choice.disabled {
  background-color: var(--c-shade);
  background-image: none;
  cursor: default;
}

.ms-choice > span {
  position: absolute;
  top: 0;
  left: 0;
  right: 20px;
  display: block;
  padding-left: 8px;
}

.ms-choice > div {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 25px;
  background: url("../hashed/multiple-select.b0a8e7df.png") left top no-repeat;
}

.ms-choice > div.open {
  background: url("../hashed/multiple-select.b0a8e7df.png") right top no-repeat;
}

.ms-drop {
  width: 100%;
  display: none;
  margin-top: -1px;
  padding: 0;
  position: absolute;
  z-index: 1000;
  background: var(--c-bg-box);
  border: 1px solid var(--c-border);
}

.ms-drop.bottom {
  top: 100%;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
}

.ms-drop.top {
  bottom: 100%;
  box-shadow: 0 -4px 5px rgba(0, 0, 0, 0.15);
}

.ms-search {
  display: inline-block;
  margin: 0;
  min-height: 26px;
  padding: 4px;
  position: relative;
  white-space: nowrap;
  width: 100%;
  z-index: 10000;
}

.ms-search input {
  width: 100%;
  height: auto !important;
  min-height: 24px;
  padding: 0 20px 0 5px;
  margin: 0;
  outline: 0;
  font-size: 1em;
  border: 1px solid var(--c-border);
  border-radius: 0;
  box-shadow: none;
  background: url("../hashed/multiple-select.b0a8e7df.png") no-repeat 100% -22px;
}

.ms-drop ul {
  overflow: auto;
  margin: 0;
  padding: 5px 8px;
}

.ms-drop ul > li {
  list-style: none;
  display: list-item;
  background-image: none;
  position: static;
}

.ms-drop ul > li .disabled {
  opacity: 0.35;
}

.ms-drop ul > li.multiple {
  display: block;
  float: left;
}

.ms-drop ul > li.group {
  clear: both;
}

.ms-drop ul > li.multiple label {
  width: 100%;
  display: block;
}

.ms-drop ul > li label {
  font-weight: normal;
  display: block;
  white-space: nowrap;
}

.ms-drop ul > li label.optgroup {
  font-weight: bold;
}

.ms-drop input[type=checkbox] {
  vertical-align: middle;
}

.ms-drop .ms-no-results {
  display: none;
}

#insight .filters .box {
  border-bottom-width: 0;
  overflow: visible;
}
#insight .filters .box:last-child {
  border-bottom-width: 1px;
}
#insight .filters .ms-parent {
  display: block;
}
#insight .filters .ms-parent:last-child .ms-choice {
  border-bottom: 0;
}
#insight .filters .ms-parent.selected .ms-choice {
  background: linear-gradient(to right, var(--m-accent--fade-30) 0, var(--m-accent--fade-30) 5px, rgba(0, 0, 0, 0) 5px, rgba(0, 0, 0, 0) 100%);
}
html[dir=rtl] #insight .filters .ms-parent.selected .ms-choice {
  background: linear-gradient(to left, var(--m-accent--fade-30) 0, var(--m-accent--fade-30) 5px, rgba(0, 0, 0, 0) 5px, rgba(0, 0, 0, 0) 100%);
}
#insight .filters .ms-parent:hover .ms-choice {
  background: var(--m-accent_bg--mix-20);
}
#insight .filters .ms-choice {
  transition: all 150ms ease;
  padding: 15px 10px;
  border-width: 0 0 1px 0;
}
#insight .filters .ms-choice.selected {
  background: var(--m-primary_bg--mix-20);
  border-left: 3px solid var(--c-link);
}
#insight .filters .ms-choice span {
  text-align: right;
}
@media (max-width: 649.29px) {
  #insight .filters .ms-choice span {
    text-align: left;
  }
}
#insight .filters .ms-choice span {
  line-height: 30px;
  background: none;
}
#insight .filters .ms-choice div {
  top: 4px;
}
#insight .filters .ms-drop ul > li label input {
  margin-inline-end: 5px;
  cursor: pointer;
}
#insight .filters .ms-drop {
  top: 0;
  margin-inline-start: 99%;
}
@media (max-width: 649.29px) {
  #insight .filters .ms-drop {
    margin-inline-start: 50%;
  }
}
html:not([dir=rtl]) #insight .filters .ms-drop {
  left: 0;
}
html[dir=rtl] #insight .filters .ms-drop {
  right: 0;
}

#insight {
  ---chart-height: 550px;
  ---header-height: 60px;
  ---drop-menu-width: 200px;
}
#insight > div {
  display: flex;
}
#insight .view-tabs {
  align-items: flex-end;
  border-bottom: 2px solid var(--c-border);
  font-size: 1.6em;
}
#insight .tab {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.5em 0.2em;
  cursor: pointer;
  position: relative;
  color: var(--c-font-page);
  transition: color 0.25s ease;
  min-width: 15%;
}
#insight .tab::after {
  content: "";
  background: var(--m-accent--fade-40);
  height: 2px;
  position: absolute;
  width: 96%;
}
html:not([dir=rtl]) #insight .tab::after {
  left: 2%;
}
html[dir=rtl] #insight .tab::after {
  right: 2%;
}
#insight .tab::after {
  bottom: -2px;
  transition: all 0.25s ease;
  transform: scale(0);
}
#insight .tab.active::after, #insight .tab:hover::after {
  transform: scale(1);
}
#insight .tab.active {
  color: var(--c-accent);
}
#insight .crunching {
  margin: 3em 0 2em 0;
}
#insight .loading .insight__main {
  position: relative;
}
html:not([dir=rtl]) #insight .loading .spinner {
  left: 0;
}
html[dir=rtl] #insight .loading .spinner {
  right: 0;
}
#insight .loading .spinner {
  top: 0;
  height: var(---chart-height);
  opacity: 0.7;
}
#insight .loading .spinner svg {
  margin: auto;
  width: 80px;
  height: 80px;
}
#insight .broken {
  display: flex;
  flex-flow: column;
  align-items: center;
  text-align: center;
  padding: 200px 0;
  width: 100%;
}
#insight .broken i {
  font-size: 50px;
}
#insight .chart {
  height: var(---chart-height);
}
#insight .loading .chart {
  filter: blur(3px);
  opacity: 0.5;
}
#insight .chart.empty {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  font-size: 1.5em;
  opacity: 0.7;
}
#insight .chart.empty i {
  margin-bottom: 30px;
  display: block;
  font-size: 200px;
  opacity: 0.5;
}
#insight header {
  padding: 0 1vw;
  flex-wrap: nowrap;
  height: var(---header-height);
  background: var(--c-bg-zebra);
}
#insight header h2 {
  line-height: var(---header-height);
}
#insight header h2::before {
  vertical-align: top;
  line-height: var(---header-height);
  margin: 0 10px;
}
#insight header > * {
  display: inline-block;
}
#insight .insight__main {
  background: var(--c-bg-box);
  border: 1px solid var(--c-border);
  border-top: 0;
}
#insight .axis-form {
  height: var(---header-height);
  display: flex;
  flex-flow: row nowrap;
  flex: auto;
  align-items: center;
  justify-content: flex-end;
}
#insight .axis-form .by {
  margin: 0 8px;
}
@media (max-width: 399.29px) {
  #insight .axis-form .by {
    display: none;
  }
}
#insight .axis-form .ms-choice {
  padding: calc(var(---header-height) / 2) 10px;
}
@media (max-width: 499.29px) {
  #insight .axis-form .ms-choice {
    padding-left: 2px;
    padding-right: 2px;
  }
}
#insight .axis-form .ms-choice {
  border-width: 0 1px;
  border-radius: 0;
  transition: 0.15s;
}
#insight .axis-form .ms-choice span {
  line-height: var(---header-height);
  text-align: center;
}
#insight .axis-form .ms-choice div {
  top: calc(var(---header-height) / 2 - 12px);
}
#insight .axis-form .ms-drop {
  color: var(--c-font);
  width: var(---drop-menu-width);
}
#insight .axis-form .ms-drop ul > li label input {
  display: none;
}
#insight .axis-form .ms-drop ul > li.selected label {
  background: var(--c-accent);
  color: var(--c-over);
}
#insight .hscroll {
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
}
#insight .panel-tabs {
  justify-content: center;
  align-items: flex-end;
  border-bottom: 2px solid var(--c-border);
}
#insight .presets a {
  color: var(--c-font);
  display: block;
  padding: 0.7em;
  transition: all 150ms ease;
}
#insight .presets a::before {
  opacity: 0.7;
  transition: opacity 0.13s;
}
#insight .presets a:hover {
  background: var(--m-accent_bg--mix-20);
}
#insight .presets a:hover::before {
  opacity: 1;
}
#insight .presets a.active {
  color: var(--c-accent);
}
#insight .clear {
  color: var(--c-bad);
  font-size: 0.9em;
  margin-bottom: 0.5em;
}
#insight .center-clear {
  display: flex;
  height: 20px;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
}
#insight .ms-parent,
#insight .ms-parent button {
  user-select: none;
}
#insight .ms-choice:focus,
#insight .ms-parent input:focus {
  outline: 0;
}
#insight .ms-drop {
  font-size: 0.9em;
  max-height: calc(99vh - var(---site-header-height) - var(---header-height));
  overflow-y: auto;
}
#insight .ms-drop ul {
  padding: 0;
  overflow: auto;
}
#insight .ms-drop ul > li label:not(.optgroup) {
  padding: 4px 8px;
  cursor: pointer;
  transition: all 150ms ease;
  text-indent: 1em;
}
#insight .ms-drop ul > li label:not(.optgroup):hover {
  background: var(--m-accent_bg--mix-20);
}
#insight .ms-drop ul > li label.optgroup {
  border-top: 1px solid var(--c-border);
  margin-top: 5px;
  text-indent: 0;
  text-transform: uppercase;
  font-weight: normal;
  opacity: 0.6;
  padding: 6px 8px 2px 8px;
}
#insight .ms-drop ul > li:first-child label.optgroup {
  margin-top: 0;
}
#insight .box {
  overflow: visible;
}
#insight .box .top {
  padding: 1rem var(---block-gap);
  font-weight: bold;
  border-bottom: 1px solid var(--c-border);
}
#insight .box .top .utitle {
  margin-right: 3px;
}
#insight .box .content {
  padding: var(---block-gap);
}
#insight .info {
  margin-bottom: var(---block-gap);
}
#insight .info p {
  margin: 0;
}
#insight .info .insight-stale {
  padding: var(---block-gap);
}
#insight .info .insight-stale button {
  width: 100%;
}
#insight .info .share a {
  text-decoration: underline;
}
#insight .tutor-link {
  padding: 0.5em 1em;
  gap: 1em;
}
#insight .tutor-link img {
  height: 3em;
}
#insight .tutor-link {
  background: var(--m-primary_bg--mix-10);
  border: 1px solid var(--c-primary);
  margin-bottom: 1em;
}
#insight .help.box {
  margin-top: 20px;
}
#insight .help .dimension {
  margin-top: 10px;
}
#insight .help h3 {
  margin: 0;
  font-weight: bold;
}
#insight .help a {
  text-decoration: underline;
}
#insight td.data {
  font-weight: bold;
}
#insight .game-sample {
  margin: 2em 0 1em 0;
  border-top: 1px solid var(--c-border);
  box-shadow: none;
}
#insight .boards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 25%));
}
#insight .boards a {
  transition: background 150ms ease;
  color: var(--c-font);
  padding: 0.4em;
}
#insight .boards a span {
  box-shadow: none;
  background: none;
}
#insight .boards a:hover {
  background: var(--m-accent_bg--mix-20);
}
#insight .boards .vstext {
  background: var(--c-bg-box);
  padding: 0.3em 0.6em;
}
#insight .boards .vstext__pl, #insight .boards .vstext__op {
  max-width: 45%;
}
#insight .boards .vstext__pl {
  text-align: left;
}
#insight .boards .vstext__op {
  text-align: right;
}

body.no-rating rating {
  display: none;
}

/*# sourceMappingURL=insight.css.map */
