:root {
  --c-topic: #000;
  --fz-aside: .875rem;
  --fz-section-title: 1.125rem;
  --mw-document: 75rem;
  --p-header-bottom: 1rem;
  --p-separation: 6rem;
  --p-u-center: 0 2rem;
  --w-aside: 20rem;

  --dark-background: #20252C;
  --dark-color-hover: #3c4654;
  --dark-text: #fafafa;
  --dark-text-secondary: #eee;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;

}

*,
*:after,
*:before {
  box-sizing: inherit;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* SELECTION */
*::selection {
  background: rgba(6, 125, 247, 0.15);
}

pre::selection,
code::selection {
  background: #09f;
  text-shadow: none;
  opacity: 0.3;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol';
  display: block;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* RESET */

blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4,
figure,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

a,
a:hover {
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
}

iframe {
  border: 0;
}

/** UTILS */
.u-none {
  display: none !important;
}

.u-center {
  max-width: var(--mw-document);
  margin: 0 auto;
  padding: var(--p-u-center);
}

.section-title {
  color: #111;
  font-weight: 700;
  font-size: var(--fz-section-title);
  padding-bottom: .5rem;
}

.section-description {
  color: #555;
  font-size: .875rem;
  line-height: 1.5;
}

/** .header **/
.header {
  margin-bottom: 2rem;
}

.header-inner {
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: var(--p-header-bottom);
}
@media (max-width: 37.4rem){
.header-inner{
justify-content: center;
}
}
#searchbox {
  display: none;
}

@media (min-width: 37.5rem) {
  #searchbox {
    display: block;
  }
}

#nav {
  align-items: center;
  display: flex;
}

#nav a {
  border: .0625rem solid transparent;
  color: #222;
  padding: .625rem .375rem;
}

@media (min-width: 37.5rem) {
  #nav a {
    padding: .625rem .75rem;
  }
}

#nav .page-links {
  font-size: var(--fz-page-links);
}


#nav a:hover {
  background: #fff;
  color: #000;
  border-radius: .375rem;
  border: .0625rem solid #09f;
}

/** END .header **/

.body {
  display: flex;
}

hr {
  background: #ccc;
  border: 0;
  height: .0625rem;
  margin-bottom: 2rem;
}

hr.section-separation {
  background: transparent;
}

/** FOOTER **/
footer {
  background: #f1f5f9;
  padding-top: 2rem;
  text-align: center;
  padding: 4rem 0 5.375rem;
  position: relative;
}

footer .u-center {
  padding-top: 2rem;
}

footer a {
  color: #555;
  margin-right: 1rem;
}

footer a:hover {
  color: #222;
}

.footer-emote {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

/** MAIN **/
svg {
  vertical-align: middle;
}

#article {
  max-width: 50rem;
  margin: 0 auto;
  width: 100%;
}

#article-content-wrapper {
  display: flex;
}

#article-content {
  flex: 1 1;
  padding-bottom: 2rem;
}

#article-content blockquote {
  background: #fdffb7;
  border-radius: .375rem;
  padding: 1rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 1.25rem 1.25rem rgba(100, 100, 100, .1);
}

#article-content blockquote p {
  color: #000;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

#article-content p,
#article-content li {
  color: #333;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin: 0 auto;
  margin-bottom: 2rem;
  word-break: break-word;
}

#article-content ul+.highlight {
  margin-top: 1.5rem;
}

#article-content p+ul {
  margin-top: -1rem;
}

#article-content ul {
  padding-left: 1rem;
  padding-bottom: 1rem;
  list-style-position: inside;
}

#article-content li {
  color: #555;
  margin-bottom: .25rem;
  padding-bottom: 0;
}

#article-content h2,
#article-content h3,
#article-content h4,
#article-content h5 {
  color: #0068b8;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem;
}

#article-content h3 {
  color: #0e578f;
  font-size: 1.375rem;
  margin-top: 1rem;
}

#article-content h4 {
  color: #09395e;
  font-size: 1.25rem;
  margin-top: 1rem;
}

#article-content a {
  border-bottom: .125rem solid rgb(223, 242, 255);
  color: rgb(0, 129, 215);
  opacity: 7;
}

#article-content a:hover {
  background-color: rgb(216, 240, 255);
  border-bottom-color: #0000FF;
  color: #0000FF;
  opacity: 1;
}

#article iframe {
  margin-bottom: 1rem;
}

.youtube-iframe,
.highlight {
  box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.3)
}


/** HEADER **/
#logo,
#logo img {
  height: 10rem;
  transition: transform ease .3s;
  width: auto;
}

#logo:hover {
  transform: scale(1.1);
}

/** BUTTON **/
.button {
  background-color: #1890ff;
  border-color: #1890ff;
  border-radius: .25rem;
  border: 0;
  box-shadow: 0 .125rem 0 #0000000b;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  height: 2.5rem;
  line-height: 2.375rem;
  outline: 0;
  padding: 0 .9375rem;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 -0.0625rem 0 rgba(0, 0, 0, 0.12);
  width: 100%;
}

.button:hover {
  background: rgb(0, 111, 186);
  border-color: rgb(0, 111, 186);
}

.input {
  background-color: #fff;
  background-image: none;
  border-radius: .25rem;
  border: .0625rem solid #d9d9d9;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.65);
  display: inline-block;
  font-feature-settings: 'tnum';
  font-size: .875rem;
  font-variant: tabular-nums;
  height: 2rem;
  line-height: 2rem;
  list-style: none;
  margin: 0;
  outline: 0;
  padding: .25rem .6875rem;
  transition: all .3s;
  width: 100%;
}

.button:focus,
.input:focus {
  border-color: #40a9ff;
  box-shadow: 0 0 0 .25rem rgba(24, 144, 255, 0.2);
}

/** NEWSLETTER-FORM **/
#aside-sticky {
  top: 3rem;
  position: sticky;
}

#newsletter-form {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: .125rem solid #eee;
  border-radius: .3125rem;
  text-align: center;
}

#newsletter-form small {
  padding-bottom: .75rem;
  display: block;
}

#newsletter-form h3 {
  margin-bottom: .75rem;
}

#newsletter-form input {
  border-radius: 312.5rem;
  padding-left: 1rem;
}

#newsletter-form button {
  position: absolute;
  right: 0;
  width: 6.25rem;
  overflow: hidden;
  bottom: 0;
  height: 2rem;
  cursor: pointer;
  font-weight: bold;
  background: #09f;
  color: #fff;
  border-radius: 0rem 312.5rem 312.5rem 0;
  border: 0;
  top: 0;
}

/** END NEWSLETTER-FORM **/

/** #article-header **/
#article-header {
  align-items: center;
  display: flex;
  margin-bottom: 2.25rem;
  position: relative;
}

#article-header h1 {
  color: #111;
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 600;
}

#article-header picture {
  height: 12.5rem;
  opacity: .1;
  position: absolute;
  right: 0;
  width: 12.5rem;
}

#article-header img {
  object-fit: contain;
  height: 100%;
  width: 100%;
}

@media (min-width: 43.75rem) {

  #article-header picture,
  #article-header img {
    width: 6.25rem;
    height: 6.25rem;
    margin-right: 1rem;
    object-fit: contain;
    position: static;
    opacity: 1;
  }
}

/** END #article-header **/

/** #article-meta **/
#article-meta {
  color: #777;
  font-size: .75rem;
  margin-top: .5rem;
}

#article-meta a {
  border: 0;
  color: #000;
  display: block;
  font-weight: 600;
  margin-top: .5rem;
  opacity: .7;
}

@media (min-width: 37.5rem) {
  #article-meta a {
    display: inline-block;
    margin: 0;
  }
}

#article-meta a:hover {
  background: transparent;
  opacity: 1;
  text-decoration: underline;
}

#article-meta svg {
  margin-left: .25rem;
  width: 1.125rem;
}

/** END #article-meta **/

/** ARTICLE-CONTENT **/
#article-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
  text-align: center;
}

#article-pagination a {
  align-items: center;
  border-radius: .375rem;
  border: .125rem solid #eee;
  color: #000;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1rem;
  max-width: 18.75rem;
  padding: 1.5rem 1rem;
  transition: all .2s ease;
}

#article-pagination a:hover,
#article-pagination a:focus {
  background: #e8f6ff;
  border: .125rem solid #09f;
  color: #000;
  text-decoration: none;
}

#article-pagination img {
  width: 4rem;
  margin-bottom: 1rem;
}

/** ARTICLE-IMAGES **/
figure {
  margin: auto;
  padding-bottom: 1rem;
}

ul+figure {
  margin-top: 1rem;
}

figure+ul {
  margin-top: 1rem;
}

figure img+figcaption {
  padding-top: .25rem;
}

figcaption {
  color: #666;
  display: block;
  font-size: .875rem;
  font-style: italic;
  text-align: center;
}

figure.center {
  max-width: 31.25rem;
}

figure.left {
  float: left;
  max-width: 50%;
  padding: 0 1rem 0 0;
}

figure.left p {
  padding: 0;
}

figure.left img {
  height: auto;
  width: 100%;
}

/** END ARTICLE-IMAGES **/

/** #Lightbox **/
#lightbox {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  text-align: center;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
}

#lightbox section {
  align-items: center;
  display: flex;
  height: 100vh;
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
}

#lightbox div {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  width: 100%;
}

#lightbox a {
  cursor: alias;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

#lightbox svg {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

#lightbox iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/** END Lightbox **/

/** ASIDE **/
#aside {
  flex: 0 0 var(--w-aside);
}

#aside .cover {
  aspect-ratio: 16/9;
}

#aside a {
  border-radius: .25rem;
  display: block;
  outline: 0;
  position: relative;
  margin-left: -0.5rem;
  padding: .5rem;
  text-align: left;
}

#aside a:hover {
  background: #eee;
  color: #111;
}

#aside img {
  border-radius: .25rem;
  object-fit: cover;
}

#aside h4 {
  color: #333;
  font-size: .875rem;
  font-weight: 600;
  line-height: 140%;
}

.youtube-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

/** END ASIDE **/


@media screen and (max-width: 81.25rem) {
  :root {
    --mw-document: 100%;
  }
}

@media screen and (max-width: 63.9375rem) {
  :root {
    --p-separation: 0;
    --w-aside: 100%;
  }

  .body,
  #article-content-wrapper {
    flex-direction: column;
  }
}

@media screen and (max-width: 43.75rem) {
  :root {
    --p-u-center: 0 1rem;
    --p-header-bottom: 1rem;
  }

  #nav .page-links {
    display: none;
  }

  #article-header {
    display: block !important;
  }
}

lite-youtube {
  background-color: #000;
  position: relative;
  display: block;
  contain: content;
  background-position: center center;
  background-size: cover;
  cursor: pointer;
  max-width: 45rem;
}

/* gradient */
lite-youtube::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==);
  background-position: top;
  background-repeat: repeat-x;
  height: 6.875rem;
  padding-bottom: 3.125rem;
  width: 100%;
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
}

/* responsive iframe with a 16:9 aspect ratio
  thanks https://css-tricks.com/responsive-iframes/
*/
lite-youtube::after {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

lite-youtube>iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
}

/* play button */
lite-youtube>.lty-playbtn {
  width: 4.25rem;
  height: 3rem;
  position: absolute;
  transform: translate3d(-50%, -50%, 0);
  top: 50%;
  left: 50%;
  z-index: 1;
  background-color: transparent;
  /* YT's actual play button svg */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 68 48"><path fill="%23f00" fill-opacity="0.8" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z"></path><path d="M 45,24 27,14 27,34" fill="%23fff"></path></svg>');
  filter: grayscale(100%);
  transition: filter .1s cubic-bezier(0, 0, 0.2, 1);
  border: none;
}

lite-youtube:hover>.lty-playbtn,
lite-youtube .lty-playbtn:focus {
  filter: none;
}

/* Post-click styles */
lite-youtube.lyt-activated {
  cursor: unset;
}

lite-youtube.lyt-activated::before,
lite-youtube.lyt-activated>.lty-playbtn {
  opacity: 0;
  pointer-events: none;
}

.lyt-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: .0625rem;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: .0625rem;
}

twitter-widget {
  margin: 0 auto;
}

.twitter-tweet {
  margin: 0 auto;
}


/* search */
.ais-InstantSearch {
  position: relative;
}

.ais-SearchBox-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border: .0625rem solid #eee;
  border-radius: 312.5rem;
  box-shadow: none;
  caret-color: #5a5e9a;
  color: #23263b;
  flex: 1 1 0%;
  font: inherit;
  max-width: 100%;
  padding-left: 2.5rem;
  margin-right: 1rem;
  transition: box-shadow .2s ease;
}

.ais-SearchBox-input:focus {
  outline: 0;
  box-shadow: 0 0 .625rem 0rem rgb(0 153 255 / 30%);
  border: .0625rem solid transparent;
}

#hits {
  position: absolute;
  z-index: 2;
}

.ais-SearchBox-input::-ms-clear,
.ais-SearchBox-input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.ais-SearchBox-input::-webkit-search-cancel-button,
.ais-SearchBox-input::-webkit-search-decoration,
.ais-SearchBox-input::-webkit-search-results-button,
.ais-SearchBox-input::-webkit-search-results-decoration {
  display: none;
}

.ais-SearchBox-form {
  display: flex;
  font-size: .875rem;
  height: 2rem;
  line-height: 1rem;
  position: relative;
  width: 100%;
}

.ais-SearchBox-form::before {
  background: transparent url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%230099ff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%228%22%3E%3C%2Fcircle%3E%3Cline%20x1%3D%2221%22%20y1%3D%2221%22%20x2%3D%2216.65%22%20y2%3D%2216.65%22%3E%3C%2Fline%3E%3C%2Fsvg%3E) repeat scroll 0 0;
  content: "";
  height: 1rem;
  left: 1rem;
  margin-top: -.5rem;
  position: absolute;
  top: 50%;
  width: 1rem;
}

.ais-SearchBox-loadingIndicator[hidden],
#hits[hidden],
.ais-SearchBox-reset[hidden],
.ais-SearchBox-submit {
  display: none;
}

.ais-SearchBox-loadingIndicator,
.ais-SearchBox-reset {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: flex;
  fill: #09f;
  height: 1.25rem;
  justify-content: center;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
}

.ais-Hits-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ais-Hits-item {
  align-items: center;
  background: #fff;
  box-shadow: 0 0 0 .0625rem rgb(35 38 59 / 5%), 0 .0625rem .1875rem 0 rgb(35 38 59 / 15%);
  display: flex;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.25rem;
  padding: .5rem;
}

.ais-Hits-item em {
  background: #d0ecff;
}

@media (prefers-color-scheme: dark) {
  body {
    background: var(--dark-background);
  }

  h1,
  h2,
  h3 {
    color: var(--dark-text);
  }

  .ais-SearchBox-input {
    background-color: var(--dark-background);
    border-color: var(--dark-color-hover);
    color: var(--dark-text);
  }

  .home-article:hover,
  #aside a:hover {
    background: var(--dark-color-hover) !important;
  }

  #TableOfContents a {
    color: var(--dark-text-secondary) !important;
  }

  #TableOfContents ul li.active a,
  #TableOfContents a:hover {
    color: var(--dark-text);
    background: var(--dark-color-hover) !important;
  }

  :not(pre)>code {
    background: var(--dark-text) !important;
  }

  .section-title {
    color: var(--dark-text);
  }

  .home-article h2,
  .home-article .meta,
  #article-content p,
  #article-content li,
  #aside h4,
  .section-description {
    color: var(--dark-text-secondary) !important;
  }

  .home-article:hover h2 {
    color: var(--dark-text) !important;
  }

  .ais-Hits-item {
    background: var(--dark-color-hover);
  }

  #nav a {
    color: var(--dark-text);
  }

  #nav a:hover {
    color: var(--dark-text);
    background: var(--dark-color-hover);
  }

  #article-content a:hover {
    color: #09f;
    border-color: #09f;
    background-color: transparent;
  }

  #article-header h1,
  #article-meta a,
  #article-content a,
  #article-content h2,
  #article-content h3,
  #article-content h4,
  #article-content h5,
  #article-meta {
    color: var(--dark-text);
  }


  #article-content blockquote p,
  #article-content blockquote a {
    color: var(--dark-color-hover) !important;
  }

  #article-pagination a {
    color: var(--dark-text-secondary) !important;
    background: transparent;
  }

  .podcast-subscribe-title {
    color: var(--dark-text) !important;
  }

  .topic {
    background: transparent !important;
    color: var(--dark-text-secondary) !important;
  }

  .topic:hover {
    color: #09f !important;
  }

  footer {
    background: transparent;
  }

  footer a {
    color: var(--dark-text-secondary);
  }

  footer a:hover {
    color: var(--dark-text);
  }

  #newsletter-form {
    border-color: var(--dark-text-secondary);
    background: var(--dark-text-secondary);
  }

  #newsletter-form h3 {
    color: var(--dark-background);
  }
}

#TableOfContents-container {
  left: 75%;
}

/* ------------ */
/* 3. Flags */
/* ------------ */

.languageFlag {
  width: 3em;
  height: 3em;
  margin-right: 0.5em;
  vertical-align: middle;
}