/* The demo only: the org source bar fixed across the top (the shell is sized to the
   viewport, so it's shortened by the bar), the stand-in tab page, and toasts. */

:root { --srcbar-h: 34px; }
body.demo { padding-top: var(--srcbar-h); }
body.demo #app { height: calc(100vh - var(--srcbar-h)); }

.src-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  height: var(--srcbar-h); padding: 0 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 12px; }
.src-note { margin: 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-3); }
.src-note strong { font-weight: 600; color: var(--accent); }
.src-link { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; }
.src-link:hover { color: var(--text); }

#demo-page { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; padding: 24px; text-align: center; color: var(--text-2); }
#demo-page h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--text); }
#demo-page .url { color: var(--accent); word-break: break-all; }
#demo-page p { max-width: 520px; margin: 4px 0; }

#demo-about { position: absolute; inset: 0; overflow-y: auto; padding: 36px 24px 56px; color: var(--text-2); line-height: 1.6; }
.demo-doc { max-width: 780px; margin: 0 auto; }
.demo-doc a { color: var(--accent); text-decoration: none; }
.demo-doc a:hover { text-decoration: underline; }
.demo-doc b, .demo-doc strong { color: var(--text); font-weight: 600; }
.demo-doc hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }

/* Hero, in the shape of the repo README's header */
.hero { text-align: center; }
.hero p { margin: 10px 0; }
.hero-logo { display: block; margin: 0 auto 14px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 12px 40px rgba(163, 230, 53, 0.12); }
.hero h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.hero .tagline { font-size: 16px; font-style: italic; color: var(--text-2); }
.hero .explore { font-size: 15px; }
.hero .nav-row { font-size: 13px; color: var(--text-3); }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

/* Badges drawn in CSS so the page loads nothing from shields.io */
.badge { display: inline-flex; border-radius: 4px; overflow: hidden; font: 700 10.5px/1 system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.badge-l, .badge-v { padding: 7px 9px; }
.badge-l { background: #3f3f46; }
.badge-v { background: var(--b); }
.tech { display: inline-block; padding: 4px 8px; border-radius: 3px; background: var(--b); font: 600 11px/1.2 system-ui, sans-serif; color: #fff; }

.callout { margin: 0 0 8px; padding: 10px 14px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--panel-2); }
.callout p { margin: 4px 0; }
.callout-title { font-weight: 600; color: var(--accent); }

.demo-doc h2 { margin: 32px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 600; color: var(--text); }
.demo-doc table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.demo-doc th { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.demo-doc td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.demo-doc td:first-child { width: 150px; white-space: nowrap; }
.demo-doc tbody tr:hover { background: var(--panel); }
.demo-doc code { padding: 1px 5px; border-radius: 4px; background: var(--panel-2); font-size: 0.9em; color: var(--text); }
.demo-doc pre { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); overflow-x: auto; line-height: 1.5; }
.demo-doc pre code { padding: 0; background: none; }
.demo-doc pre .c { color: var(--text-3); }
.demo-doc .footer { text-align: center; font-size: 13px; color: var(--text-3); }

.demo-toast { position: fixed; left: 12px; bottom: 12px; z-index: 30; max-width: 420px; padding: 10px 12px;
  background: #1f2937; border: 1px solid #374151; border-radius: 8px; color: #f4f4f5; }
