/* Faixa "projeto-modelo" e janela de demonstração — comuns às 3 páginas-modelo */
.mw-demo-bar {
  position: relative; z-index: 60; line-height: 1.5;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 9px 16px;
  background: #0F0F10; color: #F4EFE6;
  font: 500 13px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: center;
}
.mw-demo-bar strong { color: #C9A563; font-weight: 600; }
.mw-demo-bar a { color: #0F0F10; background: #C9A563; padding: 5px 12px; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.mw-demo-bar a:hover { background: #E8D7AE; }
.mw-demo-bar a:focus-visible, .mw-dialog a:focus-visible, .mw-dialog button:focus-visible { outline: 2px solid #C9A563; outline-offset: 3px; }

.mw-dialog {
  width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px;
  background: #fff; color: #1b1b1b; box-shadow: 0 30px 80px rgba(0,0,0,.35);
  font: 400 15px/1.55 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.mw-dialog::backdrop { background: rgba(10,12,14,.55); backdrop-filter: blur(3px); }
.mw-dialog-inner { padding: 26px 24px 22px; }
.mw-dialog h2 { margin: 0 0 8px; font: 650 20px/1.25 system-ui, -apple-system, 'Segoe UI', sans-serif; }
.mw-dialog p { margin: 0 0 14px; color: #4a4a4a; }
.mw-dialog pre {
  margin: 0 0 18px; padding: 14px 16px; max-height: 210px; overflow: auto;
  white-space: pre-wrap; word-break: break-word;
  background: #e7f7ee; border: 1px solid #c6ead5; border-radius: 12px 12px 12px 4px;
  font: 400 14px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif; color: #12331f;
}
.mw-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mw-dialog-actions a, .mw-dialog-actions button {
  flex: 1 1 auto; display: inline-flex; justify-content: center; align-items: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; text-decoration: none;
}
.mw-dialog-actions a { background: #141516; color: #f2e7cf; border: 0; }
.mw-dialog-actions button { background: transparent; color: #1b1b1b; border: 1px solid #cfcfcf; }
.mw-dialog small { display: block; margin-top: 14px; color: #777; font-size: 12.5px; }

.mw-credit { display: inline-flex; gap: 6px; align-items: center; }
.mw-credit a { text-decoration: underline; text-underline-offset: 3px; }

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

.mw-demo-bar span { max-width: 860px; }
.mw-demo-bar a.ghost { background: transparent; color: #F4EFE6; border: 1px solid rgba(233,227,214,.35); }
.demo-photo-credit { font-size: 12px; opacity: .7; }
