/* What's new page: live before/after demos on top of page.css */
.version { color: var(--muted); font-size: 15px; margin: -0.4rem 0 1.5rem; }
.entry { margin-top: 2.6rem; padding-top: 0.2rem; }
.entry h2 { margin-top: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.55rem; margin-inline-start: 0.5rem; vertical-align: middle; }
.credit { color: var(--muted); font-size: 15px; }
.demo { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin: 1rem 0 0; background: var(--code); }
.demo p { margin: 0 0 0.75rem; font-size: 15px; color: var(--muted); max-width: none; }
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.row + .row { margin-top: 0.6rem; }
.demo button, .modes button { font: inherit; font-size: 15px; min-height: 40px; padding: 0.4rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--fg); cursor: pointer; transition-property: border-color, background-color, color, scale; transition-duration: 150ms; transition-timing-function: ease-out; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .demo button:hover, .modes button:hover { border-color: var(--muted); } }
.demo button:active, .modes button:active { scale: 0.96; }
.demo button:focus-visible, .modes button:focus-visible, .demo input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.demo button[aria-pressed='true'], .modes button[aria-pressed='true'] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.demo input { font: inherit; font-size: 16px; min-height: 40px; padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; max-width: 22rem; }
.out { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0.75rem 0 0; padding: 0.6rem 0.8rem; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); white-space: pre-wrap; }
.modes { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.6rem 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin: 0 0 1rem; }
.modes span { color: var(--muted); font-size: 15px; margin-inline-end: 0.25rem; }
dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); padding: 1.25rem; max-width: 22rem; }
dialog::backdrop { background: rgb(0 0 0 / 0.4); }
/* click-area overlay for the demo, and the old narrow hit area when "Before" is on */
.show-hit .tst-action::before, .show-hit .tst-close::before { background: rgb(255 60 60 / 0.35); outline: 1px dashed #f33; }
.show-hit.old-mode .tst-action, .show-hit.old-mode .tst-close { outline: 2px dashed #f33; }
.old-mode .tst-action::before, .old-mode .tst-close::before { display: none; }
@media (prefers-reduced-motion: reduce) { .demo button, .modes button { transition: none; } .demo button:active, .modes button:active { scale: none; } }
