/* ------------------------------------------------------------------
   archive — the site's top bar on the archived case-study pages
   (static/agentic/page-evolution-v1..3.html and claudito-case-study.html).

   Those four pages are the originals, each self-contained with its own <style>. This file adds only the chrome
   above them — the same header markup every other page carries, in the terminal page's inverted colours, plus a
   one-line note saying which snapshot this is — so a reader can get back to the site from any of them.
   site.css is deliberately not loaded here: its body / anchor / iframe rules would fight the originals' own, and
   its color-scheme would paint the pages' <object> SVGs as white boxes in dark mode (see the note in site.css).
   The colours are the terminal palette (process-terminal.css), fixed; these pages are dark in either theme.

   .framed is set by a one-line script in each page's <head> when the page is being shown inside a frame — the
   thumbnails in the case study's "Page evolution" cards, and the original v4 page's own — so the thumbnails
   show the page as it was, without the bar.
   ------------------------------------------------------------------ */

.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  max-width: 1600px; margin: 0 auto 10px; padding: 0;
  color: #676767;
}
.top a { color: inherit; text-decoration: none; }
.top .name { color: #c7c7c7; font-weight: 500; letter-spacing: .01em; }
.top nav { display: flex; gap: 1.75rem; font-size: .95rem; }
.top nav a[aria-current], .top nav a:hover, .top nav .theme:hover { color: #c7c7c7; }

/* theme button, as site.css sets it: the disc shows the setting (outline = light, filled = dark, half = auto);
   theme.js writes the word and data-pref. Hidden without JS. The archived pages themselves do not change with
   the theme; the button still sets the choice for the rest of the site. */
.top nav .theme { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; line-height: inherit; }
.top nav .theme:focus-visible { outline: 2px solid #e9ae17; outline-offset: 2px; }
.top nav .theme::before {
  content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .45em; vertical-align: -.01em;
  border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor;
}
.top nav .theme[data-pref="dark"]::before { background: currentColor; }
.top nav .theme[data-pref="auto"]::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
html:not([data-theme]) .top nav .theme { display: none; }

/* which snapshot this is, and the way back to the current case study */
.archive-note { max-width: 1600px; margin: 0 auto 40px; font-size: 12px; line-height: 1.5; color: #676767; }
.archive-note a { color: #a6aaf1; text-decoration: none; }
.archive-note a:hover { text-decoration: underline; }

.framed .top, .framed .archive-note { display: none; }
