/* -------------------------------- 

File#: _2_floating-side-nav
Title: Floating Side Navigation
Descr: A floating, side navigation to quickly browse through different page sections
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

a {
  color: hsl(250, 84%, 54%);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --fk7-color-primary-hsl: 250, 84%, 54%;
  --fk7-color-bg-hsl: 0, 0%, 100%;
  --fk7-color-contrast-high-hsl: 230, 7%, 23%;
  --fk7-color-contrast-higher-hsl: 230, 13%, 9%;
  --fk7-color-bg-light-hsl: 0, 0%, 100%;
  --fk7-color-bg-lighter-hsl: 0, 0%, 100%;
  --fk7-color-black-hsl: 230, 13%, 9%;
  --fk7-color-bg-dark-hsl: 240, 4%, 95%;
  --fk7-color-white-hsl: 0, 0%, 100%;
  --fk7-color-accent-hsl: 342, 89%, 48%;
  --fk7-color-contrast-lower-hsl: 240, 4%, 85%;

  /* spacing */
  --fk7-space-3xs: 0.25rem;
  --fk7-space-2xs: 0.375rem;
  --fk7-space-xs: 0.5rem;
  --fk7-space-sm: 0.75rem;
  --fk7-space-md: 1.25rem;

  /* typography */
  --fk7-text-md: 1.2rem;
  --fk7-text-sm: 0.833rem;
  --fk7-text-sm: 0.833rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --fk7-space-3xs: 0.375rem;
    --fk7-space-2xs: 0.5625rem;
    --fk7-space-xs: 0.75rem;
    --fk7-space-sm: 1.125rem;
    --fk7-space-md: 2rem;

    /* typography */
    --fk7-text-md: 1.5625rem;
    --fk7-text-sm: 1rem;
    --fk7-text-sm: 1rem;
  }
}

/* buttons */
.fk7-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  white-space: nowrap;
  text-decoration: none;
  background: hsl(var(--fk7-color-bg-dark-hsl));
  color: hsl(var(--fk7-color-contrast-higher-hsl));
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.2s ease;
  will-change: transform;
  padding: var(--fk7-space-2xs) var(--fk7-space-sm);
  border-radius: 0.25em;
}

.fk7-btn:focus-visible {
  box-shadow: 0px 0px 0px 2px hsl(var(--fk7-color-bg-hsl)), 0px 0px 0px 4px hsla(var(--fk7-color-contrast-higher-hsl), 0.15);
  outline: none;
}

.fk7-btn:active {
  transform: translateY(2px);
}

.fk7-btn--subtle {
  background: hsl(var(--fk7-color-bg-lighter-hsl));
  color: hsl(var(--fk7-color-contrast-higher-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--fk7-color-white-hsl), 0.1), 0px 0px 0px 1px hsla(var(--fk7-color-black-hsl), 0.02), 0px 1px 3px -1px hsla(var(--fk7-color-black-hsl), 0.2), 0 0.3px 0.4px rgba(0, 0, 0, 0.025),0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
}

.fk7-btn--subtle:hover {
  background: hsl(var(--fk7-color-bg-light-hsl));
  box-shadow: inset 0px 1px 0px hsla(var(--fk7-color-white-hsl), 0.1), 0px 0px 0px 1px hsla(var(--fk7-color-black-hsl), 0.02), 0px 1px 3px -1px hsla(var(--fk7-color-black-hsl), 0.2), 0 0.1px 0.3px rgba(0, 0, 0, 0.06),0 1px 2px rgba(0, 0, 0, 0.12);
}

.fk7-btn--subtle:focus {
  box-shadow: inset 0px 1px 0px hsla(var(--fk7-color-white-hsl), 0.1), 0px 0px 0px 1px hsla(var(--fk7-color-black-hsl), 0.02), 0px 1px 3px -1px hsla(var(--fk7-color-black-hsl), 0.2), 0 0.1px 0.3px rgba(0, 0, 0, 0.06),0 1px 2px rgba(0, 0, 0, 0.12), 0px 0px 0px 2px hsl(var(--fk7-color-bg-hsl)), 0px 0px 0px 4px hsl(var(--fk7-color-contrast-high-hsl));
}

/* icons */
.fk7-icon {
  height: var(--fk7-size, 1em);
  width: var(--fk7-size, 1em);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.fk7-icon--xs {
  --fk7-size: 16px;
}

/* component */
.float-sidenav {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: hsla(var(--fk7-color-black-hsl), 0.9);
  visibility: hidden;
  opacity: 0;
}

.float-sidenav--is-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s;
}
.float-sidenav--is-visible .float-sidenav__nav {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}

.float-sidenav__nav {
  background-color: hsl(var(--fk7-color-bg-hsl));
  padding: var(--fk7-space-xs) 0 var(--fk7-space-md);
  max-height: 100%;
  overflow: auto;
  box-shadow: 0 0.9px 1.5px rgba(0, 0, 0, 0.03),0 3.1px 5.5px rgba(0, 0, 0, 0.08),0 14px 25px rgba(0, 0, 0, 0.12);
  -webkit-transform: translateY(-1em);
          transform: translateY(-1em);
}

.float-sidenav__link {
  display: block;
  padding: var(--fk7-space-2xs) var(--fk7-space-md);
  font-size: var(--fk7-text-md);
  color: hsl(var(--fk7-color-contrast-high-hsl));
  text-decoration: none;
}

.float-sidenav__link--selected {
  color: hsl(var(--fk7-color-primary-hsl));
}

.float-sidenav__close-btn {
  --fk7-size: 40px;
  width: var(--fk7-size);
  height: var(--fk7-size);
  position: -webkit-sticky;
  position: sticky;
  margin: 0 var(--fk7-space-xs) 0 auto;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: hsl(var(--fk7-color-bg-light-hsl));
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 0 0.3px 0.4px rgba(0, 0, 0, 0.025),0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}
.float-sidenav__close-btn:hover {
  background-color: hsl(var(--fk7-color-bg-lighter-hsl));
  box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 0 0.9px 1.5px rgba(0, 0, 0, 0.03),0 3.1px 5.5px rgba(0, 0, 0, 0.08),0 14px 25px rgba(0, 0, 0, 0.12);
}
.float-sidenav__close-btn .fk7-icon {
  display: block;
}

@media (min-width: 64rem) {
  .float-sidenav {
    visibility: visible;
    opacity: 1;
    width: auto;
    height: auto;
    background-color: transparent;
    right: 0;
    left: auto;
    top: 0;
    bottom: 0;
    pointer-events: none;
    overflow: visible;
    display: flex;
    align-items: center;
  }

  .float-sidenav__nav {
    background-color: transparent;
    overflow: visible;
    box-shadow: none;
    -webkit-transform: translateY(0);
            transform: translateY(0);
    padding: var(--fk7-space-sm) var(--fk7-space-md);
    border-radius: 0.25em 0 0 0.25em;
    transition: box-shadow 0.2s, background-color 0.2s;
    pointer-events: auto;
  }
  .float-sidenav__nav:hover {
    background-color: hsl(var(--fk7-color-bg-light-hsl));
    box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 0 0.9px 1.5px rgba(0, 0, 0, 0.03),0 3.1px 5.5px rgba(0, 0, 0, 0.08),0 14px 25px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.2s, background-color 0.2s;
  }

  .float-sidenav__link {
    display: flex;
    align-items: center;
    text-align: right;
    white-space: nowrap;
    padding: var(--fk7-space-3xs) 0;
    font-size: var(--fk7-text-sm);
    color: hsl(var(--fk7-color-contrast-high-hsl));
  }

  .float-sidenav__marker {
    display: inline-block;
    flex-shrink: 0;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: hsla(var(--fk7-color-contrast-higher-hsl), 0.2);
    box-shadow: 0 0 0 1px hsla(var(--fk7-color-bg-hsl), 0.25);
  }

  .float-sidenav__label {
    width: 0;
    opacity: 0;
    padding-right: 0;
    line-height: 1.2;
    transition: opacity 0.2s 0s, width 0s 0.2s, padding 0.2s;
  }
  .float-sidenav__nav:hover .float-sidenav__label {
    opacity: 1;
    width: 100%;
    padding-right: var(--fk7-space-xs);
    transition: opacity 0.2s;
  }

  .float-sidenav__link--selected {
    color: hsl(var(--fk7-color-primary-hsl));
  }
  .float-sidenav__link--selected .float-sidenav__marker {
    background-color: hsl(var(--fk7-color-primary-hsl));
  }

  .float-sidenav__link:hover {
    color: hsl(var(--fk7-color-primary-hsl));
  }

  .float-sidenav__close-btn {
    display: none;
  }
}

/* utility classes */
.fk7-margin-bottom-md {
  margin-bottom: var(--fk7-space-md);
}

.fk7-text-component :where(h1, h2, h3, h4) {
  line-height: var(--fk7-heading-line-height, 1.2);
  margin-top: calc(var(--fk7-space-md) * var(--fk7-space-multiplier, 1));
  margin-bottom: calc(var(--fk7-space-sm) * var(--fk7-space-multiplier, 1));
}

.fk7-text-component :where(p, blockquote, ul li, ol li) {
  line-height: var(--fk7-body-line-height, 1.4);
}

.fk7-text-component :where(ul, ol, p, blockquote, .fk7-text-component__block) {
  margin-bottom: calc(var(--fk7-space-sm) * var(--fk7-space-multiplier, 1));
}

.fk7-text-component :where(ul, ol) {
  padding-left: 1.25em;
}

.fk7-text-component ul :where(ul, ol), .fk7-text-component ol :where(ul, ol) {
  padding-left: 1em;
  margin-bottom: 0;
}

.fk7-text-component ul {
  list-style-type: disc;
}

.fk7-text-component ol {
  list-style-type: decimal;
}

.fk7-text-component img {
  display: block;
  margin: 0 auto;
}

.fk7-text-component figcaption {
  margin-top: calc(var(--fk7-space-xs) * var(--fk7-space-multiplier, 1));
  font-size: var(--fk7-text-sm);
  text-align: center;}

.fk7-text-component em {
  font-style: italic;
}

.fk7-text-component strong {
  font-weight: bold;
}

.fk7-text-component s {
  text-decoration: line-through;
}

.fk7-text-component u {
  text-decoration: underline;
}

.fk7-text-component mark {
  background-color: hsla(var(--fk7-color-accent-hsl), 0.2);
  color: inherit;
}

.fk7-text-component blockquote {
  padding-left: 1em;
  border-left: 4px solid hsl(var(--fk7-color-contrast-lower-hsl));
  font-style: italic;
}

.fk7-text-component hr {
  margin: calc(var(--fk7-space-md) * var(--fk7-space-multiplier, 1)) auto;
  background: hsl(var(--fk7-color-contrast-lower-hsl));
  height: 1px;
}

.fk7-text-component > *:first-child {
  margin-top: 0;
}

.fk7-text-component > *:last-child {
  margin-bottom: 0;
}

.fk7-text-component.fk7-line-height-xs {
  --fk7-heading-line-height: 1;
  --fk7-body-line-height: 1.1;
}

.fk7-text-component.fk7-line-height-sm {
  --fk7-heading-line-height: 1.1;
  --fk7-body-line-height: 1.2;
}

.fk7-text-component.fk7-line-height-md {
  --fk7-heading-line-height: 1.15;
  --fk7-body-line-height: 1.4;
}

.fk7-text-component.fk7-line-height-lg {
  --fk7-heading-line-height: 1.22;
  --fk7-body-line-height: 1.58;
}

.fk7-text-component.fk7-line-height-xl {
  --fk7-heading-line-height: 1.3;
  --fk7-body-line-height: 1.72;
}

.fk7-max-width-sm {
  max-width: 48rem;
}

.fk7-container {
  width: calc(100% - 2*var(--fk7-space-md));
  margin-left: auto;
  margin-right: auto;
}

@media(min-width: 64rem){
  .fk7-hide\@md {
    display: none !important;
  }
}