/* ==================================================================
 * DEMO FRAME — 4-side border that shrinks the viewport
 * ================================================================== */

body[data-demo="1"] {
  padding: 44px 44px 40px 44px;
  margin: 0;
}

/* Shift site elements down/sideways to accommodate demo frame */
body[data-demo="1"] .topnav {
  top: 44px;
}

body[data-demo="1"] .devider {
  top: 114px; /* 44 (banner) + 70 (nav height) */
}

body[data-demo="1"] .hamburger_menu {
  top: 56px; /* 12 + 44 */
}

body[data-demo="1"] .hero {
  margin-top: 134px; /* 44 (banner) + 90 (original) */
}

/* Top bar */
.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  height: 44px;
  background: #1a1a19;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 13px;
  line-height: 44px;
  border-bottom: 2px solid #628141;
}

.demo-banner-left {
  white-space: nowrap;
}

.demo-banner-right {
  white-space: nowrap;
}

.demo-banner-right strong {
  font-weight: 700;
  color: #628141;
}

/* Bottom bar */
.demo-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  height: 40px;
  background: #1a1a19;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 12px;
  line-height: 40px;
  border-top: 2px solid #628141;
}

.demo-footer a {
  color: #628141;
  text-decoration: none;
  margin-left: 4px;
}

.demo-footer a:hover {
  text-decoration: underline;
}

/* Left side bar */
.demo-frame-left {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 100%;
  z-index: 99998;
  background: #1a1a19;
  border-right: 2px solid #628141;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-frame-left span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #628141;
  font-weight: 600;
}

/* Right side bar */
.demo-frame-right {
  position: fixed;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  z-index: 99998;
  background: #1a1a19;
  border-left: 2px solid #628141;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-frame-right span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #628141;
  font-weight: 600;
}

/* Mobile: collapse side bars, keep top/bottom */
@media (max-width: 900px) {
  .demo-frame-left,
  .demo-frame-right {
    display: none;
  }
  body[data-demo="1"] {
    padding: 44px 16px 40px 16px;
  }
  .demo-banner {
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .demo-banner {
    flex-direction: column;
    height: auto;
    padding: 6px 12px;
    line-height: 1.4;
    text-align: center;
  }
  body[data-demo="1"] {
    padding-top: 64px;
  }
}

.demo-credentials {
  margin: 16px 0;
  padding: 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 6px;
}

.demo-credentials h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--text, #1a1a19);
}

.demo-creds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.demo-creds-table td {
  padding: 4px 8px;
  color: var(--text, #1a1a19);
}

.demo-creds-table td:first-child {
  font-weight: 600;
  width: 70px;
}
