/* Bee — commands page. Builds on the tokens and base components in style.css. */

.cmd-hero {
	padding: 72px 0 44px;
	border-bottom: 1px solid var(--line);
}

.cmd-hero h1 {
	margin-bottom: 16px;
}

.cmd-hero .lead {
	max-width: 64ch;
}

.inline-code {
	font-size: 0.9em;
	color: var(--honey);
	background: rgba(255, 205, 60, 0.08);
	border: 1px solid rgba(255, 205, 60, 0.16);
	padding: 1px 6px;
	border-radius: 6px;
	white-space: nowrap;
}

.cmd-body {
	padding: 56px 0 104px;
}

.cmd-groups {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	max-width: 940px;
}

/* Long <pre> lines scroll inside the block, so they must not widen the column. */
.cmd-groups > * {
	min-width: 0;
}

.cmd-group h2,
.in-app h2,
.launch h2 {
	font-family: var(--mono);
	font-size: 0.76rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--amber);
	margin-bottom: 14px;
}

/* Each row: usage on the left, description on the right. */
.commands.cmd-list li {
	grid-template-columns: 168px minmax(0, 1fr);
	align-items: baseline;
	gap: 4px 20px;
	padding: 14px 20px;
}

.cmd-list li code {
	font-weight: 600;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.cmd-list li p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--muted);
	max-width: 68ch;
}

.in-app,
.launch {
	margin-top: 8px;
	padding-top: 44px;
	border-top: 1px solid var(--line);
}

.app-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.app-list li {
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--panel);
}

.app-list h3 {
	font-size: 0.98rem;
}

.app-list p {
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--muted);
}

.launch .lead {
	max-width: 72ch;
	margin-bottom: 20px;
}

.run-steps {
	display: grid;
	gap: 2px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--line);
}

.run-steps li {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	align-items: baseline;
	gap: 4px 20px;
	padding: 16px 20px;
	background: var(--panel);
}

.run-steps h3 {
	font-size: 0.92rem;
	margin: 0;
}

.run-steps p {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--muted);
	max-width: 68ch;
}

@media (max-width: 780px) {
	.cmd-hero {
		padding: 44px 0 32px;
	}

	.cmd-body {
		padding: 40px 0 72px;
	}

	.cmd-groups {
		gap: 36px;
	}

	.commands.cmd-list li,
	.run-steps li {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
		padding: 14px 16px;
	}

	.app-list {
		grid-template-columns: 1fr;
	}

}
