:root {
  --clr-text: #202022;
  --clr-text-hc: black;
  --clr-text-lc: #75757d;
  --clr-bg: white;
  --clr-highlighter: #f2f2f7;
  --clr-highlight: #ebebf0;
  --clr-gray-1: #cecee0;
  --clr-gray-2: #93939e;
  --clr-accent: #3f3e6c;
  --clr-accent-tl: rgba(63, 62, 108, .05);
  --clr-rss: #252244;

  --clr-darken-img: #303033;
  --clr-text-on-img: #f0f0f0;
  --clr-footer-bottom: #1e1e25;

  --clr-abxy-green: #009e4e;
  --clr-abxy-blue: #1f8ccc;
  --clr-abxy-yellow: #d18217;
  --clr-abxy-red: #de2c2c;

  --clr-beginner: #1a7bb8;
  --clr-intermediate: #0b8749;
  --clr-advanced: #ba5c14;
  --clr-counterplay: #ac1b1b;

  --clr-pros: rgba(0, 158, 79, .025);
  --clr-cons: rgba(222, 44, 44, .025);

  --clr-ui-1: #cacace;
  --clr-ui-2: #a5a0cb;

  --clr-discord: #5865f2;
  --clr-discord-hc: #4b53cc;
  --clr-twitter: #1d9bf0;
  --clr-twitch: #8c45f7;
  --clr-youtube: #fd0000;

  --nav-height: 4rem;
  --page-padding: 1.5rem;
  --content-max-width: 50rem;
  --footer-margin: 2.5rem;
}
@media (max-width:48rem) {
  :root {
    --page-padding: 1rem;
  }
}
@media (min-width:64rem) {
  :root {
    --page-padding: 2rem;
  }
}

.dark {
  --clr-text: #eaeaeb;
  --clr-text-hc: white;
  --clr-text-lc: #babac5;
  --clr-bg: #2c2c3a;
  --clr-highlighter: #252532;
  --clr-highlight: #23232f;
  --clr-gray-1: #1f1f29;
  --clr-gray-2: #21212c;
  --clr-accent: #bcb7d7;
  --clr-accent-tl: rgba(188, 183, 215, .025);
  --clr-rss: #e1dfec;

  --clr-darken-img: var(--clr-bg);
  --clr-text-on-img: #ededed;
  --clr-footer-bottom: #0c0c0d;

  --clr-abxy-green: #68ca68;
  --clr-abxy-blue: #81c1e9;
  --clr-abxy-yellow: #f7e36e;
  --clr-abxy-red: #ff6666;

  --clr-beginner: #81c1e9;
  --clr-intermediate: #74cd74;
  --clr-advanced: #ffa666;
  --clr-counterplay: #ffa3a3;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
}

body {
  margin: 0;
  padding: 0;
  font: 16px system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  color: var(--clr-text);
  background-color: var(--clr-bg);
}

main {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  overflow: hidden;
  padding-bottom: var(--footer-margin);
}

p,
article ul,
article ol {
  line-height: 1.5;
}

article ul li:has(img) {
  list-style: none;
}

footer a {
  color: currentColor;
}

footer svg {
  fill: currentColor;
}

article {
  overflow: hidden;
}

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

p a,
table a,
article li a {
  border-bottom: 0px solid transparent;
}

p a:hover,
table a:hover,
article li a:hover {
  border-bottom: 1px solid currentColor;
  transition: all .05s ease-in;
}

article p a,
article li a,
.article-footer p a,
.site-section-header p a,
.bracket-desc a,
b {
  font-weight: 600;
}

button {
  cursor: pointer;
  color: currentColor;
}

blockquote {
  margin: 1rem 0;
  padding: .5rem .75rem;
  border-left: .25rem solid var(--clr-accent);
  background: var(--clr-accent-tl);
  border-radius: .25rem .5rem .5rem .25rem;
}

blockquote p {
  margin: 0 !important;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  color: var(--clr-text-hc);
  border-bottom: 1px solid var(--clr-highlight);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

article p {
  margin-bottom: .5rem;
}

article h1 {
  margin: 1rem 0;
}

article h2 {
  margin-top: 3rem;
  margin-bottom: 1.75rem;
}

article h3 {
  margin-top: 1.5rem;
}

article h4,
article h5 {
  margin-bottom: 0.375rem;
}

article ul,
article ol {
  padding-left: 1.25rem;
  margin-top: .5rem;
}

article ul ul {
  margin-top: 0;
}

article img {
  max-width: 100%;
  max-height: 450px;
  border-radius: .125rem;
}

article video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: .25rem;
  margin-top: .5rem;
}

article div:has(iframe) {
  margin-top: 1rem;
  border-radius: .125rem;
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
}/*https://www.scottohara.me/blog/2017/04/14/inclusively-hidden.html*/

.nowrap {
  white-space: nowrap;
}

.center {
  display: flex;
  justify-content: center;
}

.centered {
  margin: auto;
}

.padded-content {
  padding: 0 var(--page-padding);
  max-width: calc(var(--content-max-width) + 2*var(--page-padding));
}

.heading-link {
  border: none;
  background: none;
  font-size: inherit;
  padding: 1px 0;
  margin: 0 .2em;
}

.heading-link:active {
  transform: scale(0.9);
}

@media (prefers-reduced-motion: no-preference) {
  .heading-link:active {
    transition: transform .1s ease-out;
  }
}

.heading-link svg {
  display: none;
  height: .8em;
  padding: 0 .125rem;
  fill: var(--clr-ui-1);
}

.heading:hover .heading-link svg,
.heading-link:focus-visible svg {
  display: flex;
}

.heading-link:hover svg {
  fill: var(--clr-ui-2);
}

.heading-link ~ .copied {
  display: none;
  position: absolute;
  white-space: nowrap;
  border-radius: .3125em;
  padding: .15em .4em;
  margin-left: .25em;
  font-size: .75em;
  font-weight: normal;
  color: var(--clr-text-on-img);
  background-color: var(--clr-footer-bottom);
}

.heading-link ~ .copied:before {
  content: '';
  position: absolute;
  width: .5em;
  height: .5em;
  transform: rotate(45deg);
  z-index: -1;
  right: 95%;
  bottom: 35%;
  background-color: var(--clr-footer-bottom);
}

.data-copy-success svg {
  display: flex !important;
}

.data-copy-success .copied {
  display: inline-block;
}

.skip-nav {
  position: absolute;
  z-index: 2;
  transform: translateY(-150%);
  opacity: 0;
  color: var(--clr-text);
  background: var(--clr-highlight);
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  margin: 1rem
}

.skip-nav:focus-visible {
  transform: translateY(0);
  opacity: 100;
}

@media (prefers-reduced-motion: no-preference) {
  .skip-nav:focus-visible {
    transition: transform .1s ease-in;
  }
}

.navbar {
  height: var(--nav-height);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--clr-bg);
}

.navbar svg {
  display: flex;
  align-items: center;
  fill: currentColor;
}

.nav-logo {
  margin-left: var(--page-padding);
}

.hamb-btn {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: var(--page-padding);
}

.nav-list li {
  margin-left: clamp(.875rem, 2vw, 1.5rem);
}

.nav-list li:hover {
  color: var(--clr-text-hc);
  transform: scale(1.025);
}

.nav-list li:active {
  transform: scale(0.95);
}

@media (prefers-reduced-motion: no-preference) {
  .nav-list li:hover {
    transition: .1s ease-in-out;
  }

  .nav-list li:active {
    transition: .05s;
  }
}

.nav-list li a {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: currentColor;
  padding: .5rem 0;
}

.nav-discord svg {
  height: 1.25rem;
}

.theme-switcher {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

.theme-switcher svg {
  height: 1.5rem;
}

#theme-sun {
  display: none;
}

.dark #theme-sun {
  display: flex;
}

.dark #theme-moon {
  display: none;
}

@media (max-width:40rem) {
  .data-disable-scroll-mobile {
    height: 100%;
    overflow: hidden;
  }

  .hamb-btn {
    display: block;
    cursor: pointer;
    padding: 1rem .125rem;
    margin-right: var(--page-padding);
    background: transparent;
    border: none;
  }
  
  .hamb-line {
    display: block;
    position: relative;
    background: currentColor;
    height: .2rem;
    width: 1.75rem;
  }
  
  .hamb-line::before,
  .hamb-line::after {
    display: block;
    position: absolute;
    content: '';
    background: currentColor;
    height: 100%;
    width: 100%;
  }

  @media (prefers-reduced-motion: no-preference) {
    .hamb-line::before,
    .hamb-line::after {
      transition: all .1s ease-out;
    }
  }
  
  .hamb-line::before {
    top: .5rem;
  }
  
  .hamb-line::after {
    top: -.5rem;
  }
  
  [aria-expanded="true"] .hamb-line {
    background: transparent;
  }
  [aria-expanded="true"] .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
  }
  [aria-expanded="true"] .hamb-line::after {
    transform: rotate(45deg);
    top:0;
  }

  [aria-expanded="true"] ~ .nav-list {
    max-height: 100%;
    opacity: 100%;
  }

  [aria-expanded="true"] ~ .nav-list li a,
  [aria-expanded="true"] ~ .nav-list li button {
    display: block;
    width: 100%;
  }

  .nav-list {
    background-color: var(--clr-bg);
    display: block;
    position: fixed;
    top: var(--nav-height);
    padding-top: .25rem;
    overflow: hidden;
    width: 100vw;
    max-height: 0;
    opacity: 0;
    z-index: 2;
  }

  @media (prefers-reduced-motion: no-preference) {
    .nav-list {
      transition: all .1s ease-out;
    }
  }

  .nav-list li {
    margin-left: 0;
  }

  .nav-list li a,
  .nav-list li button {
    display: none;
    padding: 1rem var(--page-padding);
  }

  .nav-list li:hover {
    transform: scale(1);
  }

  .nav-list li a:hover,
  .nav-list li a:focus-visible,
  .nav-list li button:hover,
  .nav-list li button:focus-visible {
    background-color: var(--clr-highlighter);
  }
}

.redirect,
.footer-main-container {
  padding: 2rem var(--page-padding);
  background-color: var(--clr-darken-img);
  background-image: url("img/footer.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.dark .redirect,
.dark .footer-main-container {
  background-image: url("img/footer-dark.png");
}

.footer-main-container {
  background-position: left 8% top;
}

.footer-main-container > img {
  display: none;
}

@media (min-width:64rem) {
  .footer-main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }

  .footer-main-container > img {
    display: revert;
    max-height: 13.5rem;
    border-radius: 1.25rem;
  }
}

.footer-main {
  display: grid;
  gap: 1rem;
  color: var(--clr-text-on-img);
}

.footer-main a:hover {
  color: white;
}

.footer-main ul {
  list-style: none;
  padding: 0;
}

@media (min-width: 72rem) {
  .footer-main {
    border-right: .125rem solid rgba(237, 237, 242, .5);
  }
}

.footer-hero {
  display: flex;
  gap: 1rem;
  max-width: 32rem;
}

.footer-hero img {
  max-height: 12rem;
  border-radius: 1rem;
}

@media (min-width:45rem) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-hero {
    gap: 0;
    padding-right: 1rem;
  }

  .footer-hero > img {
    display: none;
  }
}

@media (max-width:33rem) {
  .footer-hero {
    gap: 0;
  }

  .footer-hero > img {
    display: none;
  }
}

.footer-socials {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
}

.footer-socials li:active {
  transform: scale(.95);
}

@media (prefers-reduced-motion: no-preference) {
  .footer-socials {
    transition: transform .1s ease-out;
  }
}

.footer-socials li {
  display: flex;
  align-items: center;
}

.footer-socials li a svg {
  display: flex;
  align-items: center;
  width: 2rem;
}

.footer-socials .twitter:hover svg {
  fill: var(--clr-twitter);
}

.footer-socials .twitch:hover svg {
  fill: var(--clr-twitch);
}

.footer-socials .youtube:hover svg {
  fill: var(--clr-youtube);
}

.footer-socials .join-discord {
  padding: .75rem 1rem;
  margin-right: .25rem;
  border-radius: .5rem;
  font-weight: 500;
  color: white;
  background-color: var(--clr-discord);
}

.footer-socials .join-discord:hover {
  background-color: var(--clr-discord-hc);
}

.footer-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--page-padding);
  margin-right: var(--page-padding);
}

.footer-title {
  margin: 1rem 0;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: normal;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 1rem var(--page-padding);
  background-color: var(--clr-footer-bottom);
  color: var(--clr-text-on-img);
}

.footer-bottom > * {
  display: flex;
  align-items: center;
  gap: .375rem;
}

.footer-bottom a:hover {
  color: var(--clr-text-on-img);
}

.footer-bottom svg {
  height: 1rem;
}

.home-hero {
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--clr-text-hc);
  padding: var(--page-padding);
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.home-hero h1 {
  font-size: 4.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem
}

.home-hero p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

.home-hero a {
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  background-color: var(--clr-discord);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
}

.home-hero a:hover {
  background-color: var(--clr-discord-hc);
}

.home-hero img {
  display: none;
  height: 24rem;
}

@media (min-width:64rem) {
  .home-hero {
    text-align: left;
    padding: calc(var(--page-padding) * 2);
    padding-bottom: 2.5rem;
  }

  .home-hero h1 {
    margin-bottom: 2rem;
  }

  .home-hero img {
    display: flex;
  }
}

@media (max-width:40rem) {
  .home-hero h1 {
    font-size: 4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .home-hero p {
    text-wrap: balance;
  }
}

.home-services ul {
  display: grid;
  gap: 1rem;
  max-width: fit-content;
  padding: 0 1rem;
}

.home-services ul li {
  list-style: none;
  padding-left: 0;
}

.home-services ul li a {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--clr-text);
  background: var(--clr-highlighter);
  border: .25rem solid var(--clr-highlight);
  padding: 1.5rem;
  border-radius: 1rem;
}

.dark .home-services ul li a {
  border: .25rem solid var(--clr-highlighter);
}

.home-services ul li a > * {
  margin: 0;
}

.home-services ul li a h3 {
  font-size: 2rem;
}

.home-services ul li a p {
  font-size: 1.25rem;
}

.home-services ul li a .cta {
  color: var(--clr-accent);
  font-weight: 600;
  margin-top: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .home-services ul li a:hover,
  .home-services ul li a:focus-visible {
    border: .25rem solid var(--clr-gray-1);
    transform: scale(1.01);
    transition: transform .1s ease-in;
  }

  .dark .home-services ul li a:hover,
  .dark .home-services ul li a:focus-visible {
    background: var(--clr-highlight);
    border: .25rem solid var(--clr-highlight);
  }

  .home-services ul li a:hover h3
  .home-services ul li a:focus-visible h3 {
    color: var(--clr-text-hc);
  }
}

@media (min-width:64rem) {
  .home-services ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-services ul li a {
    max-width: 25rem;
    height: 100%;
  }
}

.site-section-header {
  text-align: center;
  padding: 1.5rem var(--page-padding);
  background-color: var(--clr-highlighter);
}

.lectures {
  padding-bottom: .5rem;
}

.site-section-header h1 {
  margin: .5rem 0;
}

.page-list {
  display: grid;
  gap: 1rem;
  max-width: fit-content;
  padding: 2rem 1rem;
}

@media (min-width: 60rem) {
  .page-list {
    grid-template-columns: 1fr 1fr;
  }
}

.article-preview {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  color: var(--clr-text);
  border: .25rem solid var(--clr-highlight);
  padding: 1rem;
  border-radius: 1rem;
}

.dark .article-preview {
  background: var(--clr-highlighter);
  border: .25rem solid var(--clr-highlighter);
}

@media (prefers-reduced-motion: no-preference) {
  .article-preview:hover,
  .article-preview:focus-visible {
    background: var(--clr-highlighter);
    border: .25rem solid var(--clr-gray-1);
    transform: scale(1.01);
    transition: transform .1s ease-in;
  }

  .dark .article-preview:hover,
  .dark .article-preview:focus-visible {
    background: var(--clr-highlight);
    border: .25rem solid var(--clr-highlight);
  }

  .article-preview:hover .headline
  .article-preview:focus-visible .headline {
    color: var(--clr-text-hc);
  }
}

.article-preview > div {
  display: flex;
  flex-direction: column;
}

.thumbnail {
  height: 90px;
  width: 90px;
  border-radius: .5rem;
}

.headline {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  transition: border .05s ease-out;
}

.tagline {
  margin: 0;
  margin-top: .25rem;
  margin-bottom: .75rem;
}

@media (max-width: 40rem) {
  .page-list {
    gap: .75rem;
  }

  .article-preview {
    padding: .75rem;
    border-radius: .75rem;
  }

  .thumbnail {
    display: none;
  }
}

.rss-section {
  margin: 0 calc(var(--page-padding) / 2);
}

.rss-section div {
  background: var(--clr-highlight);
  height: 1px;
  width: 100%;
  max-width: 35rem;
  margin: auto var(--page-padding);
}

.rss {
  padding: 0 .25rem;
}

.rss:hover:not(:active) {
  transform: scale(1.025);
  transition: transform .05s ease-in;
}

.rss svg {
  fill: var(--clr-rss);
  width: 2.5rem;
  margin-top: .25rem;
}

.tag-list {
  margin: 0;
  margin-top: auto;
}

.tag-list img {
  height: 14px;
  transform: translateY(1px);
}

.tag {
  color: var(--clr-text-lc);
}

.tag-beginner,
.tag-principiante {
  color: var(--clr-beginner);
}

.tag-intermediate,
.tag-intermedio {
  color: var(--clr-intermediate);
}

.tag-advanced,
.tag-avanzado {
  color: var(--clr-advanced);
}

.tag-counterplay {
  color: var(--clr-counterplay);
}

.article-header h1 {
  margin-bottom: .5rem;
}

.article-header p {
  margin: 0;
  padding: 0;
  padding-left: .5rem;
  border-left: .25rem solid var(--clr-highlight);
}

.article-header p:first-of-type {
  border-top-left-radius: 0.25rem;
}

.article-header p:last-of-type {
  border-bottom-left-radius: 0.25rem;
}

.article-description {
  margin-right: .125rem;
}

.article-authors {
  color: var(--clr-accent);
}

.translator-separator {
  color: var(--clr-ui-1);
}

.article-header .language-picker {
  margin: .5rem 1px;
}

.language-picker {
  width: fit-content;
  text-align: left;
}

#lang-btn {
  display: inline-flex;
  align-items: center;
  font-size: inherit;
  background: var(--clr-bg);
  color: var(--clr-text);
  border: 1px solid var(--clr-gray-1);
  border-radius: .125rem;
  padding: .25rem .5rem;
}

#lang-btn::after {
  content: "";
  border: .25rem solid transparent;
  border-top-color: var(--clr-text);
  border-radius: .125rem;
  margin-left: .25rem;
  transform: translateY(1px);
  transition: all .05s ease-in;
}

#lang-btn:hover::after,
#lang-btn:focus-visible:after {
  border-top-color: var(--clr-text-hc);
}

.lang-dropdown {
  list-style: none;
  background: var(--clr-bg);
  margin: 0;
  padding: 0;
  border: 1px solid var(--clr-gray-1);
  border-top: none;
  border-radius: 0 0 .25rem .25rem;
  opacity: 0.3;
  transform: rotateX(-90deg);
  transform-origin: top center;
  transition: all .05s ease-in;
}

.lang-dropdown a {
  display: block;
  font-weight: normal;
  color: var(--clr-text);
  padding: .25rem .5rem;
}

.lang-dropdown a:hover {
  border-bottom: none;
}

.lang-dropdown li:hover a {
  background: var(--clr-highlighter);
  transition: all .05s ease-in; 
}

/* open */
#lang-btn[aria-expanded="true"] {
  border-radius: .125rem .125rem 0 0;
}

#lang-btn[aria-expanded="true"]::after {
  transform: rotate(90deg) translateY(2px) translateX(-1px);
}

#lang-btn[aria-expanded="true"]+.lang-dropdown {
  opacity: 1;
  transform: rotateX(0);
  visibility: visible;
  transition: all .05s ease-in;
}

.library-select {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 .25rem;
  max-width: 40rem;
  margin: var(--page-padding);
  margin-top: 2rem;
  margin-bottom: 0;
}

.library-select li a img {
  border: .25rem solid black;
  border-bottom: 1px solid black;
  border-radius: .125rem;
  max-width: 100%;
  height: auto;
}

@media (max-width:40rem) {
  .library-select {
    gap: 0 3px;
  }

  .library-select li a img {
    border: 3px solid black;
    border-bottom: 0px solid transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .library-select li:active {
    transform: scale(.97);
    transition: transform .05s ease-out;
  }
}

.cols-sidebar-content {
  display: grid;
  grid-template-columns: calc(var(--page-padding) + 10.5rem) auto;
}

.sidebar {
  margin-left: var(--page-padding);
  padding-top: 1rem;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #16162e;
  border: 2px solid #252244;
  border-radius: 2px;
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

.library-grid li div {
  aspect-ratio: 1 / 1;
  border: 2px solid #252244;
  display: flex;
  justify-content: center;
}

.library-grid li a div:hover,
.library-grid li a:focus-visible div {
  border: 3px solid #3f3e6c;
}

.library-grid li a div img {
  height: 2rem;
  width: auto;
  margin: auto;
}

.sidebar-thumbnail {
  width: 100%;
  border-radius: .25rem;
  margin-bottom: .5rem;
}

.toc {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - .25rem);
  height: calc(100svh - .25rem);
  position: sticky;
  top: 1rem;
  padding-bottom: var(--footer-margin);
}

#TableOfContents {
  max-height: fit-content;
  overflow: auto;
  margin-bottom: 1rem;
}

#TableOfContents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#TableOfContents li a {
  display: block;
  line-height: 1.625;
  color: var(--clr-text-lc);
}

#TableOfContents li a:hover {
  text-decoration: underline;
}

#TableOfContents .visible > a {
  color: var(--clr-text);
}

#TableOfContents ul ul li a {
  padding-left: .875rem;
  border-left: 1px solid var(--clr-highlight);
}

#TableOfContents ul ul .visible a {
  border-left: 1px solid var(--clr-gray-1);
}

.toc-btns a {
  display: inline-block;
  text-align: center;
  padding-top: .3125rem;
  border-radius: 100rem;
  border: 3px solid var(--clr-gray-1);
}

.toc-btns a svg {
  fill: var(--clr-ui-2);
  height: 1.25rem;
}

.toc-btns a:hover svg {
  fill: var(--clr-accent);
  transition: all .1s ease-in;
}

.to-top {
  width: 4rem;
}

.back-to {
  width: 2.25rem;
  margin-right: .125rem;
}

.back-to svg {
  transform: translateY(-1px) translateX(0.5px);
}

@media (max-width:48rem) {
  .cols-sidebar-content {
    grid-template-columns: auto;
  }

  .sidebar {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 1;
  }

  .library-grid,
  .sidebar-thumbnail,
  .toc-btns {
    display: none;
  }

  .toc {
    height: fit-content;
    padding: 0;
  }

  #TableOfContents {
    font-size: 14px;
    padding: .25rem .75rem;
    margin: 0;
    background: var(--clr-bg);
  }

  #TableOfContents li a {
    color: var(--clr-text);
    line-height: 1.375rem;
  }

  #TableOfContents .visible > a {
    color: var(--clr-accent);
  }

  #TableOfContents > ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.25rem;
  }

  #TableOfContents > ul li a {
    text-wrap: nowrap;
    display: block;
  }

  #TableOfContents ul ul {
    display: none;
  }
}

#jab,
#dash-attack,
#forward-tilt,
#up-tilt,
#down-tilt {
  color: var(--clr-abxy-green);
}

#neutral-air,
#forward-air,
#back-air,
#up-air,
#down-air {
  color: var(--clr-abxy-blue);
}

#forward-strong,
#up-strong,
#down-strong {
  color: var(--clr-abxy-yellow);
}

#neutral-special,
#side-special,
#up-special,
#down-special {
  color: var(--clr-abxy-red);
}

.library-table {
  overflow-x: auto;
  border: 1px solid var(--clr-gray-1);
  max-width: fit-content;
  margin-bottom: .25rem;
}

.library-table table {
  white-space: nowrap;
  text-align: center;
  border-collapse: collapse;
}

.library-table tbody tr:hover td {
  background-color: var(--clr-highlighter);
}

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

.library-table th, 
.library-table td {
  border-right: 1px solid var(--clr-gray-1);
}

.library-table th:last-child,
.library-table td:last-child {
  border-right: none;
}

.library-table th {
  padding: .25rem .5rem;
}

.library-table th a {
  color: currentColor;
}

.library-table th a:hover {
  color: var(--clr-text-hc);
}

.library-table td {
  padding: .375rem .5rem;
  vertical-align: bottom;
  border-top: 1px solid var(--clr-gray-1);
}

.library-table tr:has(sup) td {
  padding-bottom: .5rem;
}

.no-col-borders td, 
.no-col-borders th {
  border-right: none;
}

.comparison th a {
  display: flex;
  justify-content: center;
  border-bottom: none;
  width: 100%;
  min-width: 30px;
}

.comparison th img {
  display: block;
  margin: .125rem 0;
  height: 100%;
  max-height: 2rem;
}

.sticky-col {
  text-align: left;
  border-right: 2px solid var(--clr-gray-1) !important;
}

@media (min-width:calc(40rem + 1px)) {
  .sticky-col {
    position: sticky;
    position: -webkit-sticky;
    left: 0;
    background-clip: padding-box;
    background-color: var(--clr-bg);
    border-right: none !important;
    padding-right: calc(.5rem + 2px) !important;
  }

  .sticky-col::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border-right: 2px solid var(--clr-gray-1);
  }
}

.notes {
  white-space: normal;
  width: 32rem;
}

.untechable-note {
  white-space: normal;
  width: 12rem;
}

.move-notes {
  margin: 0;
  padding: 0 .5rem;
  border-left: 3px solid var(--clr-highlight);
  border-radius: 3px;
  font-style: italic;
}

.stats-notes {
  font-style: normal;
}

.hitbox-image img {
  margin-top: .25rem;
  max-width: 100%;
  height: auto;
  max-height: 12.5rem;
  border-radius: .125rem;
}

.stage-image {
  position: relative;
}

.stage-image img {
  border-radius: .125rem;
}

.stage-image img:last-child {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .2s ease-in-out;
}

.stage-image:hover img:last-child,
.stage-image:focus-visible img:last-child {
  opacity: 100;
}

.pros,
.cons {
  padding: 1.5rem;
  padding-bottom: .625rem;
  border-radius: .25rem;
  margin-top: 1rem;
}

.pros-title,
.cons-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.pros {
  background-color: var(--clr-pros);
  border: 1px solid var(--clr-abxy-green);
}

.cons {
  background-color: var(--clr-cons);
  border: 1px solid var(--clr-abxy-red);
}

.article-footer {
  margin: var(--page-padding);
  margin-bottom: 0;
  padding: 1rem;
  text-align: center;
  border: 3px solid var(--clr-gray-1);
  border-radius: .5rem;
}

.article-footer svg {
  height: .75rem;
  margin-right: .25rem;
  fill: var(--clr-ui-2);
}

.article-footer a {
  white-space: nowrap;
}

.article-footer-divider {
  height: 1px;
  background: var(--clr-highlight);
  margin: var(--footer-margin) var(--page-padding);
}

.tournament-hosts {
  max-width: var(--content-max-width);
  margin-top: .5rem;
}

@media (min-width:64rem) {
  .tournament-hosts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3vw;
    max-width: calc(2*43rem + 3vw);
  }
}

.brackets-list {
  list-style: none;
  padding: 0;
}

.brackets-list li {
  border-bottom: 1px solid var(--clr-highlight);
}

.brackets-list li:last-child {
  border-bottom: 1px solid var(--clr-bg);
}

.brackets-list h3 a {
  color: currentColor;
}

.brackets-list h3 a svg {
  height: .875em;
  padding: 0 .3125em;
  fill: var(--clr-ui-1);
}

.brackets-list h3 a:hover {
  color: var(--clr-text-hc);
}

.brackets-list h3 a:hover svg {
  fill: var(--clr-ui-2);
}

.bracket-desc {
  margin-top: .5rem;
}

.day-time-freq {
  margin: 0;
  font-family: monospace;
  font-weight: 500;
}

.error-404-img {
  padding: var(--page-padding);
  padding-top: 1rem;
  padding-bottom: 0;
  max-width: 100%;
}
