/* Shared styles for the three demo pages: the "Sample design" banner,
   a base reset, the demo mobile menu, and the demo toast. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #2f45e8; outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 400; background: #d8ff3e; color: #131313; padding: .8rem 1rem; font: 500 14px/1 "DM Mono", ui-monospace, monospace; }
.skip-link:focus { top: 1rem; }

/* ---------- KELLYRAY sample banner ---------- */
.kr-banner {
  position: relative; z-index: 300;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap;
  padding: .6rem clamp(16px, 3vw, 40px);
  background: #131313; color: #f0eee7;
  font: 500 13px/1.4 "DM Mono", ui-monospace, Consolas, monospace;
}
.kr-banner :focus-visible { outline-color: #d8ff3e; }
.kr-banner p { margin: 0; }
.kr-banner strong { color: #d8ff3e; font-weight: 500; letter-spacing: .04em; }
.kr-banner .kr-meta { color: #c9c7bf; }
.kr-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.kr-actions a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .8rem;
  border: 1px solid #f0eee7; color: #f0eee7; text-decoration: none; white-space: nowrap;
}
.kr-actions a.kr-reserve { background: #d8ff3e; border-color: #d8ff3e; color: #131313; }
.kr-actions a:hover { background: #f0eee7; color: #131313; }

/* ---------- Demo mobile menu helper ---------- */
.demo-menu-button { display: none; width: 48px; height: 48px; padding: 12px; border: 0; background: none; cursor: pointer; }
.demo-menu-button i { display: block; height: 2px; margin: 6px 0; background: currentColor; transition: transform .25s; }
.demo-menu-button[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.demo-menu-button[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Demo toast ---------- */
.demo-toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 500; transform: translate(-50%, 200%);
  max-width: calc(100vw - 32px); padding: .8rem 1.1rem; background: #131313; color: #f0eee7;
  font: 500 14px/1.4 "DM Mono", ui-monospace, monospace; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s;
}
.demo-toast.show { transform: translate(-50%, 0); }

/* ---------- Sample-form notice ---------- */
.sample-form-note { font-size: 14px; margin-top: .75rem; }
.form-done { padding: 1rem; border: 2px solid currentColor; margin-top: 1rem; }

@media (max-width: 720px) {
  .kr-banner { font-size: 12px; }
  .kr-banner .kr-meta { display: block; }
  .kr-actions { width: 100%; flex-wrap: nowrap; }
  .kr-actions a { flex: 1 1 0; justify-content: center; text-align: center; padding: .45rem .5rem; white-space: normal; }
  .kr-hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
