/* career-term (standalone, see fragment.js): a macOS-style terminal window running artisan commands. Always dark, like a real
   terminal; output styled after Laravel's own `php artisan about` (green section titles, dotted
   leaders, plain values). Every line is one 20px row, so the screen scrolls on a row grid. */
.term {
  --tm-bg: #1b1916; --tm-bar: #262320; --tm-line: #34302b;
  --tm-fg: #d9d4cb; --tm-dim: #7d776e; --tm-green: #8fce6b; --tm-yellow: #e6c062; --tm-cyan: #6cc4d6; --tm-white: #f4f1ec;
  width: 540px; overflow: hidden; border-radius: 10px; background: var(--tm-bg);
  border: 1px solid #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .06) inset, 0 24px 60px -24px rgb(0 0 0 / .55), 0 2px 6px rgb(0 0 0 / .25);
  color: var(--tm-fg); text-align: left;
}
.term__bar { position: relative; display: flex; align-items: center; height: 30px; padding: 0 12px; background: var(--tm-bar); border-bottom: 1px solid #000; }
.term__lights { display: flex; gap: 8px; }
.term__lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .3); }
.term__lights i:nth-child(1) { background: #ff5f57; }
.term__lights i:nth-child(2) { background: #febc2e; }
.term__lights i:nth-child(3) { background: #28c840; }
/* the glyphs show while the pointer is over the three buttons, as on macOS */
.term__lights i { display: grid; place-items: center; }
.term__lights svg { width: 10px; height: 10px; opacity: 0; fill: none; stroke: rgb(0 0 0 / .6); stroke-width: 1.4; stroke-linecap: round; transition: opacity 80ms ease; }
.term__lights svg .fill { fill: rgb(0 0 0 / .6); stroke: none; }
.term__lights:hover svg { opacity: 1; }
.term__title { position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px/1 var(--font-body, system-ui, sans-serif); color: #a8a29a; pointer-events: none; }

.term__screen { position: relative; overflow: hidden; height: calc(13 * 20px + 24px); }
.term__track { padding: 12px 0; font: 13px/20px "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; transition: transform 160ms ease; }
.term__ln { display: flex; align-items: center; height: 20px; padding: 0 16px; white-space: pre; overflow: hidden; transition: opacity 160ms ease; }
.term__ln.is-gone { opacity: 0; }
.term__ln.is-new { animation: term-in 90ms ease-out backwards; }
@keyframes term-in { from { opacity: 0; } }

/* the prompt: path in cyan, the command in bright white, a block caret */
.term__cwd { color: var(--tm-cyan); }
.term__sig { color: var(--tm-dim); margin: 0 8px; }
.term__typed { color: var(--tm-white); }
.term__caret { width: 8px; height: 16px; margin-left: 1px; background: var(--tm-fg); animation: term-caret 1s steps(1) infinite; }
.term.is-typing .term__caret, .is-ui-paused .term__caret { animation: none; }
.term__ln.is-ran .term__caret { display: none; }
@keyframes term-caret { 50% { opacity: 0; } }

/* artisan about: "  Key ........ value" (a leader of dots fills the row) */
.term__row { gap: 8px; padding: 0 32px; }
.term__k { flex: none; }
.term__lead { flex: 1 1 0; min-width: 0; overflow: hidden; color: var(--tm-dim); }
.term__lead::before { content: "................................................................................................................"; }
.term__v { flex: none; }
.term__head .term__k { color: var(--tm-green); font-weight: 500; }
.term__g { color: var(--tm-green); }
.term__y { color: var(--tm-yellow); }
.term__d { color: var(--tm-dim); }

@media (prefers-reduced-motion: reduce) { .term__ln.is-new { animation: none; } .term__caret { animation: none; } }
@media (max-width: 639px) { .term { width: 100%; } }
