/* ---------------------------------------------
   minoly CLI — sub-site styles (sidebar layout + docs components)
   Builds on /styles.css tokens; loaded only by /cli/* pages.
--------------------------------------------- */

.cli-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 64px;
}

/* ---------- Sidebar ---------- */

.cli-side {
  position: sticky;
  top: 104px;
  align-self: start;
}

.cli-side-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cli-side-title span {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.cli-side-group + .cli-side-group {
  margin-top: 24px;
}

.cli-side-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cli-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cli-side a {
  display: block;
  padding: 8px 14px;
  border-left: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.cli-side a:hover {
  color: var(--text-primary);
  border-left-color: var(--border-strong);
}

.cli-side a.active {
  color: var(--text-primary);
  border-left-color: var(--accent-bright);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), transparent);
}

/* ---------- Main column ---------- */

.cli-main {
  min-width: 0;
}

.cli-main h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 18px;
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cli-main h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.cli-main h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.cli-main p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.cli-lead {
  font-size: 1.1rem;
  max-width: 660px;
}

.cli-section {
  padding: 64px 0 0;
  margin-top: 64px;
  border-top: 1px solid var(--border);
}

.cli-code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.1);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------- Hero command ---------- */

.cli-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 520px;
  margin-top: 32px;
  padding: 16px 16px 16px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.cli-command-prompt {
  color: var(--accent-bright);
  margin-right: 12px;
  user-select: none;
}

.cli-copy {
  flex: none;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cli-copy:hover {
  color: var(--text-primary);
  border-color: var(--accent-bright);
}

.cli-main .cli-subline {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cli-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.cli-pill-soon {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: not-allowed;
  user-select: none;
}

.cli-pill-soon--inline {
  padding: 2px 10px;
  margin-left: 10px;
  font-size: 0.72rem;
  vertical-align: middle;
}

.cli-badges {
  margin-top: 32px;
}

.badge-dot--planned {
  background: var(--text-muted);
  animation: none;
}

/* ---------- Comparison table ---------- */

.cli-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
}

.cli-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.cli-table th,
.cli-table td {
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.98rem;
  color: var(--text-secondary);
}

.cli-table thead th {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom-color: var(--border-strong);
}

.cli-table thead th small {
  display: block;
  margin-top: 2px;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.cli-table tbody th {
  width: 160px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cli-main .cli-note {
  margin: 28px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent-bright);
  color: var(--text-secondary);
}

/* Premium highlighted callout — key reassurance lines */

.cli-callout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0.04) 55%, rgba(59, 130, 246, 0) 100%),
    var(--bg-card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 50px -22px rgba(59, 130, 246, 0.55);
  overflow: hidden;
}

.cli-callout::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #93c5fd, var(--accent));
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.7);
}

.cli-callout-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
}

.cli-main .cli-callout p {
  margin: 0;
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
}

.cli-callout strong {
  font-weight: 600;
  color: #93c5fd;
  text-shadow: 0 0 22px rgba(96, 165, 250, 0.45);
}

@media (max-width: 600px) {
  .cli-callout {
    align-items: flex-start;
    padding: 20px;
    gap: 14px;
  }

  .cli-callout-icon {
    width: 38px;
    height: 38px;
  }

  .cli-main .cli-callout p {
    font-size: 1rem;
  }
}

/* ---------- Quick start steps ---------- */

.cli-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.cli-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.cli-step:first-child {
  border-top: 1px solid var(--border);
}

.cli-step-num {
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.cli-step p {
  margin: 0;
}

/* ---------- Placeholder for pages awaiting content ---------- */

.cli-pending {
  margin-top: 36px;
  padding: 28px 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.cli-pending strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.cli-pending p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Closing line ---------- */

.cli-main .cli-closing {
  margin: 0;
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cli-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 32px;
  }

  .cli-side {
    position: static;
  }

  .cli-side-title {
    margin-bottom: 16px;
  }

  .cli-side-group {
    display: contents;
  }

  .cli-side-label {
    display: none;
  }

  .cli-side ul {
    display: contents;
  }

  .cli-side nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cli-side li {
    flex: none;
  }

  .cli-side a {
    flex: none;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
  }

  .cli-side a.active {
    border-color: var(--accent-bright);
  }

  .cli-command {
    font-size: 1.2rem;
  }

  .cli-step {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
