/* Responsive refinements */

@media (max-width: 959px) {
  .compiler__toolbar {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
  }

  .compiler__shortcut {
    display: none;
  }

  .console-line {
    grid-template-columns: 56px 1fr;
  }

  .console-line time {
    display: none;
  }
}

@media (max-width: 640px) {
  .brand__text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding-top: 1rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .preview-toolbar .device-btn:nth-child(n + 5) {
    display: none;
  }
}

[dir="rtl"] .editor__gutter {
  text-align: left;
  border-right: 0;
  border-left: 1px solid var(--border);
}

[dir="rtl"] .lang-switcher__panel {
  right: auto;
  left: 0;
}

[dir="rtl"] .step {
  padding: 1rem 3.2rem 1rem 1rem;
}

[dir="rtl"] .step::before {
  left: auto;
  right: 1rem;
}
