/* demo.css: the few pieces the public demo adds on top of the real app.css (card #530). */
.demo-badge { margin-left: 10px; flex: none; }
.demo-banner { background: var(--rs-gold-soft); color: #5e4612; border: 1px solid #e8d7ac; padding: 10px 14px; border-radius: var(--rs-r); font-size: 14px; margin-bottom: 18px; }
.demo-banner:has(+ .demo-tagline) { margin-bottom: 10px; }
.demo-tagline { color: var(--rs-muted); font-size: 14px; margin: 0 0 18px; max-width: 760px; }

/* Google Doc preview */
.gd-overlay { position: fixed; inset: 0; background: rgba(14, 26, 43, .55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gd-win { background: #f8f9fa; width: min(980px, 100%); height: min(88vh, 900px); border-radius: var(--rs-r-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); display: flex; flex-direction: column; overflow: hidden; }
.gd-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #e3e6ea; }
.gd-icon { width: 22px; height: 28px; border-radius: 3px; background: #4285f4; flex: none; position: relative; }
.gd-icon::after { content: ''; position: absolute; left: 5px; right: 5px; top: 9px; height: 10px; background: repeating-linear-gradient(#fff 0 2px, transparent 2px 4px); }
.gd-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-note { background: var(--rs-gold-soft); color: #5e4612; font-size: 13px; padding: 8px 14px; border-bottom: 1px solid #e8d7ac; }
.gd-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 170px 1fr; }
.gd-tabs { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; border-right: 1px solid #e3e6ea; }
.gd-tabs button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 999px; cursor: pointer; font-size: 14px; color: #3c4043; min-height: 44px; }
.gd-tabs button[aria-selected="true"] { background: #e8f0fe; color: #1a56c4; font-weight: 600; }
.gd-page { overflow-y: auto; padding: 24px; }
.gd-page > div { background: #fff; max-width: 720px; margin: 0 auto; padding: 48px 56px; box-shadow: 0 1px 3px rgba(60, 64, 67, .2); font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.55; color: #202124; }
.gd-page h1, .gd-page h2, .gd-page h3, .gd-page h4 { font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
.gd-title { font-size: 28px; font-weight: 400; margin-bottom: 4px; }
.gd-sub { color: #5f6368; margin-top: 0; }
.gd-page h2 { font-size: 21px; font-weight: 400; margin: 22px 0 8px; }
.gd-page h3 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; }
.gd-page h4 { font-size: 14px; font-weight: 700; color: #434343; margin: 16px 0 2px; }
.gd-page p { margin: 0 0 10px; }
.gd-page ul { margin: 0 0 10px; padding-left: 22px; }
@media (max-width: 640px) {
  .gd-overlay { padding: 0; }
  .gd-win { height: 100%; border-radius: 0; }
  .gd-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .gd-tabs { flex-direction: row; border-right: 0; border-bottom: 1px solid #e3e6ea; padding: 8px 10px; }
  .gd-page { padding: 12px; }
  .gd-page > div { padding: 24px 18px; }
}
.gd-page > div[hidden] { display: none; }

/* Nothing is recorded in the demo, so the upload counter is hidden (copy chain 2026-10-01). */
#stArchive { display: none; }

/* Phone fit (verifier 2026-10-01): the app's top bar never wraps and the result page
   sets an inline 2-column grid. Fixed here so app.css and app.js stay verbatim. */
.main, .card { min-width: 0; }
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr !important; }
  .split > * { min-width: 0; }
}
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 6px; column-gap: 10px; }
  .topbar .spacer { display: none; }
  .topbar .nav { order: 3; width: 100%; overflow-x: auto; }
  .topbar .userchip { margin-left: auto; }
}
