@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  /* We already have these classes defined, but let's ensure they're consistent */
  .animation-delay-100 {
    animation-delay: 100ms;
  }
  .animation-delay-200 {
    animation-delay: 200ms;
  }
  .animation-delay-300 {
    animation-delay: 300ms;
  }
  .animation-delay-400 {
    animation-delay: 400ms;
  }
  .animation-delay-500 {
    animation-delay: 500ms;
  }
  .animation-delay-700 {
    animation-delay: 700ms;
  }
  .animation-delay-900 {
    animation-delay: 900ms;
  }
}

/* Custom animations for countdown banner - more subtle versions */
@keyframes gradient-x {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradient-x-subtle {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
  100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
}

@keyframes glow-subtle {
  0% { box-shadow: 0 0 2px rgba(79, 70, 229, 0.2); }
  50% { box-shadow: 0 0 8px rgba(79, 70, 229, 0.3); }
  100% { box-shadow: 0 0 2px rgba(79, 70, 229, 0.2); }
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-5px) translateX(5px); }
  50% { transform: translateY(0) translateX(10px); }
  75% { transform: translateY(5px) translateX(5px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes pulse-subtle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Typewriter effect - more subtle */
.typewriter-subtle {
  overflow: hidden;
  border-right: .15em solid rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: .15em;
  animation: typing-subtle 4s steps(40, end) infinite, blink-caret-subtle .75s step-end infinite;
}

@keyframes typing-subtle {
  0% { width: 0 }
  40% { width: 100% }
  90% { width: 100% }
  100% { width: 0 }
}

@keyframes blink-caret-subtle {
  from, to { border-color: transparent }
  50% { border-color: rgba(255, 255, 255, 0.5); }
}

/* Floating particles - more subtle */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: float 25s infinite linear;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-duration: 25s;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 20%;
  animation-duration: 28s;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  top: 40%;
  left: 30%;
  animation-duration: 22s;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  top: 10%;
  left: 40%;
  animation-duration: 30s;
  animation-delay: 0.5s;
}

/* Animation utilities - more subtle versions */
.animate-gradient-x {
  animation: gradient-x 15s ease infinite;
  background-size: 200% 200%;
}

.animate-gradient-x-subtle {
  animation: gradient-x-subtle 25s ease infinite;
  background-size: 200% 200%;
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

.animate-glow-subtle {
  animation: glow-subtle 3s infinite ease-in-out;
}

.animation-delay-300 {
  animation-delay: 0.3s;
}

.animation-delay-600 {
  animation-delay: 0.6s;
}

.animation-delay-900 {
  animation-delay: 0.9s;
}

.animation-delay-1000 {
  animation-delay: 1s;
}

.bg-size-200 {
  background-size: 200% 200%;
}

@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom styles for sidebar */

.collapsed-sidebar .sidebar-content {
  opacity: 0;
  visibility: hidden;
}

.collapsed-sidebar {
  overflow: hidden;
}

#tutorial-sidebar {
  transition: width 0.3s ease-in-out;
}

#tutorial-sidebar .sidebar-text,
#tutorial-sidebar .sidebar-content {
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.collapsed-sidebar button {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.collapsed-sidebar .flex {
  justify-content: center;
  padding: 0.75rem 0;
}

/* Custom styles for sidebar */
.hidden-sidebar {
  transform: translateX(-100%);
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

#show-sidebar-button {
  transition: opacity 0.3s ease-in-out;
}

@layer utilities {
  .animate-pulse-subtle {
    animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  
  @keyframes pulse-subtle {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    50% {
      opacity: 0.95;
      transform: scale(1.03);
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }
  }

  .animate-gradient-x {
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
  }
  
  @keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
}

@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes bounce-in {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shine-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.cta-button-animation {
  animation: bounce-in 0.8s ease-out forwards, pulse-shadow 2s infinite;
  position: relative;
}

.cta-button-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
    );
  animation: shine-sweep 2s 1s ease-in-out;
  z-index: 1;
}

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

.inner {
    margin-left: auto;
    margin-right: auto;
    max-width: 1920px;
    width: 100%;
}

.outer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}


html {
    --color-gray-50: 248 250 252;
    --color-gray-100: 241 245 249;
    --color-gray-200: 226 232 240;
    --color-gray-300: 203 213 225;
    --color-gray-400: 148 163 184;
    --color-gray-500: 100 116 139;
    --color-gray-600: 71 85 105;
    --color-gray-700: 51 65 85;
    --color-gray-800: 30 41 59;
    --color-gray-900: 15 23 42;
    --color-gray-950: 2 6 23
}

html.has-gray-scale-Gray {
    --color-gray-50: 249 250 251;
    --color-gray-100: 243 244 246;
    --color-gray-200: 229 231 235;
    --color-gray-300: 209 213 219;
    --color-gray-400: 156 163 175;
    --color-gray-500: 107 114 128;
    --color-gray-600: 75 85 99;
    --color-gray-700: 55 65 81;
    --color-gray-800: 31 41 55;
    --color-gray-900: 17 24 39;
    --color-gray-950: 3 7 18
}

.kg-audio-card,.kg-audio-card * {
    box-sizing: border-box
}

.kg-audio-card {
    display: flex;
    width: 100%;
    min-height: 96px;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
    color: #222;
    box-shadow: inset 0 0 0 1px rgba(124,139,154,.25);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif
}

.kg-audio-card+.kg-audio-card {
    margin-top: 1em
}

.kg-audio-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    min-width: 80px;
    margin: 8px;
    background: 0 0;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 3px
}

.kg-audio-thumbnail.placeholder {
    background: var(--ghost-accent-color)
}

.kg-audio-thumbnail.placeholder svg {
    width: 24px;
    height: 24px;
    fill: #fff
}

.kg-audio-player-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    --seek-before-width: 0%;
    --volume-before-width: 100%;
    --buffered-width: 0%
}

.kg-audio-title {
    width: 100%;
    margin: 8px 0 0;
    padding: 8px 12px;
    border: 0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15em;
    background: 0 0
}

.kg-audio-player {
    display: flex;
    flex-grow: 1;
    align-items: center;
    padding: 8px 12px
}

.kg-audio-current-time,.kg-audio-time {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1em;
    white-space: nowrap
}

.kg-audio-current-time {
    min-width: 38px;
    padding: 0 4px
}

.kg-audio-time {
    width: 56px;
    color: #ababab
}

.kg-audio-duration {
    padding: 0 4px
}

.kg-audio-pause-icon,.kg-audio-play-icon {
    position: relative;
    bottom: 1px;
    padding: 0 4px 0 0;
    font-size: 0;
    background: 0 0
}

.kg-audio-hide {
    display: none!important
}

.kg-audio-pause-icon svg,.kg-audio-play-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor
}

.kg-audio-seek-slider {
    flex-grow: 1;
    margin: 0 4px
}

@media (max-width: 640px) {
    .kg-audio-seek-slider {
        display:none
    }
}

.kg-audio-playback-rate {
    min-width: 37px;
    padding: 0 4px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1em;
    text-align: left;
    background: 0 0;
    white-space: nowrap
}

@media (max-width: 640px) {
    .kg-audio-playback-rate {
        padding-left:8px
    }
}

.kg-audio-mute-icon,.kg-audio-unmute-icon {
    position: relative;
    bottom: -1px;
    padding: 0 4px;
    font-size: 0;
    background: 0 0
}

@media (max-width: 640px) {
    .kg-audio-mute-icon,.kg-audio-unmute-icon {
        margin-left:auto
    }
}

.kg-audio-mute-icon svg,.kg-audio-unmute-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor
}

.kg-audio-volume-slider {
    width: 80px
}

@media (max-width: 400px) {
    .kg-audio-volume-slider {
        display:none
    }
}

.kg-audio-seek-slider::before,.kg-audio-volume-slider::before {
    content: "";
    position: absolute;
    left: 0;
    width: var(--seek-before-width)!important;
    height: 4px;
    cursor: pointer;
    background-color: currentColor;
    border-radius: 2px
}

.kg-audio-volume-slider::before {
    width: var(--volume-before-width)!important
}

.kg-audio-player-container input[type=range] {
    position: relative;
    -webkit-appearance: none;
    background: 0 0;
    height: auto;
    padding: 0;
    border: 0
}

.kg-audio-player-container input[type=range]:focus,.kg-video-card input[type=range]:focus {
    outline: 0
}

.kg-audio-player-container input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none
}

.kg-audio-player-container button,.kg-video-card button {
    display: flex;
    align-items: center;
    border: 0;
    cursor: pointer
}

.kg-audio-player-container input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(124,139,154,.25);
    border-radius: 2px
}

.kg-audio-player-container input[type=range]::-webkit-slider-thumb {
    position: relative;
    box-sizing: content-box;
    width: 13px;
    height: 13px;
    margin: -5px 0 0;
    border: 0;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.24)
}

.kg-audio-player-container input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.2)
}

.kg-audio-player-container input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(124,139,154,.25);
    border-radius: 2px
}

.kg-audio-player-container input[type=range]::-moz-range-progress {
    background: currentColor;
    border-radius: 2px
}

.kg-audio-player-container input[type=range]::-moz-range-thumb {
    box-sizing: content-box;
    width: 13px;
    height: 13px;
    border: 0;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.24)
}

.kg-audio-player-container input[type=range]:active::-moz-range-thumb {
    transform: scale(1.2)
}

.kg-audio-player-container input[type=range]::-ms-track {
    width: 100%;
    height: 3px;
    border: solid transparent;
    color: transparent;
    cursor: pointer;
    background: 0 0
}

.kg-audio-player-container input[type=range]::-ms-fill-lower {
    background: #fff
}

.kg-audio-player-container input[type=range]::-ms-fill-upper {
    background: currentColor
}

.kg-audio-player-container input[type=range]::-ms-thumb {
    box-sizing: content-box;
    width: 13px;
    height: 13px;
    border: 0;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.24)
}

.kg-audio-player-container input[type=range]:active::-ms-thumb {
    transform: scale(1.2)
}

.kg-blockquote-alt {
    font-size: 1.5em;
    font-style: italic;
    line-height: 1.7em;
    text-align: center;
    padding: 0 2.5em
}

@media (max-width: 800px) {
    .kg-blockquote-alt {
        font-size:1.4em;
        padding-left: 2em;
        padding-right: 2em
    }
}

@media (max-width: 600px) {
    .kg-blockquote-alt {
        font-size:1.2em;
        padding-left: 1.75em;
        padding-right: 1.75em
    }
}

.kg-bookmark-card,.kg-bookmark-card * {
    box-sizing: border-box
}

.kg-bookmark-card,.kg-bookmark-publisher {
    position: relative
}

.kg-bookmark-card a.kg-bookmark-container,.kg-bookmark-card a.kg-bookmark-container:hover {
    display: flex;
    background: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgb(124 139 154/25%);
    overflow: hidden;
    color: #222
}

.dark .kg-bookmark-card a.kg-bookmark-container,
.dark .kg-bookmark-card a.kg-bookmark-container:hover {
    background: rgb(31 41 55);
    border: 1px solid rgb(55 65 81);
    color: rgb(229 231 235);
}

.dark .kg-bookmark-card a.kg-bookmark-container:hover {
    border-color: rgb(75 85 99);
}

.kg-bookmark-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif
}

.kg-bookmark-title {
    font-size: 15px;
    line-height: 1.4em;
    font-weight: 600
}

.kg-bookmark-description {
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.5em;
    margin-top: 3px;
    font-weight: 400;
    max-height: 44px;
    overflow-y: hidden;
    opacity: .7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    margin-top: 22px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap
}

.kg-bookmark-metadata>:not(img) {
    opacity: .7
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px
}

.kg-bookmark-author {
    display: inline
}

.kg-bookmark-publisher {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 240px;
    white-space: nowrap;
    display: block;
    line-height: 1.65em
}

.kg-bookmark-metadata>span:nth-of-type(2) {
    font-weight: 400
}

.kg-bookmark-metadata>span:nth-of-type(2):before {
    content: "•";
    margin: 0 6px
}

.kg-bookmark-metadata>span:last-of-type {
    overflow: hidden;
    text-overflow: ellipsis
}

.kg-bookmark-thumbnail {
    position: relative;
    flex-grow: 1;
    min-width: 33%
}

.kg-bookmark-thumbnail img,.kg-collection-card-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.kg-bookmark-thumbnail img {
    top: 0;
    left: 0;
    border-radius: 0 2px 2px 0
}

.kg-button-card,.kg-button-card * {
    box-sizing: border-box
}

.kg-button-card,.kg-button-card a.kg-btn {
    display: flex;
    position: static;
    align-items: center
}

.kg-button-card {
    width: 100%;
    justify-content: center
}

.kg-button-card.kg-align-left {
    justify-content: flex-start
}

.kg-button-card a.kg-btn {
    padding: 0 1.2em;
    height: 2.4em;
    line-height: 1em;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
    font-size: .95em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity .2s ease-in-out
}

.kg-button-card a.kg-btn:hover {
    opacity: .85
}

.kg-button-card a.kg-btn-accent {
    background-color: var(--ghost-accent-color);
    color: #fff
}

.kg-callout-card,.kg-callout-card * {
    box-sizing: border-box
}

.kg-callout-card {
    display: flex;
    padding: 1.2em 1.6em;
    border-radius: 3px
}

.kg-callout-card-grey {
    background: rgba(124,139,154,.13)
}

.kg-callout-card-white {
    background: 0 0;
    box-shadow: inset 0 0 0 1px rgba(124,139,154,.25)
}

.kg-callout-card-blue {
    background: rgba(33,172,232,.12)
}

.kg-callout-card-green {
    background: rgba(52,183,67,.12)
}

.kg-callout-card-yellow {
    background: rgba(240,165,15,.13)
}

.kg-callout-card-red {
    background: rgba(209,46,46,.11)
}

.kg-callout-card-pink {
    background: rgba(225,71,174,.11)
}

.kg-callout-card-purple {
    background: rgba(135,85,236,.12)
}

.kg-callout-card-accent {
    background: var(--ghost-accent-color);
    color: #fff
}

.kg-callout-card.kg-callout-card-accent a {
    color: #fff;
    text-decoration: underline
}

.kg-callout-card div.kg-callout-emoji {
    padding-right: .8em;
    line-height: 1.25em;
    font-size: 1.15em
}

.kg-callout-card div.kg-callout-text {
    font-size: .95em;
    line-height: 1.5em
}

.kg-callout-card+.kg-callout-card {
    margin-top: 1em
}

.kg-collection-card {
    width: 100%;
    margin-top: 6vmin
}

.kg-collection-card+* {
    margin-top: 6vmin
}

.kg-collection-card-title {
    margin: .8rem 0 1.6rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase
}

a.kg-collection-card-post-wrapper {
    text-decoration: none;
    color: var(--text-color)
}

a.kg-collection-card-post-wrapper:hover {
    opacity: 1
}

.kg-collection-card-post {
    display: flex;
    gap: 3.2rem
}

.kg-collection-card-img {
    position: relative;
    aspect-ratio: 3/2
}

.kg-collection-card-img img {
    inset: 0
}

a.kg-collection-card-post-wrapper:hover img {
    opacity: .92;
    transition: all .2s ease
}

.kg-collection-card-content {
    display: flex;
    flex-direction: column;
    font-size: 1.6rem
}

h2.kg-collection-card-post-title,p.kg-collection-card-post-excerpt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2
}

h2.kg-collection-card-post-title {
    margin: 0;
    font-size: 2.4rem
}

p.kg-collection-card-post-excerpt {
    margin-top: 1.2rem;
    line-height: 1.4
}

.kg-collection-card-post-meta {
    display: flex;
    opacity: .5;
    margin-top: 1.2rem;
    font-size: 1.3rem;
    font-weight: 500
}

.kg-collection-card-list {
    display: flex;
    flex-direction: column;
    gap: 3.2rem
}

@media (max-width: 767px) {
    .kg-collection-card-list .kg-collection-card-post {
        flex-direction:column
    }
}

.kg-collection-card-list .kg-collection-card-img {
    flex: 0 0 30%
}

.kg-collection-card-grid {
    display: grid;
    grid-template-columns: repeat(1,minmax(0,1fr));
    gap: 2.4rem
}

@media (min-width: 640px) {
    .kg-collection-card-grid:not(.columns-1) {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}

@media (min-width: 1024px) {
    .kg-collection-card-grid:not(.columns-1):not(.columns-2) {
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap: 3.2rem
    }

    .kg-collection-card-grid.columns-1 {
        gap: 4.8rem
    }

    .kg-collection-card-grid.columns-2 {
        gap: 4rem
    }
}

@media (min-width: 1280px) {
    .kg-collection-card-grid:not(.columns-1):not(.columns-2):not(.columns-3) {
        grid-template-columns:repeat(4,minmax(0,1fr))
    }
}

.kg-collection-card-grid .kg-collection-card-post {
    flex-direction: column;
    gap: 1.2rem
}

@media (min-width: 1024px) {
    .kg-collection-card-grid.columns-1 .kg-collection-card-post {
        gap:2rem
    }

    .kg-collection-card-grid.columns-2 .kg-collection-card-post {
        gap: 1.6rem
    }
}

.kg-collection-card-grid.columns-1 .kg-collection-card-img,.kg-collection-card-grid.columns-2 .kg-collection-card-img {
    aspect-ratio: 16/9
}

.kg-collection-card-grid .kg-collection-card-content {
    font-size: 1.5rem
}

@media (min-width: 640px) {
    .kg-collection-card-grid .kg-collection-card-content {
        font-size:1.6rem
    }
}

@media (min-width: 1024px) {
    .kg-collection-card-grid.columns-1 .kg-collection-card-content {
        font-size:1.8rem
    }

    .kg-collection-card-grid.columns-3 .kg-collection-card-content,.kg-collection-card-grid.columns-4 .kg-collection-card-content {
        font-size: 1.5rem
    }
}

.kg-collection-card-grid h2.kg-collection-card-post-title {
    font-size: 1.7rem
}

.kg-collection-card-grid .kg-collection-card-post-meta {
    font-size: 1.25rem
}

@media (min-width: 640px) {
    .kg-collection-card-grid h2.kg-collection-card-post-title {
        font-size:1.9rem
    }

    .kg-collection-card-grid.columns-1 h2.kg-collection-card-post-title {
        font-size: 2.4rem
    }

    .kg-collection-card-grid:not(.columns-3):not(.columns-4) .kg-collection-card-post-meta {
        font-size: 1.3rem
    }
}

@media (min-width: 1024px) {
    .kg-collection-card-grid.columns-1 h2.kg-collection-card-post-title {
        font-size:3.6rem
    }

    .kg-collection-card-grid.columns-2 h2.kg-collection-card-post-title {
        font-size: 2.4rem
    }

    .kg-collection-card-grid.columns-1 .kg-collection-card-post-meta {
        font-size: 1.4rem
    }
}

@media (min-width: 1280px) {
    .kg-collection-card-grid.columns-4 h2.kg-collection-card-post-title {
        font-size:1.7rem
    }
}

.kg-file-card,.kg-file-card * {
    box-sizing: border-box
}

.kg-file-card {
    display: flex
}

.kg-file-card a.kg-file-card-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 12px;
    min-height: 92px;
    background: #fff;
    color: #222;
    border: 1px solid rgb(124 139 154/25%);
    border-radius: 5px;
    transition: all ease-in-out .35s;
    text-decoration: none;
    width: 100%;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif
}

.kg-file-card a.kg-file-card-container:hover {
    border: 1px solid rgb(124 139 154/35%)
}

.kg-file-card-contents {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 4px 8px;
    width: 100%
}

.kg-file-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3em
}

.kg-file-card-caption {
    font-size: 14px;
    line-height: 1.3em;
    opacity: .7
}

.kg-file-card-title+.kg-file-card-caption {
    flex-grow: 1;
    margin-top: 3px
}

.kg-file-card-metadata {
    display: inline;
    font-size: 14px;
    line-height: 1.3em;
    margin-top: 5px
}

.kg-file-card-filename {
    display: inline;
    font-weight: 500
}

.kg-file-card-filesize {
    display: inline-block;
    font-size: 14px;
    opacity: .6
}

.kg-file-card-filesize:before {
    display: inline-block;
    content: "•";
    margin-left: 6px;
    margin-right: 6px
}

.kg-file-card-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-width: 80px;
    height: 100%;
    min-height: 80px
}

.kg-file-card-icon:before {
    position: absolute;
    display: block;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: .06;
    transition: opacity ease-in-out .35s;
    border-radius: 3px
}

.kg-file-card a.kg-file-card-container:hover .kg-file-card-icon:before {
    opacity: .08
}

.kg-file-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--ghost-accent-color)
}

.kg-file-card-medium a.kg-file-card-container {
    min-height: 72px
}

.kg-file-card-medium .kg-file-card-caption {
    opacity: 1;
    font-weight: 500
}

.kg-file-card-small a.kg-file-card-container {
    align-items: center;
    min-height: 52px
}

.kg-file-card-small .kg-file-card-metadata {
    font-size: 14px;
    margin-top: 0
}

.kg-file-card-small .kg-file-card-icon svg {
    width: 20px;
    height: 20px
}

.kg-file-card+.kg-file-card {
    margin-top: 1em
}

.kg-gallery-card,.kg-gallery-card * {
    box-sizing: border-box
}

.kg-gallery-card,.kg-image-card {
    --gap: 1.2rem
}

.kg-gallery-card:not(.kg-card-hascaption)+.kg-gallery-card,.kg-gallery-card:not(.kg-card-hascaption)+.kg-image-card,.kg-image-card:not(.kg-card-hascaption)+.kg-gallery-card,.kg-image-card:not(.kg-card-hascaption)+.kg-image-card {
    margin-top: var(--gap)
}

.kg-gallery-container {
    position: relative
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center
}

.kg-gallery-image img {
    display: block;
    margin: 0;
    width: 100%;
    height: 100%
}

.kg-gallery-row:not(:first-of-type) {
    margin: var(--gap)0 0
}

.kg-gallery-image:not(:first-of-type) {
    margin: 0 0 0 var(--gap)
}

@media (max-width: 600px) {
    .kg-gallery-card,.kg-image-card {
        --gap:0.6rem
    }
}

.kg-header-card,.kg-header-card * {
    box-sizing: border-box
}

.kg-header-card {
    padding: 12vmin 4em;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center
}

.kg-header-card.kg-size-small {
    padding-top: 14vmin;
    padding-bottom: 14vmin;
    min-height: 40vh
}

.kg-header-card.kg-size-large {
    padding-top: 18vmin;
    padding-bottom: 18vmin;
    min-height: 80vh
}

.kg-header-card.kg-align-left {
    text-align: left;
    align-items: flex-start
}

.kg-header-card.kg-style-dark {
    background: #151515;
    color: #fff
}

.kg-header-card.kg-style-light {
    background-color: #fafafa
}

.kg-header-card.kg-style-accent,.kg-header-card.kg-style-accent.kg-v2 {
    background-color: var(--ghost-accent-color)
}

.kg-header-card.kg-style-image {
    position: relative;
    background-color: #e7e7e7;
    background-size: cover;
    background-position: center
}

.kg-header-card.kg-style-image::before {
    position: absolute;
    display: block;
    content: "";
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg,transparent,rgba(0,0,0,.2))
}

.kg-header-card h2.kg-header-card-header {
    font-size: 5em;
    font-weight: 700;
    line-height: 1.1em;
    letter-spacing: -.01em;
    margin: 0
}

.kg-header-card h2.kg-header-card-header strong {
    font-weight: 800
}

.kg-header-card.kg-size-small h2.kg-header-card-header {
    font-size: 4em
}

.kg-header-card.kg-size-large h2.kg-header-card-header {
    font-size: 6em
}

.kg-header-card h3.kg-header-card-subheader {
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1.4em;
    margin: 0;
    max-width: 40em
}

.kg-header-card h2+h3.kg-header-card-subheader {
    margin: .35em 0 0
}

.kg-header-card .kg-header-card-subheading strong,.kg-header-card h3.kg-header-card-subheader strong,.kg-signup-card .kg-signup-card-subheading strong {
    font-weight: 600
}

.kg-header-card.kg-size-small h3.kg-header-card-subheader {
    font-size: 1.25em
}

.kg-header-card.kg-size-large h3.kg-header-card-subheader {
    font-size: 1.75em
}

.kg-header-card:not(.kg-style-light) h2.kg-header-card-header,.kg-header-card:not(.kg-style-light) h3.kg-header-card-subheader {
    color: #fff
}

.kg-header-card.kg-style-accent h3.kg-header-card-subheader,.kg-header-card.kg-style-image h3.kg-header-card-subheader,.kg-product-card-rating-active.kg-product-card-rating-star svg {
    opacity: 1
}

.kg-header-card.kg-style-image a.kg-header-card-button,.kg-header-card.kg-style-image h2.kg-header-card-header,.kg-header-card.kg-style-image h3.kg-header-card-subheader {
    z-index: 999
}

.kg-header-card h2.kg-header-card-header a,.kg-header-card h3.kg-header-card-subheader a {
    color: var(--ghost-accent-color)
}

.kg-header-card.kg-style-accent h2.kg-header-card-header a,.kg-header-card.kg-style-accent h3.kg-header-card-subheader a,.kg-header-card.kg-style-image h2.kg-header-card-header a,.kg-header-card.kg-style-image h3.kg-header-card-subheader a {
    color: #fff
}

.kg-header-card a.kg-header-card-button {
    display: flex;
    position: static;
    align-items: center;
    fill: #fff;
    background: #fff;
    border-radius: 3px;
    outline: 0;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
    font-size: 1.05em;
    font-weight: 600;
    line-height: 1em;
    text-align: center;
    text-decoration: none;
    letter-spacing: .2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #151515;
    height: 2.7em;
    padding: 0 1.2em;
    transition: opacity .2s ease
}

.kg-header-card h2+a.kg-header-card-button,.kg-header-card h3+a.kg-header-card-button {
    margin: 1.75em 0 0
}

.kg-header-card a.kg-header-card-button:hover {
    opacity: .85
}

.kg-header-card.kg-size-large a.kg-header-card-button {
    font-size: 1.1em;
    height: 2.9em
}

.kg-header-card.kg-size-large h2+a.kg-header-card-button,.kg-header-card.kg-size-large h3+a.kg-header-card-button {
    margin-top: 2em
}

.kg-header-card.kg-size-small a.kg-header-card-button {
    height: 2.4em;
    font-size: 1em
}

.kg-header-card.kg-size-small h2+a.kg-header-card-button,.kg-header-card.kg-size-small h3+a.kg-header-card-button {
    margin-top: 1.5em
}

.kg-header-card.kg-style-dark a.kg-header-card-button,.kg-header-card.kg-style-image a.kg-header-card-button {
    background: #fff;
    color: #151515
}

.kg-header-card.kg-style-light a.kg-header-card-button {
    background: var(--ghost-accent-color);
    color: #fff
}

.kg-header-card.kg-style-accent a.kg-header-card-button {
    background: #fff;
    color: #151515
}

@media (max-width: 640px) {
    .kg-header-card {
        padding-left:1em;
        padding-right: 1em
    }

    .kg-header-card h2.kg-header-card-header {
        font-size: 3.5em
    }

    .kg-header-card.kg-size-large h2.kg-header-card-header {
        font-size: 4em
    }

    .kg-header-card.kg-size-small h2.kg-header-card-header {
        font-size: 3em
    }

    .kg-header-card h3.kg-header-card-subheader {
        font-size: 1.25em
    }

    .kg-header-card.kg-size-large h3.kg-header-card-subheader {
        font-size: 1.5em
    }

    .kg-header-card.kg-size-small h3.kg-header-card-subheader {
        font-size: 1em
    }
}

.kg-header-card.kg-v2 {
    position: relative;
    padding: 0;
    min-height: initial;
    text-align: initial;
    box-sizing: border-box
}

.kg-header-card.kg-v2 * {
    box-sizing: border-box
}

.kg-header-card.kg-v2 a,.kg-header-card.kg-v2 a span,.kg-signup-card a,.kg-signup-card a span {
    color: currentColor
}

.kg-header-card-content {
    width: 100%
}

.kg-layout-split .kg-header-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr
}

.kg-header-card-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: min(6.4vmax,120px) min(4vmax,80px);
    background-size: cover;
    background-position: center;
    text-align: left
}

.kg-width-wide .kg-header-card-text {
    padding: min(10vmax,220px) min(6.4vmax,140px)
}

.kg-width-full .kg-header-card-text {
    padding: min(12vmax,260px)0
}

.kg-layout-split .kg-header-card-text {
    padding: min(12vmax,260px) min(4vmax,80px)
}

.kg-layout-split.kg-content-wide .kg-header-card-text {
    padding: min(10vmax,220px)0 min(10vmax,220px) min(4vmax,80px)
}

.kg-layout-split.kg-content-wide.kg-swapped .kg-header-card-text {
    padding: min(10vmax,220px) min(4vmax,80px) min(10vmax,220px)0
}

.kg-swapped .kg-header-card-text {
    grid-row: 1
}

.kg-header-card-text.kg-align-center {
    align-items: center;
    text-align: center
}

.kg-header-card.kg-style-image .kg-header-card-subheading,.kg-header-card.kg-style-image h2.kg-header-card-heading,.kg-header-card.kg-style-image.kg-v2 .kg-header-card-button {
    z-index: 999
}

.kg-header-card>picture>.kg-header-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #fff;
    pointer-events: none
}

.kg-header-card-content .kg-header-card-image {
    width: 100%;
    height: 0;
    min-height: 100%;
    object-fit: cover;
    object-position: center
}

.kg-content-wide .kg-header-card-content .kg-header-card-image {
    height: 100%;
    padding: 5.6em 0;
    object-fit: contain
}

.kg-header-card h2.kg-header-card-heading,.kg-signup-card h2.kg-signup-card-heading {
    margin: 0;
    font-size: clamp(1.7em,4vw,2.5em);
    font-weight: 700;
    line-height: 1.05em;
    letter-spacing: -.01em
}

.kg-header-card.kg-width-wide h2.kg-header-card-heading {
    font-size: clamp(1.7em,5vw,3.3em)
}

.kg-header-card.kg-width-full h2.kg-header-card-heading {
    font-size: clamp(1.9em,5.6vw,4.2em)
}

.kg-header-card.kg-width-full.kg-layout-split h2.kg-header-card-heading,.kg-signup-card.kg-width-full.kg-layout-split h2.kg-signup-card-heading {
    font-size: clamp(1.9em,4vw,3.3em)
}

.kg-header-card-subheading {
    margin: 0 0 2em
}

.kg-header-card .kg-header-card-subheading {
    max-width: 40em;
    margin: 0;
    font-size: clamp(1.05em,2vw,1.4em);
    font-weight: 500;
    line-height: 1.2em
}

.kg-header-card h2+.kg-header-card-subheading {
    margin: .6em 0 0
}

.kg-header-card.kg-width-full.kg-layout-split .kg-header-card-subheading,.kg-header-card.kg-width-wide .kg-header-card-subheading {
    font-size: clamp(1.05em,2vw,1.55em)
}

.kg-header-card.kg-width-full .kg-header-card-subheading:not(.kg-layout-split .kg-header-card-subheading) {
    max-width: min(65vmax,1200px);
    font-size: clamp(1.05em,2vw,1.7em)
}

.kg-header-card.kg-v2 .kg-header-card-button {
    display: flex;
    position: relative;
    align-items: center;
    height: 2.9em;
    min-height: 46px;
    padding: 0 1.2em;
    outline: 0;
    border: 0;
    font-size: 1em;
    font-weight: 600;
    line-height: 1em;
    text-align: center;
    text-decoration: none;
    letter-spacing: .2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 3px;
    transition: opacity .2s ease
}

.kg-header-card.kg-v2 .kg-header-card-button.kg-style-accent {
    background-color: var(--ghost-accent-color)
}

.kg-header-card.kg-v2 h2+.kg-header-card-button,.kg-header-card.kg-v2 p+.kg-header-card-button {
    margin: 1.5em 0 0
}

.kg-header-card.kg-v2 .kg-header-card-button:hover {
    opacity: .85
}

.kg-header-card.kg-v2.kg-width-wide .kg-header-card-button {
    font-size: 1.05em
}

.kg-header-card.kg-v2.kg-width-wide h2+.kg-header-card-button,.kg-header-card.kg-v2.kg-width-wide p+.kg-header-card-button,.kg-signup-card.kg-width-wide h2+.kg-signup-card-button,.kg-signup-card.kg-width-wide p+.kg-signup-card-button {
    margin-top: 1.75em
}

.kg-header-card.kg-v2.kg-width-full .kg-header-card-button {
    font-size: 1.1em
}

.kg-header-card.kg-v2.kg-width-full h2+.kg-header-card-button,.kg-header-card.kg-v2.kg-width-full p+.kg-header-card-button,.kg-signup-card.kg-width-full h2+.kg-signup-card-button,.kg-signup-card.kg-width-full p+.kg-signup-card-button {
    margin-top: 2em
}

@media (max-width: 640px) {
    .kg-layout-split .kg-header-card-content {
        grid-template-columns:1fr
    }

    .kg-width-wide .kg-header-card-text {
        padding: min(6.4vmax,120px) min(4vmax,80px)
    }

    .kg-layout-split.kg-content-wide .kg-header-card-text,.kg-layout-split.kg-content-wide.kg-swapped .kg-header-card-text {
        padding: min(9.6vmax,180px)0
    }

    .kg-header-card.kg-width-full .kg-header-card-subheading:not(.kg-layout-split .kg-header-card-subheading) {
        max-width: unset
    }

    .kg-header-card-content .kg-header-card-image:not(.kg-content-wide .kg-header-card-content .kg-header-card-image) {
        height: auto;
        min-height: unset;
        aspect-ratio: 1/1
    }

    .kg-content-wide .kg-header-card-content .kg-header-card-image {
        padding: 1.7em 0 0
    }

    .kg-content-wide.kg-swapped .kg-header-card-content .kg-header-card-image {
        padding: 0 0 1.7em
    }

    .kg-header-card.kg-v2 .kg-header-card-button {
        height: 2.9em
    }

    .kg-header-card.kg-v2.kg-width-full .kg-header-card-button,.kg-header-card.kg-v2.kg-width-wide .kg-header-card-button {
        font-size: 1em
    }
}

.kg-nft-card,.kg-nft-card * {
    box-sizing: border-box
}

.kg-nft-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto
}

.kg-nft-card a.kg-nft-card-container {
    position: static;
    display: flex;
    flex: auto;
    flex-direction: column;
    text-decoration: none;
    font-family: -apple-system,BlinkMacSystemFont,"avenir next",avenir,"helvetica neue",helvetica,ubuntu,roboto,noto,"segoe ui",arial,sans-serif;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0 2px 6px -2px rgb(0 0 0/10%),0 0 1px rgb(0 0 0/40%);
    width: 100%;
    max-width: 512px;
    color: #222;
    background: #fff;
    border-radius: 5px;
    transition: none
}

.kg-nft-card * {
    position: static
}

.kg-nft-metadata {
    padding: 20px;
    width: 100%
}

.kg-nft-image {
    border-radius: 5px 5px 0 0;
    width: 100%
}

.kg-nft-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px
}

.kg-nft-header h4.kg-nft-title {
    font-family: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3em;
    min-width: unset;
    max-width: unset;
    margin: 0;
    color: #222
}

.kg-nft-opensea-logo {
    margin-top: 2px;
    width: 100px;
    object-fit: scale-down
}

.kg-nft-card p.kg-nft-description,.kg-nft-creator {
    font-family: inherit;
    line-height: 1.4em;
    margin: 4px 0 0;
    color: #ababab
}

.kg-nft-creator span {
    font-weight: 500;
    color: #222
}

.kg-nft-card p.kg-nft-description {
    font-size: 14px;
    margin: 20px 0 0;
    color: #222
}

.kg-product-card,.kg-product-card * {
    box-sizing: border-box
}

.kg-product-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%
}

.kg-product-card-container {
    display: grid;
    grid-template-columns: auto min-content;
    align-items: center;
    grid-row-gap: 16px;
    background: 0 0;
    max-width: 550px;
    padding: 20px;
    width: 100%;
    background: #fff;
    color: #222;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgb(124 139 154/25%);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif
}

.kg-product-card-image {
    grid-column: 1/3;
    justify-self: center;
    height: auto
}

.kg-product-card-title-container {
    grid-column: 1/2
}

.kg-product-card h4.kg-product-card-title {
    text-decoration: none;
    font-weight: 600;
    font-size: 21px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.15em
}

.kg-product-card-description {
    grid-column: 1/3
}

.kg-product-card .kg-product-card-description ol,.kg-product-card .kg-product-card-description p,.kg-product-card .kg-product-card-description ul {
    font-size: 14px;
    line-height: 1.5em;
    opacity: .7;
    margin-bottom: 0
}

.kg-product-card .kg-product-card-description p:first-of-type {
    margin-top: -4px
}

.kg-product-card .kg-product-card-description ol,.kg-product-card .kg-product-card-description p:not(:first-of-type),.kg-product-card .kg-product-card-description ul {
    margin-top: .95em
}

.kg-product-card .kg-product-card-description li+li,.kg-toggle-card li+li {
    margin-top: .5em
}

.kg-product-card-rating {
    display: flex;
    align-items: center;
    grid-column: 2/3;
    align-self: start;
    justify-self: end;
    padding-left: 16px
}

@media (max-width: 400px) {
    .kg-product-card-title-container {
        grid-column:1/3
    }

    .kg-product-card-rating {
        grid-column: 1/3;
        justify-self: start;
        margin-top: -15px;
        padding-left: 0
    }
}

.kg-product-card-rating-star {
    height: 20px;
    width: 20px
}

.kg-product-card-rating-star svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    opacity: .15
}

.kg-product-card a.kg-product-card-button {
    justify-content: center;
    grid-column: 1/3;
    display: flex;
    position: static;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1em;
    text-decoration: none;
    width: 100%;
    height: 38px;
    border-radius: 6px;
    padding: 0 12px;
    transition: opacity .2s ease-in-out
}

.kg-product-card a.kg-product-card-btn-accent {
    background-color: var(--ghost-accent-color);
    color: #fff
}

.kg-signup-card {
    position: relative
}

.kg-signup-card,.kg-signup-card * {
    box-sizing: border-box
}

.kg-signup-card.kg-style-accent {
    background-color: var(--ghost-accent-color)
}

.kg-layout-split .kg-signup-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr
}

.kg-signup-card-text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    padding: min(4vmax,80px);
    background-size: cover;
    background-position: center;
    text-align: left
}

.kg-width-wide .kg-signup-card-text {
    padding: min(6.4vmax,120px)
}

.kg-width-full .kg-signup-card-text {
    padding: min(12vmax,260px)0
}

.kg-layout-split .kg-signup-card-text {
    padding: min(12vmax,260px) min(4vmax,80px)
}

.kg-layout-split.kg-content-wide .kg-signup-card-text {
    padding: min(10vmax,220px)0 min(10vmax,220px) min(4vmax,80px)
}

.kg-layout-split.kg-content-wide.kg-swapped .kg-signup-card-text {
    padding: min(10vmax,220px) min(4vmax,80px) min(10vmax,220px)0
}

.kg-swapped .kg-signup-card-text {
    grid-row: 1
}

.kg-signup-card-text.kg-align-center {
    align-items: center;
    text-align: center
}

.kg-signup-card.kg-style-image .kg-signup-card-button,.kg-signup-card.kg-style-image .kg-signup-card-subheading,.kg-signup-card.kg-style-image h2.kg-signup-card-heading {
    z-index: 999
}

.kg-signup-card>picture>.kg-signup-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #fff;
    pointer-events: none
}

.kg-signup-card-content .kg-signup-card-image {
    width: 100%;
    height: 0;
    min-height: 100%;
    object-fit: cover;
    object-position: center
}

.kg-content-wide .kg-signup-card-content .kg-signup-card-image {
    height: 100%;
    padding: 5.6em 0;
    object-fit: contain
}

.kg-signup-card.kg-width-wide h2.kg-signup-card-heading {
    font-size: clamp(1.7em,5vw,3.3em)
}

.kg-signup-card.kg-width-full h2.kg-signup-card-heading {
    font-size: clamp(1.9em,5.6vw,4.2em)
}

.kg-signup-card-subheading {
    margin: 0 0 2em
}

.kg-signup-card .kg-signup-card-subheading {
    max-width: 40em;
    margin: 0;
    font-size: clamp(1.05em,2vw,1.4em);
    font-weight: 500;
    line-height: 1.2em
}

.kg-signup-card h2+.kg-signup-card-subheading {
    margin: .6em 0 0
}

.kg-signup-card.kg-width-full.kg-layout-split .kg-signup-card-subheading,.kg-signup-card.kg-width-wide .kg-signup-card-subheading {
    font-size: clamp(1.05em,2vw,1.55em)
}

.kg-signup-card.kg-width-full .kg-signup-card-subheading:not(.kg-layout-split .kg-signup-card-subheading) {
    max-width: min(65vmax,1200px);
    font-size: clamp(1.05em,2vw,1.7em)
}

.kg-signup-card-form {
    position: relative;
    display: flex;
    flex-shrink: 0;
    width: 100%
}

.kg-align-center .kg-signup-card-form {
    justify-content: center
}

.kg-signup-card-heading+.kg-signup-card-form,.kg-signup-card-subheading+.kg-signup-card-form {
    margin: min(2.4vmax,48px)0 0
}

.kg-width-wide .kg-signup-card-heading+.kg-signup-card-form,.kg-width-wide .kg-signup-card-subheading+.kg-signup-card-form {
    margin: min(3.2vmax,64px)0 0
}

.kg-width-full .kg-signup-card-heading+.kg-signup-card-form,.kg-width-full .kg-signup-card-subheading+.kg-signup-card-form {
    margin: min(4vmax,80px)0 0
}

.kg-signup-card-fields {
    display: flex;
    width: 100%;
    padding: 3px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px
}

.kg-width-full .kg-signup-card-fields,.kg-width-wide .kg-signup-card-fields {
    width: 100%;
    max-width: 500px
}

.kg-signup-card-input {
    width: 100%;
    height: 2.9em;
    min-height: 46px;
    margin: 0 3px 0 0;
    padding: 12px 16px;
    border: 0;
    background: #fff;
    font-size: 1.1em
}

.kg-signup-card-input:focus,.kg-signup-card-input:focus-visible {
    outline: 0
}

.kg-signup-card-button {
    display: flex;
    position: relative;
    align-items: center;
    height: 2.9em;
    min-height: 46px;
    padding: 0 1.2em;
    outline: 0;
    border: 0;
    font-size: 1em;
    font-weight: 600;
    line-height: 1em;
    text-align: center;
    text-decoration: none;
    letter-spacing: .2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 3px;
    transition: opacity .2s ease;
    cursor: pointer
}

.kg-signup-card-button.kg-style-accent {
    background-color: var(--ghost-accent-color)
}

.kg-signup-card h2+.kg-signup-card-button,.kg-signup-card p+.kg-signup-card-button {
    margin: 1.5em 0 0
}

.kg-signup-card .kg-signup-card-button:hover {
    opacity: .85
}

.kg-signup-card.kg-width-wide .kg-signup-card-button {
    font-size: 1.05em
}

.kg-signup-card.kg-width-full .kg-signup-card-button {
    font-size: 1.1em
}

.kg-signup-card-error,.kg-signup-card-form.success .kg-signup-card-fields,.kg-signup-card-success {
    display: none
}

.kg-signup-card-form.success .kg-signup-card-success {
    display: flex;
    align-items: center;
    height: 3em;
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.4em
}

.kg-signup-card-form.error .kg-signup-card-fields {
    border: 1px solid red;
    box-shadow: inset 0 0 0 1px rgba(255,0,0,.2)
}

.kg-signup-card-form.error .kg-signup-card-error {
    position: absolute;
    bottom: calc(-1rem - 1.6em);
    display: block;
    font-size: inherit
}

.kg-signup-card-button-loading {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    display: none
}

.kg-signup-card-form.loading .kg-signup-card-button-default {
    color: transparent
}

.kg-signup-card-form.loading .kg-signup-card-button-loading {
    display: flex
}

.kg-signup-card-disclaimer {
    margin: 1rem 0 0
}

.kg-signup-card-form.error+.kg-signup-card-disclaimer,.kg-signup-card-form.success+.kg-signup-card-disclaimer {
    visibility: hidden
}

@media (max-width: 640px) {
    .kg-layout-split .kg-signup-card-content {
        grid-template-columns:1fr
    }

    .kg-width-wide .kg-signup-card-text {
        padding: min(6.4vmax,120px) min(4vmax,80px)
    }

    .kg-layout-split.kg-content-wide .kg-signup-card-text,.kg-layout-split.kg-content-wide.kg-swapped .kg-signup-card-text {
        padding: min(9.6vmax,180px)0
    }

    .kg-signup-card.kg-width-full .kg-signup-card-subheading:not(.kg-layout-split .kg-signup-card-subheading) {
        max-width: unset
    }

    .kg-signup-card-content .kg-signup-card-image:not(.kg-content-wide .kg-signup-card-content .kg-signup-card-image) {
        height: auto;
        min-height: unset;
        aspect-ratio: 1/1
    }

    .kg-content-wide .kg-signup-card-content .kg-signup-card-image {
        padding: 1.7em 0 0
    }

    .kg-content-wide.kg-swapped .kg-signup-card-content .kg-signup-card-image {
        padding: 0 0 1.7em
    }

    .kg-signup-card.kg-v2 .kg-signup-card-button {
        height: 2.9em
    }

    .kg-signup-card.kg-v2.kg-width-full .kg-signup-card-button,.kg-signup-card.kg-v2.kg-width-wide .kg-signup-card-button {
        font-size: 1em
    }
}

.kg-toggle-card,.kg-toggle-card * {
    box-sizing: border-box
}

.kg-toggle-card {
    background: 0 0;
    box-shadow: inset 0 0 0 1px rgba(124,139,154,.25);
    border-radius: 4px;
    padding: 1.2em
}

.kg-toggle-card[data-kg-toggle-state=close] .kg-toggle-content {
    height: 0;
    overflow: hidden;
    transition: opacity .5s ease,top .35s ease;
    opacity: 0;
    top: -.5em;
    position: relative
}

.kg-toggle-content {
    height: auto;
    opacity: 1;
    transition: opacity 1s ease,top .35s ease;
    top: 0;
    position: relative
}

.kg-toggle-card[data-kg-toggle-state=close] svg {
    transform: unset
}

.kg-toggle-heading {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start
}

.kg-toggle-card h4.kg-toggle-heading-text {
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.3em;
    margin-top: 0;
    margin-bottom: 0
}

.kg-toggle-content p:first-of-type {
    margin-top: .5em
}

.kg-toggle-card .kg-toggle-content ol,.kg-toggle-card .kg-toggle-content p,.kg-toggle-card .kg-toggle-content ul {
    font-size: .95em;
    line-height: 1.5em;
    margin-top: .95em;
    margin-bottom: 0
}

.kg-toggle-card-icon {
    height: 24px;
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 1em;
    padding: 0;
    background: 0 0;
    border: 0;
    cursor: pointer
}

.kg-toggle-heading svg {
    width: 14px;
    color: rgba(124,139,154,.5);
    transition: all .3s;
    transform: rotate(-180deg)
}

.kg-toggle-heading path {
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    fill-rule: evenodd
}

.kg-toggle-card+.kg-toggle-card {
    margin-top: 1em
}

.kg-video-card,.kg-video-card * {
    box-sizing: border-box
}

.kg-video-card {
    position: relative;
    --seek-before-width: 0%;
    --volume-before-width: 100%;
    --buffered-width: 0%
}

.kg-video-card video {
    display: block;
    max-width: 100%;
    height: auto
}

.kg-video-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center
}

.kg-video-large-play-icon,.kg-video-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity .2s ease-in-out
}

.kg-video-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(180deg,rgba(0,0,0,.3)0,transparent 70%,transparent 100%);
    z-index: 999
}

.kg-video-large-play-icon {
    width: 72px;
    height: 72px;
    padding: 0;
    background: rgba(0,0,0,.5);
    border-radius: 50%
}

.kg-video-large-play-icon svg {
    width: 20px;
    height: auto;
    margin-left: 2px;
    fill: #fff
}

.kg-video-player-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent,rgba(0,0,0,.5));
    z-index: 999;
    transition: opacity .2s ease-in-out
}

.kg-video-player {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 9999;
    padding: 12px 16px
}

.kg-video-current-time,.kg-video-time {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4em;
    white-space: nowrap
}

.kg-video-current-time {
    min-width: 38px;
    padding: 0 4px;
    color: #fff
}

.kg-video-time {
    color: rgba(255,255,255,.6)
}

.kg-video-duration {
    padding: 0 4px
}

.kg-video-pause-icon,.kg-video-play-icon {
    position: relative;
    padding: 0 4px 0 0;
    font-size: 0;
    background: 0 0
}

.kg-video-hide {
    display: none!important
}

.kg-video-hide-animated {
    opacity: 0!important;
    transition: opacity .2s ease-in-out;
    cursor: initial
}

.kg-video-pause-icon svg,.kg-video-play-icon svg {
    width: 14px;
    height: 14px;
    fill: #fff
}

.kg-video-seek-slider {
    flex-grow: 1;
    margin: 0 4px
}

@media (max-width: 520px) {
    .kg-video-seek-slider {
        display:none
    }
}

.kg-video-playback-rate {
    min-width: 37px;
    padding: 0 4px;
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4em;
    text-align: left;
    background: 0 0;
    white-space: nowrap
}

@media (max-width: 520px) {
    .kg-video-playback-rate {
        padding-left:8px
    }
}

.kg-video-mute-icon,.kg-video-unmute-icon {
    position: relative;
    bottom: -1px;
    padding: 0 4px;
    font-size: 0;
    background: 0 0
}

@media (max-width: 520px) {
    .kg-video-mute-icon,.kg-video-unmute-icon {
        margin-left:auto
    }
}

.kg-video-mute-icon svg,.kg-video-unmute-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff
}

.kg-video-volume-slider {
    width: 80px
}

@media (max-width: 300px) {
    .kg-video-volume-slider {
        display:none
    }
}

.kg-video-seek-slider::before,.kg-video-volume-slider::before {
    content: "";
    position: absolute;
    left: 0;
    width: var(--seek-before-width)!important;
    height: 4px;
    cursor: pointer;
    background-color: #ebeef0;
    border-radius: 2px
}

.kg-video-volume-slider::before {
    width: var(--volume-before-width)!important
}

.kg-video-card input[type=range] {
    position: relative;
    -webkit-appearance: none;
    background: 0 0;
    height: auto;
    padding: 0;
    border: 0
}

.kg-video-card input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none
}

.kg-video-card input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255,255,255,.2);
    border-radius: 2px
}

.kg-video-card input[type=range]::-webkit-slider-thumb {
    position: relative;
    box-sizing: content-box;
    width: 13px;
    height: 13px;
    margin: -5px 0 0;
    border: 0;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.24)
}

.kg-video-card input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.2)
}

.kg-video-card input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255,255,255,.2);
    border-radius: 2px
}

.kg-video-card input[type=range]::-moz-range-progress {
    background: #ebeef0;
    border-radius: 2px
}

.kg-video-card input[type=range]::-moz-range-thumb {
    box-sizing: content-box;
    width: 13px;
    height: 13px;
    border: 0;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.24)
}

.kg-video-card input[type=range]:active::-moz-range-thumb {
    transform: scale(1.2)
}

.kg-video-card input[type=range]::-ms-track {
    width: 100%;
    height: 3px;
    border: solid transparent;
    color: transparent;
    cursor: pointer;
    background: 0 0
}

.kg-video-card input[type=range]::-ms-fill-lower {
    background: #fff
}

.kg-video-card input[type=range]::-ms-fill-upper {
    background: #ebeef0
}

.kg-video-card input[type=range]::-ms-thumb {
    box-sizing: content-box;
    width: 13px;
    height: 13px;
    border: 0;
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.24)
}

.kg-video-card input[type=range]:active::-ms-thumb {
    transform: scale(1.2)
}

:is(.dark .dark\:text-gray-200) {
    --tw-text-opacity: 1;
    color: rgb(var(--color-gray-200) / var(--tw-text-opacity)) !important;
}

:is(.dark .dark\:text-gray-50) {
    --tw-text-opacity: 1;
    color: rgb(var(--color-gray-50) / var(--tw-text-opacity));
}

.text-lead {
    font-size: 1.375rem;
    line-height: 2rem;
}

:is(.dark .dark\:text-gray-200) {
    --tw-text-opacity: 1;
    color: rgb(var(--color-gray-200) / var(--tw-text-opacity)) !important;
}

.text-lead {
    font-size: 1.375rem;
    line-height: 2rem;
}

.custom-background-clip-text {
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

@layer components {
  .loading-transition {
    @apply transition-all duration-300 ease-in-out;
  }

  .plan-card {
    @apply transition-all duration-200;
  }

  .plan-card:hover {
    @apply shadow-lg -translate-y-1;
  }

  /* Vim Challenge Code Block Styling */
  @layer components {
    /* Style for code blocks */
    .prose pre {
      @apply bg-gray-950 rounded-md border border-gray-700 p-4 overflow-x-auto my-4;
    }
    
    .prose code {
      @apply text-orange-400 font-mono text-sm px-1 py-0.5 bg-gray-800 rounded;
    }
    
    .prose pre code {
      @apply text-gray-300 block p-0 rounded-none bg-gray-950;
      padding: 0;
    }
    
    /* Hide backticks inside code elements */
    .prose code {
      position: relative;
    }
    
    /* Use data attributes to help with finding backticks */
    .prose code::before,
    .prose code::after {
      display: none !important;
    }
  }
}

.nav-active {
  @apply transition-all duration-300 ease-in-out;
}

.nav-inactive {
  @apply transition-all duration-300 ease-in-out;
}

/* Add these styles to your CSS file or in a <style> tag in the head */
.slide-out-left {
  animation: slideOutLeft 1s forwards;
}

.slide-in-right {
  animation: slideInRight 1s forwards;
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.challenge-transition-container {
  position: relative;
  transition: opacity 0.3s ease-in-out;
}

.challenge-transition-container.updating {
  opacity: 0.6;
}

/* Add nice transitions for Turbo Stream replacements */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#current_challenge, #upcoming_challenge, #challenge_leaderboard {
  animation: fadeIn 0.5s ease-out;
}

@layer utilities {
  .animate-float-slow {
    animation: float 8s ease-in-out infinite;
  }
  .animate-float-medium {
    animation: float 6s ease-in-out infinite;
  }
  .animate-float-fast {
    animation: float 4s ease-in-out infinite;
  }
  .animate-pulse-slow {
    animation: pulse 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  .animate-gradient {
    background-size: 200% auto;
    animation: gradient 8s linear infinite;
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes gradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}