/* ============================================================
Terminal chrome — shared by marketing islands (DeployTerminal,
DevTerminal, StateStoreBootstrap, …) on the marketing layout
and when embedded in docs MDX. Imported from both
global.css (docs) and marketing.css (marketing) so a single
source of truth styles either context.
The React/Astro components carry `.not-content` so Starlight's
prose plugin leaves them alone in docs.
============================================================ */
/* Terminals are dark in both themes, so status colors always use their
dark-theme values (the light-theme moss/brick fail contrast here). */
.alc-term,
.prf-win,
.expressive-code {
--alc-success: #8fb15e;
--alc-warn: #e8b04a;
--alc-danger: #d76a4e;
--alc-info: #6da4b4;
}
.alc-term {
background: var(--alc-bg-code);
border: 1px solid var(--alc-hairline);
border-radius: 10px;
overflow: hidden;
box-shadow: var(--alc-shadow-sm);
display: flex;
flex-direction: column;
min-width: 0;
max-width: 100%;
}
.alc-term__header {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 14px;
border-bottom: 1px solid rgba(var(--alc-code-edge), 0.08);
background: rgba(var(--alc-code-lift), 0.02);
}
.alc-term__title {
margin-left: 10px;
font-family: var(--alc-font-mono);
font-size: 11px;
color: var(--alc-code-comment);
}
.alc-term__body {
margin: 0;
padding: 14px 18px;
font-family: var(--alc-font-mono);
font-size: 12.5px;
line-height: 1.65;
color: var(--alc-code-var);
white-space: pre-wrap;
background: transparent;
border: none;
border-radius: 0;
min-height: 296px;
}
/* Window dots are only drawn in terminals. Elsewhere they had no size but
their flex gaps still pushed the filename right, so drop them. */
.alc-code-block__dot {
display: none;
}
.alc-term .alc-code-block__dot {
display: block;
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
/* Docs MDX context: Starlight wraps content in `.sl-markdown-content`
which adds vertical rhythm to direct children. Re-add a small
margin so embedded terminals breathe like other block elements. */
.sl-markdown-content > .alc-term {
margin: 1rem 0;
}
/* ============================================================
Expressive Code frames (the file-name tab on docs code blocks)
The default Starlight rendering of the editor-style frame paints
the tab title with a very low-contrast walnut on a near-walnut
strip — practically unreadable on the cream page. Force the
active tab to use the bright sunrise palette so the file name
reads cleanly against the dark code surface. Lives here (loaded by
both the docs and the marketing layout) so code blocks in marketing
.mdx pages match the docs.
============================================================ */
.expressive-code .frame {
--ec-frm-edBg: var(--alc-bg-code);
--ec-frm-edTabBarBg: var(--alc-bg-code);
--ec-frm-edTabBarBrdBtmCol: var(--alc-walnut-700);
--ec-frm-edActTabBg: var(--alc-bg-code);
--ec-frm-edActTabFg: var(--alc-walnut-100);
--ec-frm-edActTabBrdCol: var(--alc-walnut-700);
--ec-frm-edActTabIndTopCol: var(--alc-accent-warm);
--ec-frm-edActTabIndBtmCol: transparent;
--ec-frm-edTabsMargBlkStart: 0;
--ec-frm-edTabsMargInlStart: 0;
--ec-frm-trmTtbBg: var(--alc-bg-code);
--ec-frm-trmTtbBrdBtmCol: var(--alc-walnut-700);
--ec-frm-trmTtbFg: var(--alc-walnut-100);
}
.expressive-code .frame.has-title:not(.is-terminal) .title {
color: var(--alc-walnut-100);
font-family: var(--alc-font-mono);
font-weight: 500;
}
.expressive-code .frame.is-terminal .title {
color: var(--alc-walnut-100);
}
/* Twoslash inline error boxes: the default red fails contrast on the
dark code surface. */
.expressive-code .twoslash-error-box-content-title,
.expressive-code .twoslash-error-box-content-message {
color: #f08a78 !important;
}