/* egon.works: what only this site needs, on top of egon.css and site.css (both unchanged copies
   of the design system). Tokens only; no new colours. */

/* Skip link: visible on focus only. */
.skip{position:absolute;inset-inline-start:var(--space-4);top:var(--space-2);z-index:10;padding:var(--space-2) var(--space-3);border-radius:var(--radius-md);background:var(--accent);color:var(--on-accent);font-weight:600;transform:translateY(-200%)}
.skip:focus{transform:none}

/* The mark: the dark-ground file by default, the light-ground file in the light theme (Logos). */
.wordmark__mark--light{display:none}
@media (prefers-color-scheme:light){
  .wordmark__mark--dark{display:none}
  .wordmark__mark--light{display:block}
}

/* The illustration may only sit on ink-975 or ink-950, so the hero stays night in both themes:
   it takes the dark values of the tokens it uses. Glow stays off in the light theme. */
@media (prefers-color-scheme:light){
  .hero{color-scheme:dark;color:var(--ink-50);--surface-sunken:var(--ink-975);--surface:var(--ink-900);--surface-raised:var(--ink-850);--border:var(--ink-700);--border-strong:var(--ink-500);--text:var(--ink-50);--text-muted:var(--ink-300);--link:var(--cyan-300);--accent:var(--cyan-400);--accent-hover:var(--cyan-300);--on-accent:var(--ink-950);--brand:var(--magenta-400);--focus:var(--cyan-300)}
  :root:not([data-theme=dark]) .hero__floor{opacity:.5}
  :root:not([data-theme=dark]) .hero__horizon{opacity:.7}
}

/* Hero actions: the snippet, the primary button and a quiet second link. */
.hero__actions{display:grid;gap:var(--space-3);justify-self:stretch}
.hero__actions>a{justify-self:start}
.hero__art{background:var(--ink-975)}

/* Stop list on the landing page: number in mono before the title. */
.stop__n{font:500 var(--fs-sm)/20px var(--font-mono);color:var(--text-muted);margin-inline-end:var(--space-2)}
.stops__more{margin-top:var(--space-5)}

/* A line of provenance: which egon commit a page was checked against. */
.stamp{font:400 var(--fs-sm)/20px var(--font-mono);color:var(--text-muted)}
.stamp a{color:var(--text-muted)}
.docs__foot{margin-top:var(--space-12);padding-top:var(--space-5);border-top:var(--border-thin) solid var(--border);display:grid;gap:var(--space-2)}
.docs__foot ul{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4)}

/* Below 900px .docs is a single auto column; a wide code block would stretch it past the
   screen. Let the column shrink so .pre and .tablewrap scroll inside it. */
.docs>*{min-width:0}

/* Short code in tiles never breaks inside a flag such as --admin. */
.tile code{white-space:nowrap}

/* Docs overview cards. */
.doclist{display:grid;gap:var(--space-4);grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.doclist a{font-weight:600}

/* Definition lists in reference pages. */
.prose dl{display:grid;gap:var(--space-2)}
.prose dt{font-weight:600}
.prose dd{margin-inline-start:var(--space-5);color:var(--text-muted)}

/* Licence text. */
.licence{white-space:pre-wrap;max-height:none}
