/* Amethyst: page-scoped additions to the kit. One sample take, four views, stacked and crossfaded (opacity only). */
:root { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4M8 7v10M12 4v16M16 7v10M20 10v4'/%3E%3C/svg%3E"); }   /* this tool's glyph, the mask in each section head (see tool.css) */
.am-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.am-seg { max-width: 100%; }
.am-seg > button { padding: 0 14px; }
.am-stage { display: grid; margin-top: 22px; position: relative; }
.am-p { grid-area: 1 / 1; display: grid; align-content: start; gap: 14px; opacity: 0; visibility: hidden;
  transition: opacity var(--am-d, 280ms) var(--th-ease-decay), visibility 0s linear var(--am-d, 280ms); }
/* The Prompt view is the tallest; it only sets the stage height while it is shown, so the other three views leave no empty band. */
.am-p[data-view="prompt"]:not(.is-on) { position: absolute; inset: 0 0 auto 0; }
.am-p.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.am-stage.is-slow { --am-d: 700ms; }
html[data-motion="calm"] .am-p { transition: none; }
.am-text { margin: 0; font: 400 clamp(18px, 1.9vw, 21px)/1.6 var(--th-font-ui); letter-spacing: -.005em; }
.am-cap { margin: 0; color: var(--th-ink-2); font: 400 14px/1.5 var(--th-font-ui); }
.am-prompt { display: grid; gap: 10px; margin: 0; }
.am-prompt div { display: grid; gap: 2px; align-content: start; }
.am-prompt dt { font: var(--th-label); letter-spacing: var(--th-label-track); text-transform: uppercase; color: var(--th-ink-2); }
@media (min-width: 520px) { .am-prompt { grid-template-columns: 1fr 1fr; gap: 14px 24px; } }
.am-prompt dd { margin: 0; font: 400 17px/1.5 var(--th-font-ui); }
.am-foot { margin: 20px 0 0; color: var(--th-ink-2); font: 400 14px/1.5 var(--th-font-ui); }
.am-vocab { margin: 0; max-width: 560px; }   /* each list: a Geist caption naming it, then a pre with literal entries only, so nothing clips at 390 */
.am-vocab-h { margin: 20px 0 8px; }
.am-vocab-h:first-child { margin-top: 16px; }
.am-vocab-h b { color: var(--th-ink); font-weight: 500; }
.th-table td .th-code { white-space: nowrap; }
