/* Toolboxd archive (after the November 20, 2026 shutdown). Layered on site.css; build.py links it
   on every archived page. The archive notices reuse the shutdown notice's off-duty orange. */

/* ---- Live-only affordances: nothing behind them any more ---- */
.refresh-bar, .poster-dismiss, .htmx-indicator { display: none !important; }

/* ---- Locked forms: still legible (they show the captured inputs), visibly inert ---- */
.tool-form :disabled { cursor: not-allowed; }
.tool-form input:disabled, .tool-form select:disabled,
.tool-form .rangeslider:has(input:disabled), .tool-form .stepper:has(input:disabled),
.tool-form .ts-control:has(.ts-input:disabled) { opacity: 0.7; }
.tool-form input:disabled:hover { border-color: var(--line); }
.tool-form .filters:has(:disabled) > summary { color: var(--muted-2); }
.snapshot-chip { padding-right: 0.6rem; }

/* Native select with the field look (site.css strips its arrow with appearance:none). */
.tool-form select:not([multiple]) {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 52%, calc(100% - 0.75rem) 52%;
  background-size: 0.3rem 0.3rem; background-repeat: no-repeat; padding-right: 2rem; cursor: pointer;
}

/* The stamp that replaces each form's submit button. */
.snapshot-stamp {
  border: 1px dashed var(--line); border-radius: 8px; padding: 0.8rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.snapshot-stamp .mono-label { letter-spacing: 0.1em; color: var(--accent); }
.snapshot-stamp p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* Similar films: pick-list of the captured films, in place of the server typeahead. */
.snapshot-field { display: flex; flex-direction: column; gap: 0.5rem; }
.snapshot-field-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.snapshot-films { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.snapshot-film {
  background: var(--ink-2); border: 1px solid var(--line); color: var(--text); border-radius: 999px;
  padding: 0.35rem 0.75rem; font: inherit; font-size: 0.85rem; cursor: pointer;
  transition: border-color 0.12s, background-color 0.12s;
}
.snapshot-film:hover { border-color: var(--muted-2); }
.snapshot-film[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.snapshot-film:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ---- Archive notices ---- */
.shutdown-banner a, .shutdown-notice a {
  color: var(--text); text-decoration: underline; text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--orange) 60%, transparent); white-space: nowrap;
}
.shutdown-banner a:hover, .shutdown-notice a:hover { text-decoration-color: var(--orange); }

/* ---- Farewell (the archive's front page): the projector has stopped ---- */
.farewell-page .site-main { display: flex; flex-direction: column; justify-content: center; }
.farewell { margin-bottom: 0; }   /* keeps the hero's own height: two reels fill it exactly */
.farewell .reel { animation: none; }
.farewell .reel-stack { filter: grayscale(1); opacity: 0.32; }
.farewell .hero-overlay { padding: 3.5rem 1.5rem; }
.farewell .hero-overlay .mono-label { color: var(--orange); }
.farewell .hero-overlay h1 {
  display: block; font-size: clamp(2.4rem, 6.5vw, 4.4rem); letter-spacing: -0.025em; margin: 0.5rem 0 1rem;
}
.farewell .hero-sub { max-width: 40rem; margin: 0 auto 1.8rem; color: var(--text); font-size: 1.1rem; line-height: 1.6; }
.farewell-note { margin: 1rem auto 0; max-width: 30rem; color: var(--muted); font-size: 0.85rem; }
