/* Home page "Try it" box (2026-11-15), driven by try.js. Tokens, type, buttons and focus rings come
   from look.css; everything here is scoped to .try so nothing else on the page changes. */
.look .try [hidden] { display: none !important; }
.look .try-box { gap: 1rem; padding: clamp(1rem, 2.4vw, 1.4rem); }

/* the six examples: square toggles, like the paths.html options */
.look .try-picks { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.look .try-pick { min-height: 44px; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--soft); font: 500 0.88rem/1.3 var(--body); text-align: left; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.look .try-pick:hover { border-color: var(--ink); color: var(--ink); }
.look .try-pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.look .try-box .try-note { color: var(--muted); font-size: 0.9rem; }

.look .try-panes { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.9rem; align-items: start; }
@media (max-width: 760px) { .look .try-panes { grid-template-columns: minmax(0, 1fr); } }
.look .try-pane { display: grid; gap: 0.65rem; align-content: start; min-width: 0; padding: 0.85rem 0.95rem 1rem; border: 1px solid var(--line); background: color-mix(in oklch, var(--ink) 4%, var(--tile)); }
.look .try-after { box-shadow: inset 0 2px 0 var(--accent); }
.look .try-after.is-empty { border-style: dashed; box-shadow: none; background: transparent; }
.look .try-after.is-empty .try-stage { min-height: 7rem; }
.look .try-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 40px; }
.look .try-head .k { color: var(--muted); }
.look .try-after .try-head .k { color: var(--accent-text); }
.look .try-go { justify-self: start; }
.look .try-copy.ok { border-color: var(--ok); color: var(--ok); }

/* the prompts; the ghost copy holds the finished height so nothing below jumps while it types */
.look .try-pane pre { margin: 0; font: 400 0.86rem/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.look .try-pane pre.try-before { color: var(--soft); }
.look .try-stage { display: grid; }
.look .try-stage > pre { grid-area: 1 / 1; }
.look .try-ghost { visibility: hidden; }
.look .try-ln { display: inline-block; width: 100%; vertical-align: top; }
.look .try-new { position: relative; padding: 0 0.5em 0 1.6em; background: color-mix(in oklch, var(--accent) 13%, transparent); box-shadow: inset 2px 0 0 var(--accent); }
.look .try-new::before { content: "+"; position: absolute; left: 0.55em; color: var(--accent-text); }
.look .try-caret { display: inline-block; width: 0.5em; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .look .try-caret { animation: try-blink 0.8s steps(2, jump-none) infinite; }
}
@keyframes try-blink { 0% { opacity: 1; } 100% { opacity: 0.2; } }

.look .try-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
