/* billet.tools's own stylesheet. base.css comes first: it is rendered by
   templates/site-scaffold and holds the family's tokens, header, footer and
   shared parts. This file sets the site's colours and holds the rest of its
   own styles. */
:root {
  --signal: var(--c-billet); --wire: var(--c-channels);
}

/* the line you say to your agent, in a terminal frame */
.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.term-bar .lamp { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); }
.term-bar .lamp:nth-child(3) { background: var(--signal); }
.term-bar .title { margin-left: auto; letter-spacing: .04em; }
.term pre { margin: 0; padding: 1.1rem 1.25rem 1.3rem; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.7; color: var(--text); }

/* the left table of contents, on wide screens only */
header.hero, section { scroll-margin-top: 1.25rem; }
.toc { display: none; }
@media (min-width: 84rem) {
  .toc {
    display: block; position: fixed; top: 19.5rem;
    left: calc((100vw - var(--maxw)) / 2 - 11.5rem); width: 9.5rem;
    font-family: var(--mono); font-size: .76rem; letter-spacing: .04em;
  }
  .toc a {
    display: block; padding: .28rem 0 .28rem .75rem; color: var(--muted);
    text-decoration: none; border-left: 2px solid var(--line);
  }
  .toc a:hover { color: var(--text); }
  .toc a.active { color: var(--signal); border-left-color: var(--signal); }
}
