/* Misul Terminal — its own vibe within the shared design language.
   Brand name in mono, terminal hero spacing. No logo animations. */

.terminal-brand-name {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.terminal-hero {
  margin-top: clamp(3.5rem, 10vw, 7rem);
}

/* Install line — just the command with a copy button */
.install {
  margin: clamp(2rem, 5vw, 3rem) 0;
}

.install-label {
  font-family: var(--mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.install-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: var(--fs-body);
}

.install-cmd {
  flex: 1;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s var(--ease-out-quint), border-color 0.15s var(--ease-out-quint);
}

.install-copy:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.install-copy.copied {
  color: var(--accent);
  border-color: var(--accent);
}

/* CLI block logo — centered, compact */
.cli-logo {
  margin-top: clamp(3rem, 8vw, 5rem);
  display: flex;
  justify-content: center;
  color: var(--ink);
}

.cli-logo svg {
  width: 128px;
  height: auto;
}

@media (prefers-color-scheme: dark) {
  .cli-logo { color: var(--ink); }
}
.docs-wide .paper {
  max-width: 72rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: clamp(1rem, 3vw, 2rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  font-family: var(--mono);
  font-size: var(--fs-meta);
  line-height: 1.8;
}

.docs-nav-section {
  margin-bottom: 1.5rem;
}

.docs-nav-title {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  margin-bottom: 0.4rem;
}

.docs-nav a {
  display: block;
  color: var(--text);
  padding: 0.15rem 0;
  transition: color 0.15s var(--ease-out-quint);
}

.docs-nav a:hover { color: var(--accent); }
.docs-nav a.active { color: var(--accent); font-weight: 700; }

.docs-content {
  min-width: 0;
}

.docs-content h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.docs-content h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  line-height: 1.2;
  color: var(--ink);
  margin-top: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.docs-content h3 {
  font-family: var(--display);
  font-weight: 560;
  font-size: var(--fs-term);
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.docs-content h4 {
  font-family: var(--display);
  font-weight: 560;
  font-size: var(--fs-body);
  color: var(--ink);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.docs-content p {
  margin-bottom: 1rem;
  max-width: 72ch;
  text-wrap: pretty;
}

.docs-content ul, .docs-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  max-width: 72ch;
}

.docs-content li { margin-bottom: 0.3rem; }

.docs-content code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: oklch(0.235 0.030 262 / 0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

@media (prefers-color-scheme: dark) {
  .docs-content code { background: oklch(0.955 0 0 / 0.12); }
}

.docs-content pre {
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.5;
  background: oklch(0.16 0 0);
  color: oklch(0.96 0 0);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.docs-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.docs-content th, .docs-content td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.docs-content th {
  font-weight: 600;
  color: var(--ink);
}

.docs-content a {
  color: var(--accent);
  transition: color 0.15s var(--ease-out-quint);
}

.docs-content a:hover {
  color: var(--accent-press);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-style: italic;
}

.docs-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

.docs-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

@media (max-width: 38rem) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1rem;
  }
}
