:root {
  --nav-width: 250px;
  --col-main: #292F36;
  --col-hl: #4ECDC4;
  --col-secondary: #FFFFFF;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  padding: 50px 0 30px;
  padding-left: var(--nav-width);
  margin: 0;
  background: #FFF;
  overflow-y: scroll;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--nav-width);
  background: var(--col-main);
  padding: 20px 30px 20px 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  z-index: 100;
  font-size: 1.1rem;
}

nav .navToggle {
  position: absolute;
  opacity: 0.0001;
  pointer-events: none;
}

nav::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20px;
  background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.2)));
  background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

nav > label {
  margin: 0;
  padding: 0.2em;
  color: var(--col-hl);
}

nav :has(> .navToggle) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  opacity: 1;
}

nav :has(> .navToggle)::after {
  content: '';
  display: inlineblock;
  width: 0;
  height: 0;
  margin-left: auto;
  border: .35rem solid transparent;
  border-top-width: 0px;
  border-bottom-color: currentColor;
  -webkit-transition: -webkit-transform 0.1s;
  transition: -webkit-transform 0.1s;
  transition: transform 0.1s;
  transition: transform 0.1s, -webkit-transform 0.1s;
}

nav :has(> .navToggle) + ul {
  max-height: 0;
  -webkit-transition: max-height 0.2s cubic-bezier(0, 1, 0, 1);
  transition: max-height 0.2s cubic-bezier(0, 1, 0, 1);
  overflow: hidden;
}

nav :has(> .navToggle:checked)::after {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

nav :has(> .navToggle:checked) + ul {
  max-height: 1000px;
  -webkit-transition: max-height 0.5s ease-in-out;
  transition: max-height 0.5s ease-in-out;
}

nav ul {
  display: block;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  color: var(--col-secondary);
}

nav ul li {
  display: block;
  padding: 0;
  margin: 0.4em 0;
  font-weight: 400;
  font-size: 1rem;
}

nav ul li label, nav ul li a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  padding: 0.2em;
  font-weight: 400;
  display: block;
  border-radius: 2px;
}

nav ul li label.selected, nav ul li a.selected {
  background: var(--col-hl);
  color: var(--col-main);
}

nav ul ul {
  margin: 0;
  margin-left: 14px;
  position: relative;
  /*&::before{
				content:'';
				display: block;
				position: absolute;
				top: -0.5em;
				left: -18px;
				bottom: 0.5em;
				width: 2px;
				background: currentColor;
			}*/
}

nav ul ul li {
  font-weight: 200;
}

aside {
  position: fixed;
  background: #EEE;
  color: var(--col-main);
  top: 0;
  left: var(--nav-width);
  right: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 0.9em;
  z-index: 102;
  height: 50px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 40px;
  padding-right: 40px;
  --icon-size: 1.4rem;
}

aside::after {
  content: '';
  display: block;
  position: absolute;
  right: 0;
  left: 0;
  bottom: -5px;
  height: 5px;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.15)), to(rgba(0, 0, 0, 0)));
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
  pointer-events: none;
}

aside .width {
  margin-left: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1em;
  border-right: 1px solid #DDD;
  padding-right: 40px;
}

aside .width button {
  width: var(--icon-size);
  height: var(--icon-size);
  padding: 0;
  overflow: hidden;
  background: currentColor;
  border: none;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  opacity: 0.7;
  -webkit-transition: opacity 0.1s, color 0.1s;
  transition: opacity 0.1s, color 0.1s;
  /*&.icon--screen-smallmobile{ mask-size: 80% 80%; mask-image:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M22 4H10a2.002 2.002 0 0 0-2 2v22a2.0023 2.0023 0 0 0 2 2h12a2.0027 2.0027 0 0 0 2-2V6a2.0023 2.0023 0 0 0-2-2Zm0 2v2H10V6ZM10 28V10h12v18Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");}*/
}

aside .width button:hover, aside .width button:focus {
  opacity: 1;
}

aside .width button.selected, aside .width button:active {
  opacity: 1;
  color: var(--col-hl);
}

aside .width button.icon--screen-reset {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6 6-6-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6 6-6-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
}

aside .width button.icon--screen-mobile {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M22 4H10a2.002 2.002 0 0 0-2 2v22a2.0023 2.0023 0 0 0 2 2h12a2.0027 2.0027 0 0 0 2-2V6a2.0023 2.0023 0 0 0-2-2Zm0 2v2H10V6ZM10 28V10h12v18Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M22 4H10a2.002 2.002 0 0 0-2 2v22a2.0023 2.0023 0 0 0 2 2h12a2.0027 2.0027 0 0 0 2-2V6a2.0023 2.0023 0 0 0-2-2Zm0 2v2H10V6ZM10 28V10h12v18Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
}

aside .width button.icon--screen-tablet {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19 24v2h-6v-2z'/%3E%3Cpath d='M25 30H7a2.0023 2.0023 0 0 1-2-2V4a2.002 2.002 0 0 1 2-2h18a2.0023 2.0023 0 0 1 2 2v24a2.0027 2.0027 0 0 1-2 2ZM7 4v24h18V4Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19 24v2h-6v-2z'/%3E%3Cpath d='M25 30H7a2.0023 2.0023 0 0 1-2-2V4a2.002 2.002 0 0 1 2-2h18a2.0023 2.0023 0 0 1 2 2v24a2.0027 2.0027 0 0 1-2 2ZM7 4v24h18V4Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
}

aside .width button.icon--screen-laptop {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M26 24.0049H6a2.0023 2.0023 0 0 1-2-2v-14a2.002 2.002 0 0 1 2-2h20a2.0023 2.0023 0 0 1 2 2v14a2.0027 2.0027 0 0 1-2 2Zm-20-16v14h20v-14ZM2 26.0049h28v2H2z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M26 24.0049H6a2.0023 2.0023 0 0 1-2-2v-14a2.002 2.002 0 0 1 2-2h20a2.0023 2.0023 0 0 1 2 2v14a2.0027 2.0027 0 0 1-2 2Zm-20-16v14h20v-14ZM2 26.0049h28v2H2z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
}

aside .width button.icon--screen-desktop {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M28 4H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v4H8v2h16v-2h-4v-4h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM18 28h-4v-4h4Zm10-6H4V6h24Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M28 4H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8v4H8v2h16v-2h-4v-4h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM18 28h-4v-4h4Zm10-6H4V6h24Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
}

aside .width button[class*="--landscape"] {
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
}

aside .zoom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1em;
}

aside .zoom input {
  border: none;
  padding: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  field-sizing: content;
  margin-right: -10px;
  pointer-events: none;
}

aside .zoom span {
  opacity: 0.5;
}

aside .zoom button {
  width: var(--icon-size);
  height: var(--icon-size);
  padding: 0;
  overflow: hidden;
  background: currentColor;
  border: none;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  opacity: 0.7;
  -webkit-transition: opacity 0.1s, color 0.1s;
  transition: opacity 0.1s, color 0.1s;
}

aside .zoom button:hover, aside .zoom button:focus {
  opacity: 1;
}

aside .zoom button:active {
  opacity: 1;
  color: var(--col-hl);
}

aside .zoom button.icon--zoom-in {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M18 12h-4V8h-2v4H8v2h4v4h2v-4h4v-2z'/%3E%3Cpath d='M21.4479 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11 10.856 10.856 0 0 0 7-2.5521L27.5859 29 29 27.5859ZM13 22a9 9 0 1 1 9-9 9.01 9.01 0 0 1-9 9Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M18 12h-4V8h-2v4H8v2h4v4h2v-4h4v-2z'/%3E%3Cpath d='M21.4479 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11 10.856 10.856 0 0 0 7-2.5521L27.5859 29 29 27.5859ZM13 22a9 9 0 1 1 9-9 9.01 9.01 0 0 1-9 9Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
}

aside .zoom button.icon--zoom-out {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 12h10v2H8z'/%3E%3Cpath d='M21.4479 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11 10.856 10.856 0 0 0 7-2.5521L27.5859 29 29 27.5859ZM13 22a9 9 0 1 1 9-9 9.01 9.01 0 0 1-9 9Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 12h10v2H8z'/%3E%3Cpath d='M21.4479 20A10.856 10.856 0 0 0 24 13a11 11 0 1 0-11 11 10.856 10.856 0 0 0 7-2.5521L27.5859 29 29 27.5859ZM13 22a9 9 0 1 1 9-9 9.01 9.01 0 0 1-9 9Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
}

aside .zoom button.icon--zoom-reset {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M22.4478 21A10.855 10.855 0 0 0 25 14 10.99 10.99 0 0 0 6 6.4658V2H4v8h8V8H7.332a8.9768 8.9768 0 1 1-2.1 8H3.1912A11.0118 11.0118 0 0 0 14 25a10.855 10.855 0 0 0 7-2.5522L28.5859 30 30 28.5859Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M22.4478 21A10.855 10.855 0 0 0 25 14 10.99 10.99 0 0 0 6 6.4658V2H4v8h8V8H7.332a8.9768 8.9768 0 1 1-2.1 8H3.1912A11.0118 11.0118 0 0 0 14 25a10.855 10.855 0 0 0 7-2.5522L28.5859 30 30 28.5859Z'/%3E%3Cpath fill='none' d='M0 0h32v32H0z' data-name='&lt;Transparent Rectangle&gt;'/%3E%3C/svg%3E");
}

aside .tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

aside .tabs label {
  padding: 15px 20px 15px;
  font-weight: 700;
  -webkit-box-shadow: inset 0 0 0 0 var(--col-hl);
          box-shadow: inset 0 0 0 0 var(--col-hl);
  -webkit-transition: color 0.2s, opacity 0.2s, -webkit-box-shadow 0.2s;
  transition: color 0.2s, opacity 0.2s, -webkit-box-shadow 0.2s;
  transition: color 0.2s, box-shadow 0.2s, opacity 0.2s;
  transition: color 0.2s, box-shadow 0.2s, opacity 0.2s, -webkit-box-shadow 0.2s;
  opacity: 0.5;
}

aside .tabs label input {
  position: absolute;
  opacity: 0.0001;
  pointer-events: none;
}

aside .tabs label:has(input:checked) {
  opacity: 1;
  -webkit-box-shadow: inset 0 -3px 0 0 var(--col-hl);
          box-shadow: inset 0 -3px 0 0 var(--col-hl);
}

#content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

#content .preview {
  border: 1px solid #BBB;
  border-radius: 0.4em;
  -webkit-box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.1);
  padding: 0;
  display: block;
  overflow: hidden;
  max-width: var(--previewWidth, 100%);
  /*&.visible{
			box-shadow: 0 0 0 0.2em lime;
		}*/
}

#content .preview iframe {
  width: 100%;
  height: calc(1px * var(--iframeHeight));
  max-height: var(--previewHeight, 100%);
  margin: 0 0 -4px;
}

#content > * {
  width: min(calc(100% - 80px),800rem);
}

#content h2 {
  color: var(--col-main);
  font-size: clamp(20px, calc(18px + 1vw), 26px);
  margin: 0 -38px 10px;
  padding: 15px 38px 10px;
  background: white;
  border-bottom: 1px solid #EEE;
  z-index: 50;
}

#content hr {
  border: none;
  height: 0px;
  border-top: 2px solid var(--col-hl);
  margin: 40px 0;
}

#content hr:last-of-type {
  display: none;
}

#content h3 {
  font-size: clamp(16px, calc(12px + 1vw), 24px);
  margin: 0.5em 0 0;
  font-weight: 200;
}

#content code {
  -webkit-box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.1);
}

pre:has(code) {
  max-height: 500px;
  min-height: 47px;
  font-size: 0.8rem !important;
}

div.code-toolbar > .toolbar {
  opacity: 1 !important;
  margin-right: 18px;
  position: absolute;
  top: auto !important;
  bottom: 30px;
}

div.code-toolbar > .toolbar button {
  padding: 10px !important;
}

aside:has(input[value="canvas"]:checked) ~ #content {
  padding: 0;
  background: #EEE;
  -webkit-box-shadow: 0 0 0 100vh #EEE;
          box-shadow: 0 0 0 100vh #EEE;
}

aside:has(input[value="canvas"]:checked) ~ #content > *:not(.preview.visible) {
  position: fixed;
  left: -150vw;
  top: 10px;
  width: 20vw;
  max-height: 100px;
  pointer-events: none;
  opacity: 0.0001;
}

aside:has(input[value="canvas"]:checked) ~ #content > .preview.visible {
  -webkit-box-shadow: none;
          box-shadow: none;
  display: block;
  border: none;
  border-radius: 0;
  max-width: var(--previewWidth, 100%);
  max-height: var(--previewHeight, auto);
  width: 100% !important;
}

article.intro {
  background: #4ECDC433;
  padding: 2em;
  margin: 0 0 1em;
  border-radius: 1em;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-weight: normal;
}

article.intro > :first-child {
  margin-top: 0;
}

article.intro > :last-child {
  margin-bottom: 0;
}
